Garry's Mod

Garry's Mod

FA:S 2.0 Alpha SWEPs - Misc
ginsane 2 Dec, 2017 @ 5:14pm
Grenade entity modifies the server's maximum velocity every time it is spawned.
In the 'init.lua' file for the 40mm frag grenade, I found this in the entity's initialize hook:

spd = physenv.GetPerformanceSettings()
spd.MaxVelocity = 2992

physenv.SetPerformanceSettings(spd)

Is there any reason for this? It makes the addon unsuitable for use on many sandbox servers, where a max velocity of 2992 is simply too low. Removing this code and testing the associated weapons has not caused any obvious errors.

Last edited by ginsane; 2 Dec, 2017 @ 5:17pm