JustDadThings
14 days agoNew Spectator
Portal: AI has unlimited ammo
Describe the Issue Clearly
AI seem to never run out of secondary ammo. Magazine ammo stays the same despite AI reloading. This is the case for both backfill and explicitly spawned AI soldiers.
Steps to Reproduce
Log AI ammo after each kill.
export async function OnPlayerEarnedKill(eventPlayer: mod.Player, eventOtherPlayer: mod.Player, eventDeathType: mod.DeathType, eventWeaponUnlock: mod.WeaponUnlock) {
const ammo = mod.GetInventoryAmmo(eventPlayer, mod.InventorySlots.SecondaryWeapon);
const magazineAmmo = mod.GetInventoryMagazineAmmo(eventPlayer, mod.InventorySlots.SecondaryWeapon);
mod.DisplayNotificationMessage(mod.Message("ammo", eventPlayer, ammo, magazineAmmo));
}Screenshots/Videos (if possible)
N/A
Information
Version 1.0.1.0 of the SDK.
P.S. Add a tag for portal-related issues.