User:Dutchmega/code

From Valve Developer Community
< User:Dutchmega
Revision as of 08:37, 28 April 2006 by Dutchmega (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Making the antlion burn!

Add the following under protected in npc_antlion.h

virtual bool AllowedToIgnite( void ) { return true; }


Well, now the damh thing burns but it doesn't visually respond to it. You can use the drown-animation: Add in the top of the function GatherConditions():

if( IsOnFire() ) { SetCondition( COND_ANTLION_IN_WATER ); }