Skip to content

Commit 949abfa

Browse files
authored
Updated HL2:DM data. (#500) (#502)
1 parent c325e2d commit 949abfa

File tree

6 files changed

+117
-16
lines changed

6 files changed

+117
-16
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[virtual_function]
2+
3+
# _ZN20CBaseCombatCharacter13Weapon_SwitchEP17CBaseCombatWeaponi
4+
[[weapon_switch]]
5+
offset_linux = 271
6+
offset_windows = 270
7+
arguments = POINTER, INT
8+
return_type = BOOL
9+
10+
# _ZN20CBaseCombatCharacter18OnTakeDamage_AliveERK15CTakeDamageInfo
11+
[[on_take_damage_alive]]
12+
offset_linux = 279
13+
offset_windows = 278
14+
arguments = POINTER
15+
return_type = INT

addons/source-python/data/source-python/entities/orangebox/hl2mp/CBaseCombatWeapon.ini

100644100755
+6-6
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
# _ZN17CBaseCombatWeapon13PrimaryAttackEv
44
[[primary_attack]]
5-
offset_linux = 274
6-
offset_windows = 273
5+
offset_linux = 280
6+
offset_windows = 279
77

88
# _ZN17CBaseCombatWeapon13SecondaryAttackEv
99
[[secondary_attack]]
10-
offset_linux = 275
11-
offset_windows = 274
10+
offset_linux = 281
11+
offset_windows = 280
1212

1313
# _ZN17CBaseCombatWeapon11MaterializeEv
1414
[[materialize]]
15-
offset_linux = 349
16-
offset_windows = 348
15+
offset_linux = 353
16+
offset_windows = 352
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
[virtual_function]
2+
3+
# _ZN11CBaseEntity11SetTransmitEP18CCheckTransmitInfob
4+
[[set_transmit]]
5+
offset_linux = 23
6+
offset_windows = 22
7+
arguments = POINTER, BOOL
8+
9+
# _ZN11CBaseEntity8SetModelEPKc
10+
[[set_model]]
11+
offset_linux = 27
12+
offset_windows = 26
13+
arguments = STRING
14+
15+
# _ZN11CBaseEntity9SetParentEPS_i
16+
[[set_parent]]
17+
offset_linux = 37
18+
offset_windows = 36
19+
arguments = POINTER, INT
20+
21+
# _ZN11CBaseEntity12OnTakeDamageERK15CTakeDamageInfo
22+
[[on_take_damage]]
23+
offset_linux = 65
24+
offset_windows = 64
25+
arguments = POINTER
26+
return_type = INT
27+
28+
# _ZN11CBaseEntity10StartTouchEPS_
29+
[[start_touch]]
30+
offset_linux = 101
31+
offset_windows = 100
32+
arguments = POINTER
33+
34+
# _ZN11CBaseEntity5TouchEPS_
35+
[[touch]]
36+
offset_linux = 102
37+
offset_windows = 101
38+
arguments = POINTER
39+
40+
# _ZN11CBaseEntity8EndTouchEPS_
41+
[[end_touch]]
42+
offset_linux = 103
43+
offset_windows = 102
44+
arguments = POINTER
45+
46+
# _ZN11CBaseEntity8TeleportEPK6VectorPK6QAngleS2_
47+
[[teleport]]
48+
offset_linux = 111
49+
offset_windows = 110
50+
arguments = POINTER, POINTER, POINTER
51+
52+
# _ZNK11CBasePlayer25PhysicsSolidMaskForEntityEv
53+
[[get_solid_mask]]
54+
offset_linux = 171
55+
offset_windows = 170
56+
return_type = UINT

addons/source-python/data/source-python/entities/orangebox/hl2mp/CBaseGrenade.ini

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

33
# _ZN12CBaseGrenade8DetonateEv
44
[[detonate]]
5-
offset_linux = 226
6-
offset_windows = 225
5+
offset_linux = 233
6+
offset_windows = 232
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,54 @@
1+
[function]
2+
3+
[[increment_frag_count]]
4+
identifier_windows = 55 8B EC 8B 45 08 01 81 68 0E 00 00
5+
identifier_linux = _ZN11CBasePlayer18IncrementFragCountEi
6+
arguments = INT
7+
8+
[[increment_death_count]]
9+
identifier_windows = 55 8B EC 8B 45 08 01 81 6C 0E 00 00
10+
identifier_linux = _ZN11CBasePlayer19IncrementDeathCountEi
11+
arguments = INT
12+
13+
114
[virtual_function]
215

16+
# _ZN11CBasePlayer11Weapon_DropEP17CBaseCombatWeaponPK6VectorS4_
17+
[[drop_weapon]]
18+
offset_linux = 270
19+
offset_windows = 269
20+
arguments = POINTER, POINTER, POINTER
21+
22+
# _ZN11CBasePlayer8PreThinkEv
23+
[[pre_think]]
24+
offset_linux = 339
25+
offset_windows = 338
26+
27+
# _ZN11CBasePlayer9PostThinkEv
28+
[[post_think]]
29+
offset_linux = 340
30+
offset_windows = 339
31+
332
# _ZN11CBasePlayer10BumpWeaponEP17CBaseCombatWeapon
433
[[bump_weapon]]
5-
offset_linux = 397
6-
offset_windows = 396
34+
offset_linux = 404
35+
offset_windows = 403
736
arguments = POINTER
837
return_type = BOOL
938

1039
# _ZN11CBasePlayer13GiveNamedItemEPKci
1140
[[give_named_item]]
12-
offset_linux = 401
13-
offset_windows = 400
41+
offset_linux = 408
42+
offset_windows = 407
1443
arguments = STRING, INT
1544
return_type = POINTER
1645

1746
# _ZN11CBasePlayer16PlayerRunCommandEP8CUserCmdP11IMoveHelper
1847
[[run_command]]
19-
offset_linux = 419
20-
offset_windows = 418
48+
offset_linux = 426
49+
offset_windows = 425
2150
arguments = POINTER, POINTER
2251

52+
2353
[property]
2454
armor = m_ArmorValue

addons/source-python/data/source-python/entities/orangebox/hl2mp/CItem.ini

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

33
# _ZN5CItem11MaterializeEv
44
[[materialize]]
5-
offset_linux = 218
6-
offset_windows = 217
5+
offset_linux = 224
6+
offset_windows = 223

0 commit comments

Comments
 (0)