Garry's Mod

Garry's Mod

FA:S 2.0 Alpha SWEPs - Misc
ginsane 2017 年 12 月 2 日 下午 5:14
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.

最后由 ginsane 编辑于; 2017 年 12 月 2 日 下午 5:17