Thread: Little help.
View Single Post
  #1  
Old 02-02-2009, 07:47 PM
Unkownsoldier Unkownsoldier is offline
Ignorance has no future
Join Date: Sep 2008
Posts: 1,287
Unkownsoldier is on a distinguished road
Little help.

Alright so what I need added onto this is a script that allows me to take .5 out of a players health in a given range of 1,1..

Heres what I have so far.


//#CLIENTSIDE

//up
if (playerdir=0){
this.x=playerx-10;
this.y=playery-20;
}
//left
if (playerdir=1){
this.x=playerx-10;
this.y=playery-10;
}
//down
if (playerdir=2){
this.x=playerx+0.4;
this.y=playery+10;
}
//right
if (playerdir=3){
this.x=playerx-10;
this.y=playery-10;
}
function onKeyPressed(c, k) {
if (k == "a") {
replaceani("idle", "idle");
replaceani("walk", "walk");
setani("idle", NULL);
}
}

if (weaponfired) {
setani pancho_katana-attack,;
replaceani idle,pancho_katana-idle;
replaceani walk,pancho_katana-walk;
hurtplayer(.5);


}
__________________
Look beyond the monitor.
Reply With Quote