Skip to content

Commit bab9b13

Browse files
committed
Merge branch 'master' into collisions_transmit
2 parents 6a25475 + 12a24f4 commit bab9b13

File tree

13 files changed

+193
-76
lines changed

13 files changed

+193
-76
lines changed
118 KB
Binary file not shown.

addons/source-python/data/source-python/entities/csgo/CBaseCSGrenadeProjectile.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ srv_check = False
55

66
[[set_attacker]]
77
identifier_windows = 55 8B EC 53 8B 5D 08 56 57 8B F9 53
8-
identifier_linux = 55 89 E5 57 56 53 83 EC 2C C7 45 E4 00 00 00 00 8B 5D 08 8B 75 0C
8+
identifier_linux = 55 89 E5 57 56 53 83 EC 2C 8B 5D 08 8B 7D 0C 8B 83 2A 2A 00 00 83 F8 FF 0F 84 2A 2A 00 00 8B 0D
99
arguments = POINTER
1010

1111

addons/source-python/data/source-python/entities/csgo/CCSPlayer.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ srv_check = False
2121
[[deafen]]
2222
identifier_windows = 55 8B EC 83 EC 28 56 57 8B F9 F3 0F 11 4D FC
2323
# identifier_linux = _ZN9CCSPlayer6DeafenEf
24-
identifier_linux = 55 89 E5 83 EC 48 89 7D FC 8B 7D 08 89 5D F4 89 75 F8 8B 07
24+
identifier_linux = 55 89 E5 57 56 53 83 EC 38 8B 5D 08 8B 03 53 FF 90 2A 2A 00 00 83 C4 10 85 C0
2525

2626
# Reference string: sf_ui_tint
2727
[[_spawn]]
2828
identifier_windows = 55 8B EC 83 EC 0C 53 56 57 8B F9 8B 0D 2A 2A 2A 2A 8B 01
2929
# identifier_linux = _ZN9CCSPlayer12RoundRespawnEv
30-
identifier_linux = 55 89 E5 56 53 83 EC 1C 8B 5D 08 FF 35 2A 2A 2A 2A E8 AA 32 F8 FF
30+
identifier_linux = 55 89 E5 56 53 83 EC 1C 8B 5D 08 FF 35 2A 2A 2A 2A E8 2A 2A 2A 2A 83 C4 10 84 C0 0F 85 2A 2A 2A 2A 8B 13
3131

3232
# Reference string: CCSPlayer::SwitchTeam( %d ) - invalid t
3333
[[switch_team]]
3434
identifier_windows = 55 8B EC 83 EC 10 53 56 8B 75 08 57 8B F9 85 F6
3535
# identifier_linux = _ZN9CCSPlayer10SwitchTeamEi
36-
identifier_linux = 55 89 E5 56 53 83 EC 2C 8B 5D 0C 8B 75 08 53 E8 0C 7E C7 FF
36+
identifier_linux = 55 89 E5 56 53 83 EC 2C 8B 5D 0C 8B 75 08 53
3737
arguments = INT
3838

3939

addons/source-python/data/source-python/entities/csgo/CDecoyProjectile.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ srv_check = False
66
# CDecoyProjectile::Think_Detonate
77
[[detonate]]
88
identifier_windows = 55 8B EC 51 56 8B F1 57 8B 86 D4 00 00 00
9-
identifier_linux = 55 89 E5 57 56 53 83 EC 3C 8B 5D 08 F6 83 2A 00 00 00 10
9+
identifier_linux = 55 89 E5 57 56 53 83 EC 1C 8B 5D 08 F6 83 2A 00 00 00 10

addons/source-python/data/source-python/entities/csgo/CSensorGrenadeProjectile.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ srv_check = False
1111
# CSensorGrenadeProjectile::SensorThink
1212
[[detonate]]
1313
identifier_windows = 55 8B EC 83 E4 F8 51 53 56 57 8B F1 E8 2A 2A 2A 2A 8B F8
14-
identifier_linux = 55 89 E5 57 56 53 83 EC 28 8B 5D 08 53 E8 EE 49 95 FF 83 C4 10 85
14+
identifier_linux = 55 89 E5 57 56 53 83 EC 28 8B 5D 08 53 E8 2A 2A 2A 2A 83 C4 10 85 C0 0F 84 2A 2A 2A 2A 89 C6 8B 00
1515

1616
# CSensorGrenadeProjectile::DoDetectWave
1717
[[do_detect_wave]]
1818
identifier_windows = 53 8B DC 83 EC 08 83 E4 F0 83 C4 04 55 8B 6B 04 89 6C 24 04 8B EC 81 EC 38 01 00 00 56 8B F1
19-
identifier_linux = 55 89 E5 57 56 53 81 EC 68 01 00 00 FF 75 08 E8 4C 58 95 FF
19+
identifier_linux = 55 89 E5 57 56 53 81 EC 68 01 00 00 FF 75 08
2020

2121

2222
[instance_attribute]

addons/source-python/data/source-python/entities/orangebox/dod/CDODPlayer.ini

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,13 @@
55
[[eye_angle]]
66
name = m_angEyeAngles[0]
77
type = QAngle
8+
9+
10+
[virtual_function]
11+
12+
# _ZN10CDODPlayer13GiveNamedItemEPKci
13+
[[give_named_item]]
14+
offset_linux = 401
15+
offset_windows = 400
16+
arguments = STRING, INT
17+
return_type = POINTER

addons/source-python/data/source-python/weapons/csgo.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
slot = 0
3939
maxammo = 30
4040
ammoprop = 6
41-
clip = 10
41+
clip = 5
4242
cost = 4750
4343
item_definition_index = 9
4444
tags = "all,primary,rifle,sniper"
@@ -118,10 +118,10 @@
118118

119119
[[m4a1_silencer]]
120120
slot = 0
121-
maxammo = 75
121+
maxammo = 80
122122
ammoprop = 4
123-
clip = 25
124-
cost = 3100
123+
clip = 20
124+
cost = 2900
125125
item_definition_index = 60
126126
parent_class = "weapon_m4a1"
127127
tags = "all,secondary,rifle"

addons/source-python/data/source-python/weapons/dod.ini

Lines changed: 150 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -6,113 +6,200 @@
66

77
[weapons]
88

9-
[[30cal]]
10-
tags = "all"
9+
# =========================================================================
10+
# PRIMARY WEAPONS
11+
# =========================================================================
12+
[[garand]]
13+
slot = 0
14+
clip = 8
15+
ammoprop = 4
16+
tags = "all,primary,rifle"
1117

12-
[[amerknife]]
13-
tags = "all"
18+
[[thompson]]
19+
slot = 0
20+
clip = 30
21+
ammoprop = 8
22+
tags = "all,primary"
1423

1524
[[bar]]
16-
tags = "all"
25+
slot = 0
26+
clip = 20
27+
ammoprop = 9
28+
tags = "all,primary"
1729

18-
[[basebomb]]
19-
tags = "all"
30+
[[spring]]
31+
slot = 0
32+
clip = 5
33+
ammoprop = 7
34+
tags = "all,primary,rifle"
2035

21-
[[basedodgrenade]]
22-
tags = "all"
36+
[[30cal]]
37+
slot = 0
38+
clip = 150
39+
ammoprop = 10
40+
tags = "all,primary,machinegun"
2341

2442
[[bazooka]]
25-
tags = "all"
26-
27-
[[c96]]
28-
tags = "all"
29-
30-
[[colt]]
31-
tags = "all"
32-
33-
[[dod_base]]
34-
tags = "all"
43+
slot = 0
44+
clip = 1
45+
ammoprop = 12
46+
tags = "all,primary,explosive"
3547

36-
[[dod_base_gun]]
37-
tags = "all"
38-
39-
[[dod_base_melee]]
40-
tags = "all"
48+
[[k98]]
49+
slot = 0
50+
clip = 5
51+
ammoprop = 5
52+
tags = "all,primary,rifle"
4153

42-
[[dodbaserpg]]
43-
tags = "all"
54+
[[mp40]]
55+
slot = 0
56+
clip = 30
57+
ammoprop = 8
58+
tags = "all,primary"
4459

45-
[[frag_ger]]
46-
tags = "all"
60+
[[mp44]]
61+
slot = 0
62+
clip = 30
63+
ammoprop = 8
64+
tags = "all,primary"
4765

48-
[[frag_ger_live]]
49-
tags = "all"
66+
[[k98_scoped]]
67+
slot = 0
68+
clip = 5
69+
ammoprop = 5
70+
tags = "all,primary,rifle"
5071

51-
[[frag_us]]
52-
tags = "all"
72+
[[mg42]]
73+
slot = 0
74+
clip = 250
75+
ammoprop = 11
76+
tags = "all,primary,machinegun"
5377

54-
[[frag_us_live]]
55-
tags = "all"
78+
[[pschreck]]
79+
slot = 0
80+
clip = 1
81+
ammoprop = 12
82+
tags = "all,primary,explosive"
83+
84+
# =========================================================================
85+
# SECONDARY WEAPONS
86+
# =========================================================================
87+
[[colt]]
88+
slot = 1
89+
clip = 7
90+
ammoprop = 1
91+
tags = "all,secondary,pistol"
5692

57-
[[garand]]
58-
tags = "all"
93+
[[m1carbine]]
94+
slot = 1
95+
clip = 15
96+
ammoprop = 6
97+
tags = "all,secondary,rifle"
5998

60-
[[ifm_base]]
61-
tags = "all"
99+
[[p38]]
100+
slot = 1
101+
clip = 8
102+
ammoprop = 2
103+
tags = "all,secondary,pistol"
62104

63-
[[ifm_base_camera]]
64-
tags = "all"
105+
[[c96]]
106+
slot = 0
107+
clip = 20
108+
ammoprop = 3
109+
tags = "all,secondary,pistol"
110+
111+
# =========================================================================
112+
# MELEE WEAPONS
113+
# =========================================================================
114+
[[amerknife]]
115+
slot = 2
116+
clip = -1
117+
ammoprop = -1
118+
tags = "all,melee"
65119

66-
[[ifm_steadycam]]
67-
tags = "all"
120+
[[spade]]
121+
slot = 2
122+
clip = -1
123+
ammoprop = -1
124+
tags = "all,melee"
125+
126+
# =========================================================================
127+
# PROJECTILE WEAPONS
128+
# =========================================================================
129+
[[riflegren_us]]
130+
slot = 3
131+
clip = -1
132+
ammoprop = 21
133+
tags = "all,grenade,explosive"
68134

69-
[[k98]]
70-
tags = "all"
135+
[[smoke_us]]
136+
slot = 2
137+
clip = -1
138+
ammoprop = 17
139+
tags = "all,grenade"
71140

72-
[[k98_scoped]]
73-
tags = "all"
141+
[[frag_us]]
142+
slot = 3
143+
clip = -1
144+
ammoprop = 13
145+
tags = "all,grenade,explosive"
74146

75-
[[m1carbine]]
76-
tags = "all"
147+
[[riflegren_ger]]
148+
slot = 3
149+
clip = -1
150+
ammoprop = 22
151+
tags = "all,grenade,explosive"
77152

78-
[[mg42]]
79-
tags = "all"
153+
[[smoke_ger]]
154+
slot = 2
155+
clip = -1
156+
ammoprop = 18
157+
tags = "all,grenade"
80158

81-
[[mp40]]
159+
[[frag_ger]]
160+
slot = 3
161+
clip = -1
162+
ammoprop = 14
163+
tags = "all,grenade,explosive"
164+
165+
# =========================================================================
166+
# UNKNOWN WEAPONS
167+
# =========================================================================
168+
[[dod_base]]
82169
tags = "all"
83170

84-
[[mp44]]
171+
[[basebomb]]
85172
tags = "all"
86173

87-
[[p38]]
174+
[[basedodgrenade]]
88175
tags = "all"
89176

90-
[[pschreck]]
177+
[[dod_base_gun]]
91178
tags = "all"
92179

93-
[[riflegren_ger]]
180+
[[dod_base_melee]]
94181
tags = "all"
95182

96-
[[riflegren_ger_live]]
183+
[[dodbaserpg]]
97184
tags = "all"
98185

99-
[[riflegren_us]]
186+
[[frag_ger_live]]
100187
tags = "all"
101188

102-
[[riflegren_us_live]]
189+
[[frag_us_live]]
103190
tags = "all"
104191

105-
[[smoke_ger]]
192+
[[ifm_base]]
106193
tags = "all"
107194

108-
[[smoke_us]]
195+
[[ifm_base_camera]]
109196
tags = "all"
110197

111-
[[spade]]
198+
[[ifm_steadycam]]
112199
tags = "all"
113200

114-
[[spring]]
201+
[[riflegren_ger_live]]
115202
tags = "all"
116203

117-
[[thompson]]
204+
[[riflegren_us_live]]
118205
tags = "all"

addons/source-python/packages/source-python/core/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
# Source.Python Imports
4242
# Paths
4343
from paths import GAME_PATH
44+
from paths import CFG_PATH
4445
from paths import PLUGIN_PATH
4546

4647

@@ -64,13 +65,15 @@
6465
# =============================================================================
6566
__all__ = ('AutoUnload',
6667
'BoostPythonClass',
68+
'ConfigFile',
6769
'GameConfigObj',
6870
'WeakAutoUnload',
6971
'GAME_NAME',
7072
'OutputReturn',
7173
'PLATFORM',
7274
'SOURCE_ENGINE',
7375
'SOURCE_ENGINE_BRANCH',
76+
'Tokenize',
7477
'check_info_output',
7578
'console_message',
7679
'create_checksum',

src/core/modules/players/players_entity.cpp

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,12 +745,12 @@ void PlayerMixin::SetSuitPowerLoad(float value)
745745

746746
unsigned char PlayerMixin::GetDesiredPlayerClass()
747747
{
748-
static int offset = FindNetworkPropertyOffset("m_Shared.m_iDesiredPlayerClass");
748+
static int offset = FindNetworkPropertyOffset(DESIRED_PLAYER_CLASS_PROPERTY);
749749
return GetNetworkPropertyByOffset<unsigned char>(offset);
750750
}
751751

752752
void PlayerMixin::SetDesiredPlayerClass(unsigned char value)
753753
{
754-
static int offset = FindNetworkPropertyOffset("m_Shared.m_iDesiredPlayerClass");
754+
static int offset = FindNetworkPropertyOffset(DESIRED_PLAYER_CLASS_PROPERTY);
755755
SetNetworkPropertyByOffset<unsigned char>(offset, value);
756756
}

0 commit comments

Comments
 (0)