This commit is contained in:
Night Owl 2017-07-05 17:39:50 +05:00
parent 689316912a
commit 55c3eb674c
1 changed files with 3 additions and 0 deletions

View File

@ -3357,6 +3357,9 @@ CBaseEntity *CBaseMonster::DropItem( const char *pszItemName, const Vector &vecP
// do we want this behavior to be default?! (sjb)
pItem->pev->velocity = pev->velocity;
pItem->pev->avelocity = Vector( 0, RANDOM_FLOAT( 0, 100 ), 0 );
// Dropped items should never respawn (unless this rule changes in the future). - Solokiller
pItem->pev->spawnflags |= SF_NORESPAWN;
return pItem;
}
else