Skip to content

Added CItem::Materialize and CBaseCombatWeapon::Materialize data for HL2DM.#317

Merged
jordanbriere merged 1 commit into
Source-Python-Dev-Team:masterfrom
vinci6k:master
Apr 21, 2020
Merged

Added CItem::Materialize and CBaseCombatWeapon::Materialize data for HL2DM.#317
jordanbriere merged 1 commit into
Source-Python-Dev-Team:masterfrom
vinci6k:master

Conversation

@vinci6k

@vinci6k vinci6k commented Apr 21, 2020

Copy link
Copy Markdown
Contributor

Weapons and items in HL2DM are only spawned once. They get disabled when picked up by a player, and after a while (sv_hl2mp_weapon_respawn_time, sv_hl2mp_item_respawn_time) they are re-enabled.

As such, using an OnEntitySpawned/Created listener for these entities is pretty much pointless.
With CItem::Materialize() and CBaseCombatWeapon::Materialize(), we can get access to these entities when they are re-enabled.

@jordanbriere jordanbriere merged commit 0c8636d into Source-Python-Dev-Team:master Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants