Nak2 / StormFox

StormFox for garrysmod
Apache License 2.0
29 stars 13 forks source link

Wind effect shouldn't use mass #16

Open Greenhourglass opened 5 years ago

Greenhourglass commented 5 years ago

It appears that in sv_propeffects.lua, the wind's force is multiplied by the object's mass. I don't think this is a good idea, as it means that large and heavy objects that should logically be more resistant are pushed by wind just as much as small, light objects that should logically fly off the ground in high winds. Makes the wind effect less interesting and realistic when every unfrozen prop is just gliding in the same direction at the same exact speed.

Considering GetSurfaceArea() is already taken into account, there's no reason to be using GetMass().

SupinePandora43 commented 5 years ago

https://github.com/Nak2/StormFox/blob/master/lua/stormfox/functions/sv_propeffects.lua#L126 , multiply is commented! https://github.com/Nak2/StormFox/blob/master/lua/stormfox/functions/sv_propeffects.lua#L124 - there GetMass() !