Skip to content

Conversation

@vinci6k
Copy link
Contributor

@vinci6k vinci6k commented Apr 21, 2020

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