Skip to content

Commit c6bf3d8

Browse files
committed
Update TF2 offsets (#449)
1 parent d0ffd8c commit c6bf3d8

File tree

5 files changed

+44
-19
lines changed

5 files changed

+44
-19
lines changed

Diff for: addons/source-python/data/source-python/entities/orangebox/tf/CBaseCombatCharacter.ini

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
# _ZN20CBaseCombatCharacter18OnTakeDamage_AliveERK15CTakeDamageInfo
44
[[on_take_damage_alive]]
5-
offset_linux = 277
6-
offset_windows = 276
5+
offset_linux = 280
6+
offset_windows = 279
77
arguments = POINTER
88
return_type = INT
99

1010
# _ZN20CBaseCombatCharacter13Weapon_SwitchEP17CBaseCombatWeaponi
1111
[[weapon_switch]]
12-
offset_linux = 269
13-
offset_windows = 268
12+
offset_linux = 272
13+
offset_windows = 271

Diff for: addons/source-python/data/source-python/entities/orangebox/tf/CBaseCombatWeapon.ini

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
# _ZN17CBaseCombatWeapon13PrimaryAttackEv
44
[[primary_attack]]
5-
offset_linux = 285
6-
offset_windows = 284
5+
offset_linux = 289
6+
offset_windows = 288
77

8-
# _ZN17CBaseCombatWeapon13SecondaryAttackEv
8+
# _ZN17CBaseCombatWeapon15SecondaryAttackEv
99
[[secondary_attack]]
10-
offset_linux = 286
11-
offset_windows = 285
10+
offset_linux = 290
11+
offset_windows = 289
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[virtual_function]
2+
3+
# _ZN11CBaseEntity8TeleportEPK6VectorPK6QAngleS2_
4+
[[teleport]]
5+
offset_linux = 112
6+
offset_windows = 111
7+
arguments = POINTER, POINTER, POINTER
8+
9+
# _ZN11CBaseEntity10StartTouchEPS_
10+
[[start_touch]]
11+
offset_linux = 102
12+
offset_windows = 101
13+
arguments = POINTER
14+
15+
# _ZN11CBaseEntity5TouchEPS_
16+
[[touch]]
17+
offset_linux = 103
18+
offset_windows = 102
19+
arguments = POINTER
20+
21+
# _ZN11CBaseEntity8EndTouchEPS_
22+
[[end_touch]]
23+
offset_linux = 104
24+
offset_windows = 103
25+
arguments = POINTER

Diff for: addons/source-python/data/source-python/entities/orangebox/tf/CBasePlayer.ini

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22

33
# _ZN11CBasePlayer11Weapon_DropEP17CBaseCombatWeaponPK6VectorS4_
44
[[drop_weapon]]
5-
offset_linux = 268
6-
offset_windows = 267
5+
offset_linux = 271
6+
offset_windows = 270
77
arguments = POINTER, POINTER, POINTER
88

99
# _ZN11CBasePlayer8PreThinkEv
1010
[[pre_think]]
11-
offset_linux = 338
12-
offset_windows = 337
11+
offset_linux = 341
12+
offset_windows = 340
1313

1414
# _ZN11CBasePlayer9PostThinkEv
1515
[[post_think]]
16-
offset_linux = 339
17-
offset_windows = 338
16+
offset_linux = 342
17+
offset_windows = 341
1818

1919
# _ZN11CBasePlayer16PlayerRunCommandEP8CUserCmdP11IMoveHelper
2020
[[run_command]]
21-
offset_linux = 424
22-
offset_windows = 423
21+
offset_linux = 428
22+
offset_windows = 427
2323
arguments = POINTER, POINTER
2424

2525

Diff for: addons/source-python/data/source-python/entities/orangebox/tf/CTFPlayer.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
# _ZN9CTFPlayer10BumpWeaponEP17CBaseCombatWeapon
44
[[bump_weapon]]
5-
offset_linux = 402
6-
offset_windows = 401
5+
offset_linux = 406
6+
offset_windows = 405
77
arguments = POINTER
88
return_type = BOOL
99

0 commit comments

Comments
 (0)