View Single Post
  #3  
Old 05-29-2007, 09:12 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Wrong again.

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
client.max_harpo_ammo 10;
  
client.harpo_ammo=10;
  
this.harpo_on 0;
}
function 
onWeaponFired() {
  if (
this.harpo_on 0) {
    
this.harpo_on 1;
    if (
this.harpo_on == && client.harpo_ammo 0) {
      
replaceani("walk""graalaxy_harpoon_walk");
      
replaceani("idle""graalaxy_harpoon_idle");
      
replaceani("sword""graalaxy_harpoon_shoot");
    } else if (
this.harpo_on == && client.harpo_ammo == 0) {
      
replaceani("walk""graalaxy_harpoon_empty_walk");
      
replaceani("idle""graalaxy_harpoon_empty_idle");
      
replaceani("sword""graalaxy_harpoon_empty_shoot");
    }
  } else if (
this.harpo_on == 1) {
    
this.harpo_on 0;
    
replaceani("walk""walk");
    
replaceani("idle""idle");
    
replaceani("sword""sword");
  }
}
function 
onKeyPressed(keycodekeychar) {
  if (
this.harpo_on == && keychar == "r") {
    if (
client.harpo_ammo == 0) {
      
setani("graalaxy_harpoon_reload"" ");
      
client.harpo_ammo client.max_harpo_ammo;
    }
  }
  if (
keychar == "s" && client.harpo_ammo 0) {  
  
client.harpo_ammo -= 1;
  
setshootparams("damage"3);
  
temp.shootangle getangle(vecx(player.dir), vecy(player.dir));
  
shoot(player.x+vecx(player.dir), player.y+vecy(player.dir), player.ztemp.shootangle00"graalaxy_harpoon_arrow"NULL);
  }

__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote