REO-EE/_module/nss/feat_reload.nss
Jaysyn904 f82740bbbd Initial commit
Initial commit
2024-02-22 13:22:03 -05:00

23 lines
577 B
Plaintext

#include "gun_include"
void main()
{
object oPC = OBJECT_SELF;
if(GetCurrentHitPoints(oPC) < 1 || GetCurrentAction(oPC) == ACTION_SIT)
{
SendMessageToPC(oPC, ColorTokenRed() + "You cannot do that at this time.");
return;
}
else
{
object oRightHand = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND);
object oLeftHand = GetItemInSlot(INVENTORY_SLOT_LEFTHAND);
int bDualWield = FALSE;
if(oLeftHand != OBJECT_INVALID) bDualWield = TRUE;
GUN_ReloadAmmo(oPC, oRightHand, bDualWield);
return;
}
}