mirror of
https://github.com/halpz/re3.git
synced 2025-07-04 05:40:47 +00:00
CWorld done
This commit is contained in:
@ -1410,6 +1410,20 @@ CPickups::DetonateMinesHitByGunShot(CVector *vec1, CVector *vec2)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
CPickups::RemoveUnnecessaryPickups(const CVector& center, float radius)
|
||||
{
|
||||
for (int i = 0; i < NUMPICKUPS; i++) {
|
||||
if (aPickUps[i].m_eType == PICKUP_ONCE_TIMEOUT || aPickUps[i].m_eType == PICKUP_MONEY) {
|
||||
if ((aPickUps[i].m_vecPos - center).Magnitude() < radius) {
|
||||
aPickUps[i].GetRidOfObjects();
|
||||
aPickUps[i].m_bRemoved = true;
|
||||
aPickUps[i].m_eType = PICKUP_NONE;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
CPickups::Load(uint8 *buf, uint32 size)
|
||||
{
|
||||
|
@ -103,6 +103,7 @@ public:
|
||||
static bool TryToMerge_WeaponType(CVector pos, eWeaponType weapon, uint8 type, uint32 quantity, bool unused);
|
||||
static void CreateSomeMoney(CVector, int);
|
||||
static void DetonateMinesHitByGunShot(CVector *vec1, CVector *vec2);
|
||||
static void RemoveUnnecessaryPickups(const CVector& center, float radius);
|
||||
static void Load(uint8 *buf, uint32 size);
|
||||
static void Save(uint8 *buf, uint32 *size);
|
||||
|
||||
|
Reference in New Issue
Block a user