Skip to content

Commit ae8698d

Browse files
committed
Merge branch 'master' into engine_blade
2 parents 4656f43 + 40690e5 commit ae8698d

File tree

8 files changed

+48
-42
lines changed

8 files changed

+48
-42
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[function]
22

33
[[increment_frag_count]]
4-
identifier_windows = 55 8B EC 8B 45 08 01 81 F0 0C 2A 2A 8B 81 F0 0C 2A 2A 89 81 2A 2A 2A 2A 5D C2 04 2A
4+
identifier_windows = 55 8B EC 8B 45 08 01 81 F8 0C 00 00
55
identifier_linux = _ZN11CBasePlayer18IncrementFragCountEi
66
arguments = INT
77

88
[[increment_death_count]]
9-
identifier_windows = 55 8B EC 8B 45 08 01 81 F4 0C 2A 2A 8B 81 F4 0C 2A 2A 89 81 2A 2A 2A 2A 5D C2 04 2A
9+
identifier_windows = 55 8B EC 8B 45 08 01 81 FC 0C 00 00
1010
identifier_linux = _ZN11CBasePlayer19IncrementDeathCountEi
1111
arguments = INT

addons/source-python/data/source-python/entities/orangebox/cstrike/CBasePlayer.ini

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,51 @@
22

33
# _ZN11CBasePlayer10BumpWeaponEP17CBaseCombatWeapon
44
[[bump_weapon]]
5-
offset_linux = 397
6-
offset_windows = 396
5+
offset_linux = 398
6+
offset_windows = 397
77
arguments = POINTER
88
return_type = BOOL
99

1010
# _ZN11CBasePlayer11Weapon_DropEP17CBaseCombatWeaponPK6VectorS4_
1111
[[drop_weapon]]
12-
offset_linux = 263
13-
offset_windows = 262
12+
offset_linux = 264
13+
offset_windows = 263
1414
arguments = POINTER, POINTER, POINTER
1515
return_type = VOID
1616

1717
# _ZN11CBasePlayer13GiveNamedItemEPKci
1818
[[give_named_item]]
19-
offset_linux = 401
20-
offset_windows = 400
19+
offset_linux = 402
20+
offset_windows = 401
2121
arguments = STRING, INT
2222
return_type = POINTER
2323

2424
# _ZN11CBasePlayer14FlashlightIsOnEv
2525
[[is_flashlight_on]]
26-
offset_linux = 354
27-
offset_windows = 353
26+
offset_linux = 355
27+
offset_windows = 354
2828
return_type = BOOL
2929

3030
# _ZN11CBasePlayer20SetFlashlightEnabledEb
3131
[[set_flashlight]]
32-
offset_linux = 353
33-
offset_windows = 352
32+
offset_linux = 354
33+
offset_windows = 353
3434
arguments = BOOL
3535

3636
# _ZN11CBasePlayer17FlashlightTurnOffEv
3737
[[turn_flashlight_off]]
38-
offset_linux = 356
39-
offset_windows = 355
38+
offset_linux = 357
39+
offset_windows = 356
4040

4141
# _ZN11CBasePlayer16FlashlightTurnOnEv
4242
[[turn_flashlight_on]]
43-
offset_linux = 355
44-
offset_windows = 354
43+
offset_linux = 356
44+
offset_windows = 355
4545

4646
# _ZN11CBasePlayer16PlayerRunCommandEP8CUserCmdP11IMoveHelper
4747
[[run_command]]
48-
offset_linux = 419
49-
offset_windows = 418
48+
offset_linux = 420
49+
offset_windows = 419
5050
arguments = POINTER, POINTER
5151

5252

addons/source-python/data/source-python/entities/orangebox/cstrike/CCSPlayer.ini

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@
3838

3939
# _ZN9CCSPlayer12Weapon_EquipEP17CBaseCombatWeapon
4040
[[equip_weapon]]
41-
offset_linux = 261
42-
offset_windows = 260
41+
offset_linux = 262
42+
offset_windows = 261
4343
arguments = POINTER
4444

4545
# _ZN9CCSPlayer5BlindEfff
4646
[[blind]]
47-
offset_linux = 468
48-
offset_windows = 465
47+
offset_linux = 469
48+
offset_windows = 466
4949
arguments = FLOAT, FLOAT, FLOAT
5050

5151

@@ -57,13 +57,13 @@
5757
[instance_attribute]
5858

5959
[[mvps]]
60-
offset_windows = 6328
61-
offset_linux = 6348
60+
offset_windows = 6384
61+
offset_linux = 6404
6262
type = INT
6363

6464
[[clan_tag]]
65-
offset_windows = 5580
66-
offset_linux = 5600
65+
offset_windows = 5628
66+
offset_linux = 5648
6767
type = STRING_ARRAY
6868

6969

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[virtual_function]
22

33
[[primary_attack]]
4-
offset_linux = 273
5-
offset_windows = 272
6-
7-
[[secondary_attack]]
84
offset_linux = 274
95
offset_windows = 273
6+
7+
[[secondary_attack]]
8+
offset_linux = 275
9+
offset_windows = 274

addons/source-python/data/source-python/entity_output/orangebox/CBaseEntityOutput.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ binary = server
55
[function]
66
[[fire_output]]
77
identifier_linux = _ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f
8-
identifier_windows = 55 8B EC 81 EC 24 01 2A 2A 53
8+
identifier_windows = 55 8B EC 81 EC 24 01 00 00 53 8B C1
99
arguments_linux = POINTER, POINTER, POINTER, FLOAT
1010
arguments_windows = INT, INT, INT, INT, POINTER, POINTER, POINTER, FLOAT

addons/source-python/packages/source-python/menus/queue.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,15 @@ def pop(self, key, default=None):
189189
# =============================================================================
190190
# >> FUNCTIONS
191191
# =============================================================================
192-
def _validate_selection(player_info, command, valid_choices):
192+
def _validate_selection(command, index, valid_choices):
193193
"""Validate a selection command.
194194
195-
@param <player_infor>:
196-
A PlayerInfo instance.
197-
198195
@param <command>:
199196
A Command instance.
200197
198+
@param <index>:
199+
The player index that issued the command.
200+
201201
@param <valid_choices>:
202202
A list of integers that defines all valid choices
203203
"""
@@ -208,7 +208,7 @@ def _validate_selection(player_info, command, valid_choices):
208208
return (None, None)
209209

210210
if choice in valid_choices:
211-
return (index_from_playerinfo(player_info), choice)
211+
return (index, choice)
212212

213213
return (None, None)
214214

@@ -242,21 +242,21 @@ def _esc_refresh():
242242
# >> CLIENT COMMANDS
243243
# =============================================================================
244244
@ClientCommand('menuselect')
245-
def _menuselect_callback(player_info, command):
245+
def _menuselect_callback(command, index):
246246
"""Forward the selection to the proper user queue."""
247247
from menus.radio import VALID_CHOICES
248248

249-
index, choice = _validate_selection(player_info, command, VALID_CHOICES)
249+
index, choice = _validate_selection(command, index, VALID_CHOICES)
250250
if index is not None:
251251
_radio_queues[index]._select(choice)
252252

253253

254254
@ClientCommand(ESC_SELECTION_CMD)
255-
def _escselect_callback(player_info, command):
255+
def _escselect_callback(command, index):
256256
"""Forward the selection to the proper user queue."""
257257
from menus.esc import VALID_CHOICES
258258

259-
index, choice = _validate_selection(player_info, command, VALID_CHOICES)
259+
index, choice = _validate_selection(command, index, VALID_CHOICES)
260260
if index is not None:
261261
_esc_queues[index]._select(choice)
262262

addons/source-python/packages/source-python/menus/radio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
else:
4242
BUTTON_BACK = 8
4343
BUTTON_NEXT = 9
44-
BUTTON_CLOSE = 0
44+
BUTTON_CLOSE = 10
4545
MAX_ITEM_COUNT = 7
46-
VALID_CHOICES = range(10)
46+
VALID_CHOICES = range(1, 11)
4747

4848

4949
# =============================================================================

src/core/sp_main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ InterfaceHelper_t gEngineInterfaces[] = {
147147
{NULL, NULL}
148148
};
149149

150+
// TODO: This is just a quick fix. The real fix is coming soon.
151+
#ifdef ENGINE_ORANGEBOX
152+
#undef INTERFACEVERSION_SERVERGAMEDLL
153+
#define INTERFACEVERSION_SERVERGAMEDLL "ServerGameDLL010"
154+
#endif
155+
150156
InterfaceHelper_t gGameInterfaces[] = {
151157
{INTERFACEVERSION_PLAYERINFOMANAGER, (void **)&playerinfomanager},
152158
{INTERFACEVERSION_PLAYERBOTMANAGER, (void **)&botmanager},

0 commit comments

Comments
 (0)