MojojojoeJDH@Posted: Thu Sep 06, 2007 6:37 pm :
I'm following the previous advice that was given to someone else for giving the Zomies a burn away effect:

Advice "here's a better way...

forget the all of state_Dead stuff. just add this right after "stopThinking();" in state_Killed:


Code:
float burnDelay = getFloatKey( "burnaway" );
if ( burnDelay != 0 ) {
preBurn();
sys.wait( burnDelay );
burn();
startSound( "snd_burn", SND_CHANNEL_BODY, false );
}

sys.wait( 3 );

remove();



you'll need to add the k/v "burnaway" ".5" to the monster_zombie_base.def. or you could just hard code it if you want this effect to work for every zombie. like this:


Code:
preBurn();
sys.wait( .5 );
burn();
startSound( "snd_burn", SND_CHANNEL_BODY, false );
sys.wait( 3 );
remove();




you'll also need to edit all of the zombie material shaders so they work like the demons' materials..."

How do you edit the Zombies Material shaders to act like demons?



MojojojoeJDH@Posted: Thu Sep 06, 2007 6:55 pm :
I got it to partially work but gibs still come out andsome of the zombies don't appear. Does anyone know if someone already made a mod like this?



MojojojoeJDH@Posted: Thu Sep 06, 2007 6:37 pm :
I'm following the previous advice that was given to someone else for giving the Zomies a burn away effect:

Advice "here's a better way...

forget the all of state_Dead stuff. just add this right after "stopThinking();" in state_Killed:


Code:
float burnDelay = getFloatKey( "burnaway" );
if ( burnDelay != 0 ) {
preBurn();
sys.wait( burnDelay );
burn();
startSound( "snd_burn", SND_CHANNEL_BODY, false );
}

sys.wait( 3 );

remove();



you'll need to add the k/v "burnaway" ".5" to the monster_zombie_base.def. or you could just hard code it if you want this effect to work for every zombie. like this:


Code:
preBurn();
sys.wait( .5 );
burn();
startSound( "snd_burn", SND_CHANNEL_BODY, false );
sys.wait( 3 );
remove();




you'll also need to edit all of the zombie material shaders so they work like the demons' materials..."

How do you edit the Zombies Material shaders to act like demons?



MojojojoeJDH@Posted: Thu Sep 06, 2007 6:55 pm :
I got it to partially work but gibs still come out andsome of the zombies don't appear. Does anyone know if someone already made a mod like this?