mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-17 19:34:07 +00:00
RunningScript, part 4, plus some fixes
This commit is contained in:
parent
6f05ed0c23
commit
ebbcd92de2
14 changed files with 534 additions and 28 deletions
|
@ -5349,12 +5349,12 @@ CPed::CreateDeadPedWeaponPickups(void)
|
|||
// otherwise try another position (but disregard second check apparently)
|
||||
angleToPed += 3.14f;
|
||||
pickupPos = GetPosition();
|
||||
pickupPos.x = 1.5f * Sin(angleToPed);
|
||||
pickupPos.y = 1.5f * Cos(angleToPed);
|
||||
pickupPos.x += 1.5f * Sin(angleToPed);
|
||||
pickupPos.y += 1.5f * Cos(angleToPed);
|
||||
pickupPos.z = CWorld::FindGroundZFor3DCoord(pickupPos.x, pickupPos.y, pickupPos.z, &found) + 0.5f;
|
||||
}
|
||||
if (found)
|
||||
CPickups::GenerateNewOne_WeaponType(pickupPos, weapon, PICKUP_ONCE_TIMEOUT, min(weaponAmmo, CPickups::ms_maxAmmosForWeapons[weapon]));
|
||||
CPickups::GenerateNewOne_WeaponType(pickupPos, weapon, PICKUP_ONCE_TIMEOUT, min(weaponAmmo, AmmoForWeapon_OnStreet[weapon]));
|
||||
}
|
||||
ClearWeapons();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue