Skip to content

Commit e940410

Browse files
committed
Update offsets for AG2 beta
1 parent e1d1e4b commit e940410

File tree

2 files changed

+43
-42
lines changed

2 files changed

+43
-42
lines changed

gamedata/cs2fixes.jsonc

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -379,91 +379,91 @@
379379
{
380380
"CBaseEntity::Precache":
381381
{
382-
"windows": 6,
383-
"linux": 7
382+
"windows": 7,
383+
"linux": 8
384384
},
385385
"CBaseEntity::SetOwner":
386386
{
387-
"windows": 52,
388-
"linux": 51
387+
"windows": 53,
388+
"linux": 52
389389
},
390390
// String: "%s<%i><%s><%s>" ChangeTeam() CTMDBG..."
391391
"CCSPlayerController_ChangeTeam":
392392
{
393-
"windows": 102,
394-
"linux": 101
393+
"windows": 103,
394+
"linux": 102
395395
},
396396
"GetHammerUniqueId":
397397
{
398-
"windows": 111,
399-
"linux": 110
398+
"windows": 112,
399+
"linux": 111
400400
},
401401
"CBaseEntity::Use":
402402
{
403-
"windows": 144,
404-
"linux": 143
403+
"windows": 145,
404+
"linux": 144
405405
},
406406
"CBaseEntity::StartTouch":
407-
{
408-
"windows": 147,
409-
"linux": 146
410-
},
411-
"CBaseEntity::Touch":
412407
{
413408
"windows": 148,
414409
"linux": 147
415410
},
416-
"CBaseEntity::EndTouch":
411+
"CBaseEntity::Touch":
417412
{
418413
"windows": 149,
419414
"linux": 148
420415
},
416+
"CBaseEntity::EndTouch":
417+
{
418+
"windows": 150,
419+
"linux": 149
420+
},
421421
"Teleport":
422422
{
423-
"windows": 162,
424-
"linux": 161
423+
"windows": 163,
424+
"linux": 162
425425
},
426426
// For these two, look for the names, you'll find vscript bindings
427427
// Scroll down to where the var + 64 gets set to a function, that calls the offset we want
428428
"IsPlayerPawn":
429429
{
430-
"windows": 168,
431-
"linux": 167
430+
"windows": 169,
431+
"linux": 168
432432
},
433433
"IsPlayerController":
434434
{
435-
"windows": 169,
436-
"linux": 168
435+
"windows": 170,
436+
"linux": 169
437437
},
438438
"CollisionRulesChanged":
439439
{
440-
"windows": 185,
441-
"linux": 184
440+
"windows": 186,
441+
"linux": 185
442442
},
443443
"CCSPlayerController_Respawn":
444444
{
445-
"windows": 272,
446-
"linux": 274
445+
"windows": 273,
446+
"linux": 275
447447
},
448448
// CBaseTrigger
449449
"PassesTriggerFilters":
450450
{
451-
"windows": 266,
452-
"linux": 267
451+
"windows": 273,
452+
"linux": 274
453453
},
454454
// Actually a bit of a wrapper function now? Eventually calls a long function with "player_hurt" in the middle and then inserts userid, health, priority, attacker strings
455455
"CCSPlayerPawn::OnTakeDamage_Alive":
456456
{
457-
"windows": 249,
458-
"linux": 250
457+
"windows": 256,
458+
"linux": 257
459459
},
460460
// Look for the kill command, go through its callback and you should a find call like this, with v9 being a pawn pointer:
461461
// return (*(*v9 + 2976LL))(v9, v27, 0LL);
462462
// 2976 (372 * 8) is the offset
463463
"CBasePlayerPawn_CommitSuicide":
464464
{
465-
"windows": 400,
466-
"linux": 400
465+
"windows": 390,
466+
"linux": 390
467467
},
468468
"GameEntitySystem":
469469
{
@@ -473,13 +473,13 @@
473473
// In the function with "[%03d] Found: %s, firing\n", you'll find a call into a pointer offset just a bit higher, that's the offset * 8
474474
"CGameRules_FindPickerEntity":
475475
{
476-
"windows": 25,
477-
"linux": 26
476+
"windows": 26,
477+
"linux": 27
478478
},
479479
"CCSGameRules_GoToIntermission":
480480
{
481-
"windows": 128,
482-
"linux": 129
481+
"windows": 129,
482+
"linux": 130
483483
},
484484
"CheckTransmitPlayerSlot":
485485
{
@@ -502,18 +502,18 @@
502502
// There's no easy way to find this, but it's a function that checks entity flags (0x370) and ends by calling RemoveFlag with 0x800000 (FL_BASEVELOCITY)
503503
"CCSPlayer_MovementServices::CheckMovingGround":
504504
{
505-
"windows": 40,
506-
"linux": 41
505+
"windows": 41,
506+
"linux": 42
507507
},
508508
"CCSPlayer_WeaponServices::DropWeapon":
509509
{
510-
"windows": 24,
511-
"linux": 25
510+
"windows": 25,
511+
"linux": 26
512512
},
513513
"CCSPlayer_WeaponServices::SelectItem":
514514
{
515-
"windows": 26,
516-
"linux": 27
515+
"windows": 27,
516+
"linux": 28
517517
},
518518
// server.dll -> xref 'sv_phys_stop_at_collision' first __fastcall
519519
"CVPhys2World::GetTouchingList":

src/cs2_sdk/entity/services.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class CPlayerPawnComponent
8585
virtual void unk_16() = 0;
8686
virtual void unk_17() = 0;
8787
virtual void unk_18() = 0;
88+
virtual void unk_19() = 0;
8889

8990
public:
9091
DECLARE_SCHEMA_CLASS(CPlayerPawnComponent);

0 commit comments

Comments
 (0)