HTML Code:
//#CLIENTSIDE
function onCreated() {
client.max_harpo_ammo = client.harpo_ammo =10;
}
function onWeaponFired() {
this.gunOn = !this.gunOn;
if (this.gunOn == true) {
if (client.harpo_ammo > 0) {
temp.gani = {"_walk", "_idle", "_shoot"};
} else {
temp.gani = {"_empty_walk", "_empty_idle", "_empty_shoot"};
}
} else {
temp.gani = {"walk", "idle", "sword"};
}
temp.base = {"walk", "idle", "sword"};
for (temp.i: temp.base) {
temp.syn = (temp.gani[temp.base.index(temp.i)].starts("_")? "graalaxy_harpoon_": null);
replaceani(temp.i, temp.syn.trim() @ temp.gani[temp.base.index(temp.i)]);
}
}
slight mods