Entity Setup For This

CaLFiNCaLFiN Join Date: 2002-11-04 Member: 6909Members
Ok I want to try and set up an entity system for a map I have in mind.

I want 5 buttons in the map, when they are all pressed a trigger_hurt kills the opposing team. BUT. Here is what I don't know what to do:

These buttons can be pressed by aliens OR marines, so how do I make it so that it knows aliens have pressed the buttons 5 times, or marines have, taking into acount that their could be any random amount pressed.

Hope that made sense <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

------------------

For a work around:

How do I make it so that 5 buttons pressed in any order triggers something?

Thx in advance.

Comments

  • NerdIIINerdIII Join Date: 2003-04-05 Member: 15230Members
    edited July 2003
    I'm sorry to tell you, but in NS all players are considered one sort of entity. You can't tell if it is an alien or a marine. You can only make the buttons unreachable for marines without jetpacks, gorges and oni.

    I don't know about the triggers, but wait till Ollj visits the forum again <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo-->
    Otherwise I plan to make a plugin for QuArK to easily create complex boolean equations with multiple input variables and functions. So you could set the buttons to variables A, B, C, D, E and define a function F = A & B & C & D & E that triggers your kill event <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> Then again, I haven't started this project yet... don't know if it works out. What I can tell you though is that I made two functions with 3 variables and it cost me 34 entities :/

    Hint: Use env_globals as masters of a moultisource and the moultisourece as master of something else is the key to boolean stuff in Half-Life(1)
  • CaLFiNCaLFiN Join Date: 2002-11-04 Member: 6909Members
    Oh, thanks for that. I'm familiar wth TFC and CS mapping but NS mapping is a bit limiting for this sort of thing.
  • ShadowicsShadowics Join Date: 2002-11-07 Member: 7652Members
    You can detect the different between team one (marines) and team two (aliens). This wouldn't be to hard to set up, and you could simply use a multisource to trigger when all the buttons have been pressed. There's only one problem, you can't actually tell who pressed the button, so if both a marine and an alien went for the button at the same time it could get screwed up, but the player would only have to walk away and come back to fix it.
  • CaLFiNCaLFiN Join Date: 2002-11-04 Member: 6909Members
    edited July 2003
    So I could infact do it like this:

    Instead of having 5 buttons between marines and aliens. I could have 5 for marines and 5 for aliens? Alien's are set so marines can't use them and marine's set so aliens can't use them. Then put them next to each other like: ||

    The idea of the map is a bit like siege005/6 to start off with where you build a base up. Then when the doors open you have to press 5 buttons (placed around the map) to launch a nuke which kills the opposing team. Can anybody thing of a work-around for my idea? From what I understand there isn't <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo-->
  • ShadowicsShadowics Join Date: 2002-11-07 Member: 7652Members
    Having 2 seperate buttons wouldn't make much difference, a griefer could push the other team's buttons and you wouldn't want that, as I said it isn't possible to tell who is pushing the button. As I said you could make it work, the only problem is it could get temporarily messed up if both teams went for the button at the same time. If you need some help getting it setup I could help you with it.
  • CaLFiNCaLFiN Join Date: 2002-11-04 Member: 6909Members
    Some help would be brilliant, thanks a lot <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
Sign In or Register to comment.