Properly set up rock sequence.

This commit is contained in:
Andrey Akhmichin 2024-03-24 03:20:20 +05:00
parent fdd44f5600
commit 3d48fa237f
1 changed files with 2 additions and 2 deletions

View File

@ -504,7 +504,9 @@ CGrenade *CGrenade::ShootRock( entvars_t *pevOwner, Vector vecStart, Vector vecV
// will insert a DANGER sound into the world sound list and delay detonation for one second so that
// the grenade explodes after the exact amount of time specified in the call to ShootTimed().
SET_MODEL( ENT( pGrenade->pev ), "models/w_rock.mdl" );
pGrenade->pev->sequence = RANDOM_LONG( 3, 6 );
pGrenade->ResetSequenceInfo();
pGrenade->pev->framerate = 1.0;
// Tumble through the air
@ -513,8 +515,6 @@ CGrenade *CGrenade::ShootRock( entvars_t *pevOwner, Vector vecStart, Vector vecV
pGrenade->pev->gravity = 0.5;
pGrenade->pev->friction = 0.8;
SET_MODEL( ENT( pGrenade->pev ), "models/w_rock.mdl" );
return pGrenade;
}