2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2025-01-19 00:10:13 +01:00

Improve handgrenade throw physics.

This commit is contained in:
Andrey Akhmichin 2024-01-17 14:14:47 +05:00
parent b8e143f5ac
commit d77a7e4753

View File

@ -140,9 +140,9 @@ void CHandGrenade::WeaponIdle( void )
else
angThrow.x = -10.0f + angThrow.x * ( ( 90.0f + 10.0f ) / 90.0f );
float flVel = ( 90.0f - angThrow.x ) * 4.0f;
if( flVel > 500.0f )
flVel = 500.0f;
float flVel = ( 90.0f - angThrow.x ) * 6.5f;
if( flVel > 1000.0f )
flVel = 1000.0f;
UTIL_MakeVectors( angThrow );