PoA_PRC8/_module/nss/sd_loot_anim.nss
Jaysyn904 0dbb628b75 Added Skullkeep's dynamic loot generation system
Added Skullkeep's PRC8 compatible dynamic loot generation system.  Full compile.  Updated release archive.
2024-11-08 18:54:51 -05:00

17 lines
688 B
Plaintext

void main()
{
object oPC = GetLastUsedBy();
// Play crouch animation only if PC just opened the corpse inventory GUI
// EXCEPTION: If the PC opens the corpse inventory, then quickly presses
// the "I" key (to open the PC inventory), a BioWare software bug will
// trick the software into permanently thinking the corpse inventory is
// open (even though the GUI can be opened and closed normally). This will
// cause the animation to play when corpse is opened or closed (a minor
// bug).
if (GetIsOpen(OBJECT_SELF))
{
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW, 1.0f, 1.2f));
}
}