23 lines
577 B
Plaintext
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;
|
||
|
}
|
||
|
}
|