FWGS / hlsdk-portable

Portable Half-Life SDK. GoldSource and Xash3D. Crossplatform.
https://xash.su
Other
272 stars 125 forks source link

Add a cvar fixing pushable excessive acceleration #343

Closed FreeSlave closed 1 year ago

FreeSlave commented 1 year ago

Get back g-cont fix for pushable, but put it under the cvar.

Note that it does more than just preventing excessive acceleration when pushing forward and using the pushable at the same time. G-cont's code also allows pushing by moving backwards and to the left or right side.

I also included a Spirit mode for pushable which just decreases the speed when pushable is 'used' by a player. This check should be removed when merging the code into sohl1.2 branch. Maybe we don't need it in master at all. What do you think?