game(hl1): fix UTIL_DropToFloor

This commit is contained in:
nillerusr
2022-08-31 18:22:56 +03:00
parent 1fe1d7b419
commit fafc3554a5
7 changed files with 53 additions and 27 deletions
@@ -35,6 +35,7 @@ public:
void FallInit( void ); // prepare to fall to the ground
virtual void FallThink( void ); // make the weapon fall to the ground after spawning
bool CreateVPhysics( void );
void EjectShell( CBaseEntity *pPlayer, int iType );
+1 -1
View File
@@ -125,7 +125,7 @@ void CWeaponMP5::PrimaryAttack( void )
EjectShell( pPlayer, 0 );
pPlayer->ViewPunch( QAngle( -1, 0, 0 ) );
pPlayer->ViewPunch( QAngle( random->RandomFloat( -0.5f, 0.5f ), 0, 0 ) );
#ifdef CLIENT_DLL
pPlayer->DoMuzzleFlash();
#else