anim fall3
delay 1
offset 104 243
@cmd performattack getlocalvar("self") openborconstant("ANI_PAIN3")
frame data/chars/gob/p_pain_4.gif
anim pain3
loop 0
offset 102 243
bbox 0 0 0 0
quakeframe 1 1 6
subentity bloo
spawnframe 2 -70 3 205
sound data/chars/gob/pain.wav
@script
void self = getlocalvar("self");
void opp = getentityproperty(self, "opponent");
void e;
changeentityproperty(self, "z", getentityproperty(opp, "z" ) -2 );
changeentityproperty(self, "a", getentityproperty(opp, "a" ) );
changeentityproperty(self ,"aiflag","projectile",0);
changeentityproperty(self,"aiflag","falling",0);
changeentityproperty(self,"aiflag","drop",0);
changeentityproperty(self,"aiflag","frozen", 0);
if ((getentityproperty(self, "direction")==0)&&(frame <= 0)){
changeentityproperty(self, "velocity", 5, 0, 0);
clearspawnentry();
setspawnentry("name", "harpon");
e = spawn();
bindentity(e, self, -55, 0, 210, -1, 4,1);
}
if ((getentityproperty(self, "direction")==1)&&(frame <= 0)){
changeentityproperty(self, "velocity", -5, 0, 0);
clearspawnentry();
setspawnentry("name", "harpon");
e = spawn();
bindentity(e, self, -55,0, 210, -1, 4-1);
}
if(frame == 3){
changeentityproperty(self, "velocity", 0, 0, 0);
}
if ((getentityproperty(self, "direction")==0)&&(frame == 9)){
changeentityproperty(self, "velocity", -12, 0, 0);
bindentity(e, self, 8, 0, 210, -1, 4,1);
}
if ((getentityproperty(self, "direction")==1)&&(frame == 9)){
changeentityproperty(self, "velocity", 12, 0, 0);
bindentity(e, self, 8, 0, 210, -1, 4,-1);
}
if ((getentityproperty(self, "direction")==0)&&( getentityproperty(opp, "x") >= getentityproperty(self , "x") -120)){
void self = getlocalvar("self");
changeentityproperty(self, "velocity", 0, 0, 0);
killentity(e);
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW1"));
}
if ((getentityproperty(self, "direction")==1)&&( getentityproperty(opp, "x") <= getentityproperty(self , "x") +120)){
void self = getlocalvar("self");
changeentityproperty(self, "velocity", 0, 0, 0);
killentity(e);
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW1"));
}
@end_script
delay 7
offset 104 243
frame data/chars/gob/p_pain_4.gif
offset 100 243
frame data/chars/gob/p_pain_4.gif
offset 104 243
frame data/chars/gob/p_pain_4.gif
offset 100 243
frame data/chars/gob/p_pain_4.gif
offset 104 243
frame data/chars/gob/p_pain_4.gif
offset 100 243
frame data/chars/gob/p_pain_4.gif
offset 104 243
frame data/chars/gob/p_pain_4.gif
offset 100 243
frame data/chars/gob/p_pain_4.gif
offset 104 243
frame data/chars/gob/p_pain_4.gif
offset 93 252
frame data/chars/gob/harpain.gif
frame data/chars/gob/harpain.gif
frame data/chars/gob/harpain.gif
frame data/chars/gob/harpain.gif
frame data/chars/gob/harpain.gif
frame data/chars/gob/harpain.gif
frame data/chars/gob/harpain.gif
frame data/chars/gob/harpain.gif
frame data/chars/gob/harpain.gif
frame data/chars/gob/harpain.gif
frame data/chars/gob/harpain.gif
frame data/chars/gob/harpain.gif
frame data/chars/gob/harpain.gif
frame data/chars/gob/harpain.gif
frame data/chars/gob/harpain.gif
frame data/chars/gob/harpain.gif
frame data/chars/gob/harpain.gif
delay 7
offset 104 243
bbox 66 39 76 204
@cmd changeentityproperty getlocalvar("self") "velocity" 0 0 0
frame data/chars/gob/p_pain_4.gif
anim follow1
loop 0
offset 100 243
bbox 66 39 76 204
delay 7
offset 100 243
frame data/chars/gob/p_pain_1.gif
offset 104 243
frame data/chars/gob/p_pain_1.gif
offset 100 243
frame data/chars/gob/p_pain_1.gif
offset 104 243
frame data/chars/gob/p_pain_1.gif
offset 100 243
frame data/chars/gob/p_pain_1.gif
offset 104 243
frame data/chars/gob/p_pain_1.gif
offset 100 243
frame data/chars/gob/p_pain_1.gif
offset 104 243
frame data/chars/gob/p_pain_1.gif
@script
void self = getlocalvar("self");
void opp = getentityproperty(self, "opponent");
void e;
if ( getentityproperty(self, "opponent" !=NULL()) ){
setidle(self);
}
if ((getentityproperty(self, "direction")==0)&&(frame == 1)){
changeentityproperty(self, "a", 0 );
changeentityproperty(self, "z", getentityproperty(opp, "z" ) -2 );
changeentityproperty(self, "velocity", 5, 0, 0);
clearspawnentry();
setspawnentry("name", "harpon");
e = spawn();
bindentity(e, self, -55, 0, 210, -1, 4,1);
}
if ((getentityproperty(self, "direction")==1)&&(frame == 1)){
changeentityproperty(self, "a", 0 );
changeentityproperty(self, "z", getentityproperty(opp, "z" ) -2 );
clearspawnentry();
setspawnentry("name", "harpon");
e = spawn();
bindentity(e, self, -55,0, 210, -1, 4-1);
}
if(frame == 3){
changeentityproperty(self, "velocity", 0, 0, 0);
}
if ((getentityproperty(self, "direction")==0)&&(frame == 9)){
changeentityproperty(self, "velocity", -12, 0, 0);
bindentity(e, self, 8, 0, 210, -1, 4,1);
}
if ((getentityproperty(self, "direction")==1)&&(frame == 9)){
changeentityproperty(self, "velocity", 12, 0, 0);
bindentity(e, self, 8, 0, 210, -1, 4,-1);
}
if ((getentityproperty(self, "direction")==0)&&( getentityproperty(opp, "x") >= getentityproperty(self , "x") -120)){
void self = getlocalvar("self");
changeentityproperty(self, "velocity", 0, 0, 0);
killentity(e);
performattack(self, openborconstant("ANI_FOLLOW1"));
}
if ((getentityproperty(self, "direction")==1)&&( getentityproperty(opp, "x") <= getentityproperty(self , "x") +120)){
void self = getlocalvar("self");
changeentityproperty(self, "velocity", 0, 0, 0);
killentity(e);
performattack(self, openborconstant("ANI_FOLLOW1"));
}
@end_script