Skip to content

Commit ccf122a

Browse files
committed
simplified smoke detonation text
upgraded to cssharp version 216 v1.0.0.3
1 parent cef7bd6 commit ccf122a

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

CSPracc/CSPracc.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<PlatformTarget>x64</PlatformTarget>
88
<Platforms>AnyCPU;x64</Platforms>
9-
<Version>1.0.0.2</Version>
9+
<Version>1.0.0.3</Version>
1010
</PropertyGroup>
1111

1212
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@@ -18,7 +18,7 @@
1818
</PropertyGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.141" />
21+
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.216" />
2222
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
2323
</ItemGroup>
2424
</Project>

CSPracc/Managers/ProjectileManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,11 +691,11 @@ public HookResult OnSmokeDetonate(EventSmokegrenadeDetonate @event, GameEventInf
691691
CSmokeGrenadeProjectile projectile = Utilities.GetEntityFromIndex<CSmokeGrenadeProjectile>(@event.Entityid);
692692
if(projectile != null)
693693
{
694-
Utils.ServerMessage($"Smoke thrown by {ChatColors.Blue}{@event.Userid.PlayerName}{ChatColors.White} took {ChatColors.Green}{(DateTime.Now - result).TotalSeconds.ToString("0.00")}{ChatColors.White}s and {ChatColors.Green}{projectile.Bounces}{ChatColors.White} bounces to detonate.");
694+
Utils.ServerMessage($"{ChatColors.Blue}{@event.Userid.PlayerName}{ChatColors.White}'s smoke Airtime: {ChatColors.Green}{(DateTime.Now - result).TotalSeconds.ToString("0.00")}{ChatColors.White}s Bounces: {ChatColors.Green}{projectile.Bounces}{ChatColors.White}");
695695
}
696696
else
697697
{
698-
Utils.ServerMessage($"Smoke thrown by {@event.Userid.PlayerName} took {(DateTime.Now - result).TotalSeconds.ToString("0.00")}s to detonate");
698+
Utils.ServerMessage($"{@event.Userid.PlayerName}'s smoke Airtime: {(DateTime.Now - result).TotalSeconds.ToString("0.00")}s");
699699
}
700700

701701
}

CSPracc/PraccPlugin.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
using System.Resources;
2828
using Microsoft.Extensions.Logging;
2929

30-
[MinimumApiVersion(80)]
30+
[MinimumApiVersion(216)]
3131
public class CSPraccPlugin : BasePlugin, IPluginConfig<CSPraccConfig>
3232
{
3333
public static CSPraccPlugin? Instance { get; private set; }
@@ -44,7 +44,7 @@ public override string ModuleVersion
4444
{
4545
get
4646
{
47-
return "1.0.0.2";
47+
return "1.0.0.3";
4848
}
4949
}
5050

0 commit comments

Comments
 (0)