View Full Version : Problem
Akari
12-31-2002, 01:08 PM
I changed the explosion animation for something else (can't tell you images/icons/smile.gif ) but when the animation is over it freezes the bad guys cause I guess it is considerd dead, is there a way to make the game think the enemy's are still alive?? images/icons/confused.gif
Maddieman
12-31-2002, 01:53 PM
Three ways - neither of them are particularily good.
1. In the game: try shooting them.
2. In the skin death animation code: this->c_forceupdate(x seconds);
3. In the globalconfig.txt: Change the character timeout parameter (under activation) to something larger than 4 seconds.
EDIT: Oh...wait- that's wrong. Hang on, while I re-edit this post.
Ignore the above -- that's for something different.
You can use this->c_sethealth(1) or this c_addheath(x hitpoints) -- neither work very well though because it mixes the initialisation code in the script with the on_init code in the levels. Usually you just get a goon who just stands there.
I'd try replacing the w_gethit animation - you'll have to mess around with it though.
[ 12-31-2002, 01:59 PM: Message edited by: Maddieman ]
tommulder
01-03-2003, 04:22 PM
well im not fully understanding the question, but im asuming that when a character is killed with a grenade death, the anim kicks in, but you want the character to stay alive?
in the last frame of your new death/whatever animation, put
this->c_sethealth(1);
this->c_setstatemachine(idleuntilenemyseen);
i think that might work, some more details for the situation might help though... images/icons/confused.gif
if u need it confidencial email me tom@mulder.fsnet.co.uk images/icons/wink.gif
vBulletin® v3.8.0 Beta 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.