mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-03 02:24:28 +00:00
Merge 35fd286cca
This commit is contained in:
parent
689316912a
commit
55c3eb674c
@ -3357,6 +3357,9 @@ CBaseEntity *CBaseMonster::DropItem( const char *pszItemName, const Vector &vecP
|
|||||||
// do we want this behavior to be default?! (sjb)
|
// do we want this behavior to be default?! (sjb)
|
||||||
pItem->pev->velocity = pev->velocity;
|
pItem->pev->velocity = pev->velocity;
|
||||||
pItem->pev->avelocity = Vector( 0, RANDOM_FLOAT( 0, 100 ), 0 );
|
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;
|
return pItem;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user