problem with entity work Created 10 years ago2014-11-20 19:01:08 UTC by Tsaras Tsaras

Created 10 years ago2014-11-20 19:01:08 UTC by Tsaras Tsaras

Posted 10 years ago2014-11-20 19:04:17 UTC Post #322418
I am building a cs 1.6 map that has some entity work inside that I can't get to work the way I want.

The idea is for a button to start a sequence of events:
  • fire a door_rotating
  • fire env_render
  • will add sounds etc so more events
This will be a multiplayer map so I want the button to do this only once per round. This means that after usage the button must stop firing the sequence until next round comes.

Here is a screenshot of what it looks like before and after the sequence is fired:
User posted image
I've tried a ton of things without success so far:
Setting the button reset to -1 makes it impossible to retrigger in future rounds.
Setting a master for the button that is turned off after first usage makes it possible to turn off the button at least one more time firing the sequence again.

My last attempt was:
button-> dummy door (with master)-> multi_manager (start sequence)-> door_rotating & env_render & trigger_relay (master->off)

This makes it successfully impossible for the button to retrigger the sequence. Now what happens in next round:

restartround-> multi_manager(reset entities)-> trigger_relay (master -> on) & env_render (to reset the effect)

Using the button doesn't start the sequence.
The master I am currently using is another dummy door.

Any help appreciated.
Posted 10 years ago2014-11-21 04:16:00 UTC Post #322425
Stojkens should know how to do this, shouldn't be that complicated. Without knowing anything about this kind of stuff, I have a couple guesses:
Setting the button reset to -1 makes it impossible to retrigger in future rounds.
What have you tried to reset it? Does killing it remove it forever or just from that round?
Setting a master for the button that is turned off after first usage makes it possible to turn off the button at least one more time firing the sequence again.
There has to be a way to reset this via MM. Upload a test map if you can, and I'll play with it if you like.
Captain Terror Captain Terrorwhen a man loves a woman
Posted 10 years ago2014-11-21 07:31:45 UTC Post #322428
I don't know counter-strike mapping, but I seem to recall that reliable round resetting relies on func_doors somehow...?
Take salt with a grain of it.
Jessie JessieTrans Rights <3
Posted 10 years ago2014-11-21 14:04:19 UTC Post #322429
What have you tried to reset it? Does killing it remove it forever or just from that round?
I tried sending on/off commands with a relay afterwards with no success. I also tried killing but it probably removes the entity for ever.

What I thought was that the On/Off state of a door as a master would depend on it being open or closed. It seems those 2 aren't connected at all (?), as I have placed the master door right in front and set it to toggle with use button and it doesn't change the master state.

I am uploading the test map as it is right now.

@Jessie: I am using a func_door to reset the env_render successfully, I just can't find a way to reset the button/sequence of events.

EDIT: It seems that sending On/off state from a trigger_relay to a door keeps triggering between the two states rather than sending the specific command. For example, firing the ON relay opens the door and firing the ON relay again closes it. So I will strikethrough what I posted earlier.
You must be logged in to post a response.