blob: 25f4df9b71cbec6ac66cc1ef299c3e12665495f2 (
plain) (
tree)
|
|
// ------------------------------------------------------------
// Ammo Needs to know Launcher and vice versa.
//
// Behavior:
// - If only one is equipped, do nothing
// - If incompatible launcher and ammo are equipped, unequip the ammo
//
// Variables passed to these scripts:
//
// @LauncherType, @AmmoType
//
// ------------------------------------------------------------
function|script|CheckLauncher|,
{
if (getequipid(equip_arrow) == -1)
set @LauncherType, 0;
return;
}
function|script|CheckAmmo|,
{
if ((@LauncherType == @AmmoType) || (!@LauncherType))
goto L_Return;
callfunc "UnequipLater";
goto L_Return;
L_Return:
set @LauncherType, 0;
set @AmmoType, 0;
return;
}
|