editActionMap("playMap.sae");
bindCommand(keyboard0, make, "numpad3", TO, "Throw::Grenade(1);");
bindCommand(keyboard0, break, "numpad3", TO, "Throw::Grenade(0);");
bindCommand(keyboard0, make, "numpad2", TO, "Throw::Mine(1);");
bindCommand(keyboard0, break, "numpad2", TO, "Throw::Mine(0);");
function Throw::Grenade(%val) {
if(%val != "")
$Throw::Grenade = %val;
if($Throw::Grenade) {
remoteEval(2048, throwItem, 41, 100);
schedule("Throw::Grenade();", 0.1);
}
}
function Throw::Mine(%val) {
if(%val != "")
$Throw::Mine = %val;
if($Throw::Mine) {
remoteEval(2048, throwItem, 40, 100);
schedule("Throw::Mine();", 0.1);
}
}