NS Devs: Armories in combat?

TheLazy1TheLazy1 Join Date: 2007-09-07 Member: 62198Members
Sorry if this is the wrong forum but I think it's close enough.
I was wondering how you handle destroyed buildings such as armories in combat mode.

I logged the armory's entvars and private data changes before and after destruction and it looks like
you set the EF_NODRAW bit in the effects and change it's pfnThink and pfnUse functions as well as a few other things.

What I wanted to do was write a plugin to respawn armories in combat after a certain point in time, using my data I was
able to re-enable the armory except for one problem.

Once the re-enabled armory is destroyed it is actually destroyed/removed instead of being made just invisible.
This confuses the hell out of me, even more confusing is that the armory is back again on the next round.

I completely understand if you don't want to give out such information but any help/information would be
greatly appreciated <img src="style_emoticons/<#EMO_DIR#>/smile-fix.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile-fix.gif" />

Comments

  • DrfuzzyDrfuzzy FEW... MORE.... INCHES... Join Date: 2003-09-21 Member: 21094Members
    Try the new decoda forum since its aimed for coding, this ones pretty much dead and those who still visit here are 3d artists <img src="style_emoticons/<#EMO_DIR#>/tounge.gif" style="vertical-align:middle" emoid=":p" border="0" alt="tounge.gif" />
  • DarknsDarkns Join Date: 2004-09-05 Member: 31402Members, Constellation
    It's still the most applicable forum for this type of question.
    Besides, if it's dead, no one will care anyways, will they? <img src="style_emoticons/<#EMO_DIR#>/tounge.gif" style="vertical-align:middle" emoid=":p" border="0" alt="tounge.gif" />
  • DrfuzzyDrfuzzy FEW... MORE.... INCHES... Join Date: 2003-09-21 Member: 21094Members
    <!--quoteo(post=1648099:date=Sep 8 2007, 04:14 AM:name=Darkns)--><div class='quotetop'>QUOTE(Darkns @ Sep 8 2007, 04:14 AM) <a href="index.php?act=findpost&pid=1648099"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->It's still the most applicable forum for this type of question.
    Besides, if it's dead, no one will care anyways, will they? <img src="style_emoticons/<#EMO_DIR#>/tounge.gif" style="vertical-align:middle" emoid=":p" border="0" alt="tounge.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->
    Just pointing him somewhere where he might get some answers <img src="style_emoticons/<#EMO_DIR#>/tounge.gif" style="vertical-align:middle" emoid=":p" border="0" alt="tounge.gif" />

    besides, this isn't really the wrong forum to post it in, theres just no coders here
Sign In or Register to comment.