Skip to content

Commit 9104842

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master' into engine_sdk2013
2 parents a75fc72 + a909b63 commit 9104842

File tree

89 files changed

+2405
-8010
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+2405
-8010
lines changed

addons/source-python/data/source-python/entities/CBaseCombatCharacter.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313

1414
gun_offset = m_HackedGunPos
1515
hitgroup = m_LastHitGroup
16-
active_weapon = m_hActiveWeapon
16+
active_weapon_handle = m_hActiveWeapon

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
next_secondary_fire_attack = LocalActiveWeaponData.m_flNextSecondaryAttack
1010
ammoprop = LocalWeaponData.m_iPrimaryAmmoType
1111
secondary_fire_ammoprop = LocalWeaponData.m_iSecondaryAmmoType
12-
owner = m_hOwner
13-
clip = m_iClip1
14-
secondary_fire_clip = m_iClip2
12+
owner_handle = m_hOwner
13+
_clip = m_iClip1
14+
_secondary_fire_clip = m_iClip2
1515
flip_view_model = LocalWeaponData.m_bFlipViewModel

addons/source-python/data/source-python/entities/CBaseEntity.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
render = m_clrRender
7878
elasticity = m_flElasticity
7979
ground_entity = m_hGroundEntity
80-
owner = m_hOwnerEntity
80+
owner_handle = m_hOwnerEntity
8181
team = m_iTeamNum
8282
render_fx = m_nRenderFX
8383
render_mode_prop = m_nRenderMode
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
[virtual_function]
22

33
# _ZN20CBaseCombatCharacter13Weapon_SwitchEP17CBaseCombatWeaponi
4-
# TODO: Validate these offsets.
54
[[weapon_switch]]
6-
offset_linux = 265
7-
offset_windows = 264
5+
offset_linux = 283
6+
offset_windows = 282
87
arguments = POINTER, INT
98
return_type = BOOL
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[property]
2+
3+
primary_ammo_count = m_iPrimaryReserveAmmoCount
4+
secondary_ammo_count = m_iSecondaryReserveAmmoCount
5+
ammoprop = m_iPrimaryAmmoType
6+
secondary_fire_ammoprop = m_iSecondaryAmmoType
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
core.command.plugin module
2+
===========================
3+
4+
.. automodule:: core.command.plugin
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

addons/source-python/docs/source-python/source/developing/modules/core.command.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Submodules
1010
core.command.auth
1111
core.command.docs
1212
core.command.dump
13+
core.command.plugin
1314

1415
Module contents
1516
---------------
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
filesystem module
2+
==================
3+
4+
.. automodule:: filesystem
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
players._base module
2+
====================
3+
4+
.. automodule:: players._base
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
players.engines.csgo package
2+
=============================
3+
4+
Module contents
5+
---------------
6+
7+
.. automodule:: players.engines.csgo
8+
:members:
9+
:undoc-members:
10+
:show-inheritance:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
players.engines.orangebox.cstrike module
2+
=========================================
3+
4+
.. automodule:: players.engines.orangebox.cstrike
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
players.engines.orangebox package
2+
==================================
3+
4+
Submodules
5+
----------
6+
7+
.. toctree::
8+
:titlesonly:
9+
10+
players.engines.orangebox.cstrike
11+
12+
Module contents
13+
---------------
14+
15+
.. automodule:: players.engines.orangebox
16+
:members:
17+
:undoc-members:
18+
:show-inheritance:
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
players.engines package
2+
========================
3+
4+
Subpackages
5+
-----------
6+
7+
.. toctree::
8+
:titlesonly:
9+
10+
players.engines.csgo
11+
players.engines.orangebox
12+
13+
Module contents
14+
---------------
15+
16+
.. automodule:: players.engines
17+
:members:
18+
:undoc-members:
19+
:show-inheritance:

addons/source-python/docs/source-python/source/developing/modules/players.games.base.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

addons/source-python/docs/source-python/source/developing/modules/players.games.csgo.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

addons/source-python/docs/source-python/source/developing/modules/players.games.cstrike.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

addons/source-python/docs/source-python/source/developing/modules/players.games.rst

Lines changed: 0 additions & 20 deletions
This file was deleted.

addons/source-python/docs/source-python/source/developing/modules/players.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ Subpackages
77
.. toctree::
88
:titlesonly:
99

10-
players.games
11-
players.weapons
10+
players.engines
1211

1312
Submodules
1413
----------
1514

1615
.. toctree::
1716
:titlesonly:
1817

18+
players._base
1919
players.bots
2020
players.constants
2121
players.dictionary

addons/source-python/docs/source-python/source/developing/modules/players.weapons.projectiles.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

addons/source-python/docs/source-python/source/developing/modules/players.weapons.rst

Lines changed: 0 additions & 19 deletions
This file was deleted.

addons/source-python/docs/source-python/source/developing/modules/players.weapons.types.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
weapons.engines.csgo package
2+
=============================
3+
4+
Module contents
5+
---------------
6+
7+
.. automodule:: weapons.engines.csgo
8+
:members:
9+
:undoc-members:
10+
:show-inheritance:
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
weapons.engines package
2+
========================
3+
4+
Subpackages
5+
-----------
6+
7+
.. toctree::
8+
:titlesonly:
9+
10+
weapons.engines.csgo
11+
12+
Module contents
13+
---------------
14+
15+
.. automodule:: weapons.engines
16+
:members:
17+
:undoc-members:
18+
:show-inheritance:

addons/source-python/docs/source-python/source/developing/modules/weapons.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Submodules
1010
weapons.constants
1111
weapons.default
1212
weapons.dictionary
13+
weapons.engines
1314
weapons.entity
1415
weapons.instance
1516
weapons.manager

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,5 @@
2020
# Get the sp.auth logger
2121
auth_logger = _sp_logger.auth
2222

23-
# Get the auth language strings
24-
_auth_strings = LangStrings('_core/auth_strings')
25-
2623
if not AUTH_CFG_PATH.exists():
2724
AUTH_CFG_PATH.mkdir()

addons/source-python/packages/source-python/commands/typed.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# ../commands/typed.py
2+
13
#: .. todo:: Add the ability to define prefixes for messages.
24
#: .. todo:: Add callback to the Node class. It could be called when a sub-command is required.
35

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ../core/commands/command.py
1+
# ../core/command/__init__.py
22

33
"""Registers the "sp" server command and all of its sub-commands."""
44

addons/source-python/packages/source-python/core/command/plugin.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
# =============================================================================
66
# >> IMPORTS
77
# =============================================================================
8-
# Python Imports
9-
# Warnings
10-
from warnings import warn
118
# Source.Python Imports
129
# Commands
1310
from commands.typed import TypedServerCommand
@@ -29,50 +26,22 @@
2926
def _sp_plugin_load(command_info, plugin):
3027
"""Load a plugin."""
3128
_core_command.load_plugin(plugin)
32-
33-
@_core_command.server_sub_command(['load'])
34-
def _sp_load(command_info, plugin):
35-
"""Load a plugin."""
36-
warn('"sp load" will be removed soon. Use "sp plugin load" instead.',
37-
DeprecationWarning)
38-
_core_command.load_plugin(plugin)
3929

4030
@_core_command.server_sub_command(['plugin', 'unload'])
4131
def _sp_plugin_unload(command_info, plugin):
4232
"""Unload a plugin."""
4333
_core_command.unload_plugin(plugin)
4434

45-
@_core_command.server_sub_command(['unload'])
46-
def _sp_unload(command_info, plugin):
47-
"""Unload a plugin."""
48-
warn('"sp unload" will be removed soon. Use "sp plugin unload" instead.',
49-
DeprecationWarning)
50-
_core_command.unload_plugin(plugin)
51-
5235
@_core_command.server_sub_command(['plugin', 'reload'])
5336
def _sp_plugin_reload(command_info, plugin):
5437
"""Reload a plugin."""
5538
_core_command.reload_plugin(plugin)
5639

57-
@_core_command.server_sub_command(['reload'])
58-
def _sp_reload(command_info, plugin):
59-
"""Reload a plugin."""
60-
warn('"sp reload" will be removed soon. Use "sp plugin reload" instead.',
61-
DeprecationWarning)
62-
_core_command.reload_plugin(plugin)
63-
6440
@_core_command.server_sub_command(['plugin', 'list'])
6541
def _sp_plugin_list(command_info):
6642
"""List all currently loaded plugins."""
6743
_core_command.print_plugins()
6844

69-
@_core_command.server_sub_command(['list'])
70-
def _sp_list(command_info):
71-
"""List all currently loaded plugins."""
72-
warn('"sp list" will be removed soon. Use "sp plugin list" instead.',
73-
DeprecationWarning)
74-
_core_command.print_plugins()
75-
7645

7746
# =============================================================================
7847
# >> DESCRIPTIONS

0 commit comments

Comments
 (0)