Skip to content

Commit 37951f2

Browse files
authored
fix(update): update signatures and offsets for 1.41.1.3 Update (#1064)
1 parent 7b9df90 commit 37951f2

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

configs/addons/counterstrikesharp/gamedata/gamedata.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
},
2323
"CCSPlayerController_ChangeTeam": {
2424
"offsets": {
25-
"windows": 106,
26-
"linux": 105
25+
"windows": 109,
26+
"linux": 108
2727
}
2828
},
2929
"CCSPlayerController_Respawn": {
3030
"offsets": {
31-
"windows": 275,
32-
"linux": 277
31+
"windows": 277,
32+
"linux": 279
3333
}
3434
},
3535
"CBasePlayerController_SetPawn": {
@@ -91,8 +91,8 @@
9191
"GetCSWeaponDataFromKey": {
9292
"signatures": {
9393
"library": "server",
94-
"windows": "48 89 5C 24 ? 48 89 6C 24 ? 48 89 74 24 ? 57 48 83 EC 20 33 ED 48 8B FA 8B F1",
95-
"linux": "55 48 89 E5 41 56 41 55 41 89 FD 41 54 45 31 E4"
94+
"windows": "48 89 5C 24 ? 57 48 83 EC ? 33 FF 4C 8B CA 8B D9",
95+
"linux": "55 31 D2 48 89 E5 41 57 41 56 41 55 41 54 41 89 FC"
9696
}
9797
},
9898
"CCSPlayer_ItemServices_GiveNamedItem": {
@@ -155,8 +155,8 @@
155155
"CBaseEntity_EmitSoundFilter": {
156156
"signatures": {
157157
"library": "server",
158-
"windows": "4C 8B DC 49 89 5B ? 49 89 6B ? 49 89 73 ? 49 89 7B ? 41 56 48 83 EC ? 49 C7 43 ? ? ? ? ? 48 8D 05 ? ? ? ? 49 89 43 ? 41 8B F8",
159-
"linux": "55 48 8D 05 ? ? ? ? 48 89 E5 41 57 49 89 CF 41 56 41 89 D6"
158+
"windows": "40 53 48 83 EC ? 4C 89 4C 24 ? 48 8B D9 45 8B C8",
159+
"linux": "55 48 89 E5 53 48 89 FB 48 83 EC ? E8 ? ? ? ? 48 89 D8 48 8B 5D ? C9 C3 CC CC CC CC CC CC 48 B8"
160160
}
161161
},
162162
"CEntityInstance_AcceptInput": {
@@ -195,15 +195,15 @@
195195
},
196196
"CBaseEntity_Teleport": {
197197
"offsets": {
198-
"windows": 165,
199-
"linux": 164
198+
"windows": 168,
199+
"linux": 167
200200
}
201201
},
202202
"CBaseEntity_TakeDamageOld": {
203203
"signatures": {
204204
"library": "server",
205-
"windows": "4C 8B DC 56 57 48 81 EC ? ? ? ? 48 8B 41",
206-
"linux": "55 48 89 E5 41 57 41 56 41 55 41 54 53 48 89 FB 48 81 EC ? ? ? ? 4C 8D 25 ? ? ? ? 49 8B 3C 24"
205+
"windows": "40 55 41 54 41 55 41 56 41 57 48 81 EC ? ? ? ? 48 8D 6C 24 ? 48 89 9D ? ? ? ? 45 33 ED",
206+
"linux": "55 48 89 E5 41 57 41 56 49 89 F6 41 55 41 54 49 89 D4 53 48 89 FB 48 83 EC ? 48 85 D2"
207207
}
208208
},
209209
"CBaseTrigger_StartTouch": {
@@ -291,4 +291,4 @@
291291
"linux": "55 48 89 E5 41 57 49 89 F7 41 56 41 55 41 54 4D 89 C4"
292292
}
293293
}
294-
}
294+
}

managed/CounterStrikeSharp.API/Modules/Entities/EntitySystem.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static class EntitySystem
1212
private const int MaxEntities = 32768;
1313
private const int MaxEntitiesPerChunk = 512;
1414
private const int MaxChunks = MaxEntities / MaxEntitiesPerChunk;
15-
private const int SizeOfEntityIdentity = 0x78;
15+
private const int SizeOfEntityIdentity = 0x70;
1616
private const int HandleOffset = 0x10;
1717
private const uint InvalidEHandleIndex = 0xFFFFFFFF;
1818

@@ -75,4 +75,5 @@ public static uint GetRawHandleFromEntityPointer(IntPtr pointer)
7575
return Schema.GetPointer<CEntityIdentity?>(pointer, "CEntityInstance", "m_pEntity")?.EntityHandle.Raw ??
7676
InvalidEHandleIndex;
7777
}
78-
}
78+
79+
}

managed/CounterStrikeSharp.API/Modules/Memory/VirtualFunctions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ public static class VirtualFunctions
6363
public static MemoryFunctionVoid<CBasePlayerController, CBasePlayerPawn, bool, bool> CBasePlayerController_SetPawnFunc =
6464
new(GameData.GetSignature("CBasePlayerController_SetPawn"));
6565

66-
public static MemoryFunctionVoid<CEntityInstance, CTakeDamageInfo> CBaseEntity_TakeDamageOldFunc =
66+
public static MemoryFunctionVoid<CEntityInstance, CTakeDamageInfo, IntPtr> CBaseEntity_TakeDamageOldFunc =
6767
new(GameData.GetSignature("CBaseEntity_TakeDamageOld"));
6868

69-
public static Action<CEntityInstance, CTakeDamageInfo> CBaseEntity_TakeDamageOld = CBaseEntity_TakeDamageOldFunc.Invoke;
69+
public static Action<CEntityInstance, CTakeDamageInfo, IntPtr> CBaseEntity_TakeDamageOld = CBaseEntity_TakeDamageOldFunc.Invoke;
7070

7171
public static MemoryFunctionWithReturn<CCSPlayer_WeaponServices, CBasePlayerWeapon, bool> CCSPlayer_WeaponServices_CanUseFunc =
7272
new(GameData.GetSignature("CCSPlayer_WeaponServices_CanUse"));

0 commit comments

Comments
 (0)