Team specific triggers?

schkorpioschkorpio I can mspaint Join Date: 2003-05-23 Member: 16635Members
<div class="IPBDescription">is it possible</div>hi again <img src="style_emoticons/<#EMO_DIR#>/smile-fix.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile-fix.gif" />

just wondering if its possible to create team specific entities in ns1?

for example if i wanted to have a hurt field that only damages marines?

or a wall that can only be walked through as an alien?

or buttons that can only be activated by an alien?

Comments

  • StixNStonzStixNStonz Join Date: 2006-11-06 Member: 58439Members, Reinforced - Shadow
    Try a trigger_presence. Search for it in the <a href="http://www.unknownworlds.com/ns/static/Mapping_Guidelines.html#Console_Commands_and_Cheats" target="_blank"><u>Official Mapping Guidelines</u></a>. There might be another way but its late and im tired <img src="style_emoticons/<#EMO_DIR#>/tounge.gif" style="vertical-align:middle" emoid=":p" border="0" alt="tounge.gif" />
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    edited June 2007
    Have a look at the point entity game_team_master

    To use it as an alien master set it up like this:

    -name: alien
    -team index: 2

    To use it as a marine master set it up like this:

    -name: marine
    -team index: 1


    team index 0 is the readyroom team, can be used for RR triggers for example (get creative <img src="style_emoticons/<#EMO_DIR#>/tounge.gif" style="vertical-align:middle" emoid=":p" border="0" alt="tounge.gif" />)

    Anyway now you can use lets say a trigger_hurt and set it's master as one of the game_team_masters above --> for example if you set "marine" as master it will only hurt marines. The same goes for teleporters, buttons, doors etc... I use it for the alien lockable resnodes in my map and the teleporter (along with an elaborate entity mix to make the resnodes work ofcourse)

    I do have to add to this that I have not tested it with trigger_hurt or the teleport area brush, I don't see why it shouldn't work though...



    Just a little side note...

    Are you having trouble finding the <a href="http://www.unknownworlds.com/forums/index.php?s=4309706038635699200&showforum=34" target="_blank">Mapping Help and Troubleshooting</a> sub forum? <img src="style_emoticons/<#EMO_DIR#>/biggrin-fix.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin-fix.gif" />
  • schkorpioschkorpio I can mspaint Join Date: 2003-05-23 Member: 16635Members
    <!--quoteo(post=1635795:date=Jun 26 2007, 06:57 AM:name=Kouji_San)--><div class='quotetop'>QUOTE(Kouji_San @ Jun 26 2007, 06:57 AM) [snapback]1635795[/snapback]</div><div class='quotemain'><!--quotec-->
    I do have to add to this that I have not tested it with trigger_hurt or the teleport area brush, I don't see why it shouldn't work though...
    Just a little side note...

    Are you having trouble finding the <a href="http://www.unknownworlds.com/forums/index.php?s=4309706038635699200&showforum=34" target="_blank">Mapping Help and Troubleshooting</a> sub forum? <img src="style_emoticons/<#EMO_DIR#>/biggrin-fix.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin-fix.gif" />
    <!--QuoteEnd--></div><!--QuoteEEnd-->
    Thanks Kouji! <img src="style_emoticons/<#EMO_DIR#>/biggrin-fix.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin-fix.gif" /> thats awesome.

    um... oops ill be sure to post in there next time LOL <img src="style_emoticons/<#EMO_DIR#>/smile-fix.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile-fix.gif" />
  • schkorpioschkorpio I can mspaint Join Date: 2003-05-23 Member: 16635Members
    edited July 2007
    dang i don't think it works :S maybe i did it wrong - the trigger_hurt just goes about hurting everyone, and trigger_teleporter doesn't seem to teleport anyone :s

    i'll post my map in when i get home from work ( about 10 hrs from this post ) - maybe ill need to go back to verc and consult the trigger manual!
  • schkorpioschkorpio I can mspaint Join Date: 2003-05-23 Member: 16635Members
    after consulting the VERC its working now <img src="style_emoticons/<#EMO_DIR#>/smile-fix.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile-fix.gif" />

    class dismissed <img src="style_emoticons/<#EMO_DIR#>/biggrin-fix.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin-fix.gif" /> you guys are going into the credits when my is announcable <img src="style_emoticons/<#EMO_DIR#>/smile-fix.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile-fix.gif" />

    i might play around with the trigger presence aswell.
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    Keep in mind that that trigger will also trigger when a teamspecific projectile is going trough it...

    --> gorge shoots --> trigger_presence "aliens" will trigger
Sign In or Register to comment.