ampreeT / SourceCoop

Black Mesa cooperative plugin for SourceMod
GNU General Public License v3.0
182 stars 13 forks source link

Hook "GiveDefaultItems" for controlling spawn item equips #136

Closed Alienmario closed 1 month ago

Alienmario commented 3 months ago

Right now, the feature implementation for skipping default equips on player spawns is a bit convoluted and game specific. In BM it involves spawning an empty game_player_equip entity. In HL2DM it involves calling RemoveAllItems() after spawn.

To avoid potential side-effects I propose hooking of GiveDefaultItems, for which a signature should be easy to find with strings.