DOH! I feel stupid now.. Ok, another quick question for the masses.. Looking for a quick way to (1) respawn monsters at round-restart (2) when a monster dies, the corpse does not hang around nor does it gib.
I was thinking of a ReSpawn() in CBaseMonster, then muck with the Killed() function ?? -Ron -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Reedbeta Sent: Saturday, December 29, 2001 6:37 PM To: [EMAIL PROTECTED] Subject: Re: [hlcoders] Global functions How about you just make a global function in some file somewhere: void CheckRoundEnd () { // blah } and then you can extern it wherever you need it, or just plop the prototype in a header file somewhere. If it needs to access the private vars of a class, then just have the class declare it as a friend: class Fubar { friend void CheckRoundEnd (); private: // CheckRoundEnd can access these variables int a, b, c; float d, e, f; // and so on.. }; --- "Yacketta, Ronald" <[EMAIL PROTECTED]> wrote: > Folks, > > I have been searching for the right place to plop some code to > checkroundend. I would like to keep it out of a specific gamerule, > seeing that all will use it > I would also like to be able to cal/use this function in other "NON" > gamerule > Related files like scientists.cpp etc.. To check for round end under > certain conditions > > Any thoughts? > > Regards, > Ron > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders __________________________________________________ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

