NeotokyoRebuild / neo

NEOTOKYO Rebuild - Source SDK 2013 mod of NEOTOKYO
https://neotokyorebuild.github.io/
Other
15 stars 12 forks source link

Fix deferred SUB_Remove not working for Neo guns #330

Closed Rainyan closed 2 months ago

Rainyan commented 2 months ago

Currently, we're overriding virtual SUB_Remove for INEOBaseWeapon as a no-op, which was presumably a hack to prevent weapons disappearing mid-round. This breaks stuff like weapon attachment rendering upon death. We should revert this hack, and properly set the deferred removes to only occur at appropriate times for NT guns.

Also, technically, guns disappearing mid-round at inopportune moments is parity, so perhaps we should guard this behind a dev cvar, with the sane default of not removing the guns(?) Typically, on vanilla NT servers, this behaviour would be overridden by plugins to prevent the guns from disappearing.