esn23
Active member
Hey guys sorry to bug you again but im having issues using reactfx.. They work perfectly when im on normal ground but when i try to use it on a platform the effect loops over and over then falls though the platform.. It is when the player dies i think.. I'm not too sure what im doing wrong.. Any help would be greatly appreciated and thanks in advance.
This is the script :
name ReactFX1
type obstacle
subject_to_platform 1
subject_to_wall 1
subject_to_hole 1
no_adjust_base 0
palette none
anim bpain
@script
if(frame == 6){
void self = getlocalvar("self");
killentity(self);
}
@end_script
loop 1
delay 5
offset 68 109
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
frame data/chars/misc/reaction/flmmed1.png
anim burn
@script
if(frame > 0){
void self = getlocalvar("self");
int y = getentityproperty(self, "a");
int b = getentityproperty(self, "base");
if(y == b){
killentity(self);
}
}
@end_script
loop 1
delay 5
offset 68 109
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
anim spain
@script
if(frame == 6){
void self = getlocalvar("self");
killentity(self);
}
@end_script
loop 1
delay 5
offset 68 109
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
frame data/chars/misc/reaction/shoM1.png
anim shock
@script
if(frame > 0){
void self = getlocalvar("self");
int y = getentityproperty(self, "a");
int b = getentityproperty(self, "base");
if(y == b){
killentity(self);
}
}
@end_script
loop 1
delay 5
offset 68 109
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
This is the script I use in the characters and enemies :
anim bpain
@script
if(frame==0)
{
void self = getlocalvar("self");
void e;
clearspawnentry();
setspawnentry("name", "ReactFX");
e = spawn();
bindentity(e, self,0,1,0,1,1);
}
@end_script
delay 30
offset 66 114
bbox 51 53 28 61
frame data/chars/misc/empty.gif
anim spain
@script
if(frame==0)
{
void self = getlocalvar("self");
void e;
clearspawnentry();
setspawnentry("name", "ReactFX");
e = spawn();
bindentity(e, self,0,1,0,1,1);
}
@end_script
delay 30
offset 66 114
bbox 51 53 28 61
frame data/chars/misc/empty.gif
thanks again for any help.
This is the script :
name ReactFX1
type obstacle
subject_to_platform 1
subject_to_wall 1
subject_to_hole 1
no_adjust_base 0
palette none
anim bpain
@script
if(frame == 6){
void self = getlocalvar("self");
killentity(self);
}
@end_script
loop 1
delay 5
offset 68 109
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
frame data/chars/misc/reaction/flmmed1.png
anim burn
@script
if(frame > 0){
void self = getlocalvar("self");
int y = getentityproperty(self, "a");
int b = getentityproperty(self, "base");
if(y == b){
killentity(self);
}
}
@end_script
loop 1
delay 5
offset 68 109
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
frame data/chars/misc/reaction/flmmed1.png
frame data/chars/misc/reaction/flmmed2.png
anim spain
@script
if(frame == 6){
void self = getlocalvar("self");
killentity(self);
}
@end_script
loop 1
delay 5
offset 68 109
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
frame data/chars/misc/reaction/shoM1.png
anim shock
@script
if(frame > 0){
void self = getlocalvar("self");
int y = getentityproperty(self, "a");
int b = getentityproperty(self, "base");
if(y == b){
killentity(self);
}
}
@end_script
loop 1
delay 5
offset 68 109
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
frame data/chars/misc/reaction/shoM1.png
frame data/chars/misc/reaction/shoM2.png
This is the script I use in the characters and enemies :
anim bpain
@script
if(frame==0)
{
void self = getlocalvar("self");
void e;
clearspawnentry();
setspawnentry("name", "ReactFX");
e = spawn();
bindentity(e, self,0,1,0,1,1);
}
@end_script
delay 30
offset 66 114
bbox 51 53 28 61
frame data/chars/misc/empty.gif
anim spain
@script
if(frame==0)
{
void self = getlocalvar("self");
void e;
clearspawnentry();
setspawnentry("name", "ReactFX");
e = spawn();
bindentity(e, self,0,1,0,1,1);
}
@end_script
delay 30
offset 66 114
bbox 51 53 28 61
frame data/chars/misc/empty.gif
thanks again for any help.