twhl-community / halflife-updated

Half-Life SDK updated to compile under VS2019 and 2022. Check README.md for more information.
Other
372 stars 147 forks source link

Fix items flashing for a frame when giving them #231

Open L-P opened 8 months ago

L-P commented 8 months ago

When using game_player_equip (or anything that calls a GiveNamedItem variant) the items are spawned on the player origin, flashing in their view for a frame before being killed.

The fix is simple, don't draw the items.