Skip to content

Commit b75f55a

Browse files
committed
Added drop_weapon and pre_think virtual functions to 'tf' data, since that game differs from all others on the virtual offsets.
1 parent 4774e9e commit b75f55a

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

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

-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@
1818
offset_linux = 264
1919
offset_windows = 263
2020
arguments = POINTER, POINTER, POINTER
21-
return_type = VOID
2221

2322
# _ZN11CBasePlayer8PreThinkEv
2423
[[pre_think]]
2524
offset_linux = 333
2625
offset_windows = 332
27-
2826

2927
# _ZN11CBasePlayer9PostThinkEv
3028
[[post_think]]

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

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
[virtual_function]
2+
3+
# _ZN11CBasePlayer11Weapon_DropEP17CBaseCombatWeaponPK6VectorS4_
4+
[[drop_weapon]]
5+
offset_linux = 265
6+
offset_windows = 264
7+
arguments = POINTER, POINTER, POINTER
8+
9+
# _ZN11CBasePlayer8PreThinkEv
10+
[[pre_think]]
11+
offset_linux = 334
12+
offset_windows = 333
13+
14+
115
[property]
216

317
[[view_offset]]

0 commit comments

Comments
 (0)