Skip to content

CCSPlayer_ItemServices_CanAcquire signature update and fixes #185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Resources/RetakesAllocator_gamedata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"signatures": {
"library": "server",
"windows": "44 89 44 24 ? 48 89 54 24 ? 48 89 4C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8B EC",
"linux": "55 48 89 E5 41 57 41 56 41 55 49 89 CD 41 54 53 48 83 EC"
"linux": "55 48 89 E5 41 57 41 56 48 8D 45 ? 41 55 41 54 53 48 89 CB"
}
},
"GiveNamedItem2": {
Expand Down
1 change: 1 addition & 0 deletions RetakesAllocator/Menus/AdvancedGunMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using RetakesAllocator.Menus;
using RetakesAllocatorCore.Config;
using static RetakesAllocatorCore.PluginInfo;
using CounterStrikeSharp.API.Modules.Events;

namespace RetakesAllocator.AdvancedMenus;

Expand Down
1 change: 1 addition & 0 deletions RetakesAllocator/RetakesAllocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
using static RetakesAllocatorCore.PluginInfo;
using RetakesPluginShared;
using RetakesPluginShared.Events;
using CounterStrikeSharp.API.Modules.Events;

namespace RetakesAllocator;

Expand Down Expand Up @@ -465,7 +466,7 @@
public HookResult OnPostItemPurchase(EventItemPurchase @event, GameEventInfo info)
{
var player = @event.Userid;
if (Helpers.IsWarmup() || !Helpers.PlayerIsValid(player) || !player.PlayerPawn.IsValid)

Check warning on line 469 in RetakesAllocator/RetakesAllocator.cs

View workflow job for this annotation

GitHub Actions / build

Dereference of a possibly null reference.

Check warning on line 469 in RetakesAllocator/RetakesAllocator.cs

View workflow job for this annotation

GitHub Actions / build

Dereference of a possibly null reference.
{
return HookResult.Continue;
}
Expand Down Expand Up @@ -582,7 +583,7 @@
{
var p = Utilities.GetEntityFromIndex<CBasePlayerWeapon>((int) pEntity.EntityInstance.Index);
if (
!p.IsValid ||

Check warning on line 586 in RetakesAllocator/RetakesAllocator.cs

View workflow job for this annotation

GitHub Actions / build

Dereference of a possibly null reference.

Check warning on line 586 in RetakesAllocator/RetakesAllocator.cs

View workflow job for this annotation

GitHub Actions / build

Dereference of a possibly null reference.
!p.DesignerName.StartsWith("weapon") ||
p.DesignerName.Equals("weapon_c4") ||
playerPos is null ||
Expand Down
2 changes: 1 addition & 1 deletion RetakesAllocator/RetakesAllocator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.201" />
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.315" />
<PackageReference Include="RetakesPluginShared" Version="2.0.0" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion RetakesAllocatorCore/PluginInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace RetakesAllocatorCore;

public static class PluginInfo
{
public const string Version = "2.4.0";
public const string Version = "2.4.1";

public static readonly string LogPrefix = $"[RetakesAllocator {Version}] ";

Expand Down
2 changes: 1 addition & 1 deletion RetakesAllocatorCore/RetakesAllocatorCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.201" />
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.315" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.14"/>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.14">
<PrivateAssets>all</PrivateAssets>
Expand Down
Loading