
08-23-2004, 12:48 AM
|
|
BEst User EVER!
|
Join Date: Apr 2004
Posts: 1,186
|
|
|
well most of our weapons look like this for the shoot part:
setshootparams sword1(or a diff one if it does something special),damage,#a;
this.angle=getangle(vecx(playerdir),vecy(playerdir ));
this.x=playerx+vecx(playerdir);
this.y=playery+vecy(playerdir);
shoot this.x,this.y,playerz,this.angle(+random depending on the weapon),0,0,gani,;
//I use those zeroes just as an example.
then as u all saw in the mold:
if(actionprojectile){
this.hearts-=strtofloat(#p(1))+1;//i dont use the first parameter on the mold because so far nothing that would do a special thing like confusion or steal would affect mold
setcharani mold_idle,;
message #v(this.hearts/2);
checkdead();
sleep .5;
} |
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
|
|
|
|