2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-22 09:57:21 +01:00
This commit is contained in:
Night Owl 2017-07-05 17:39:50 +05:00
parent 689316912a
commit 55c3eb674c

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