Forum

> > CS2D > Maps/Editor > Help with trigger !
Forums overviewCS2D overview Maps/Editor overviewLog in to reply

English Help with trigger !

15 replies
To the start Previous 1 Next To the start

old Help with trigger !

phihung940
User Off Offline

Quote
Ok, I have a map kind like L4D with NO Player limit. so, lets get example is 32 player. The start from a house and they kill zombie, cross the street, blah blah blah, just like L4D, then they go to a house and press the button to go to next map... now i need to know:

1) How to make Zombies (NPC) automatic respawn after dead 5 second.
2) All alive player need go to the room/place and after that, the server change map (continue that mode/map type). If some alive player cant get there... the game can not start next map.
•example from L4D2: if Zoey not go to safe room. The game cant start a new map.

old Re: Help with trigger !

Surplus
User Off Offline

Quote
1)maybe add a trigger to zombie entity, that trigges a delay that will later retrigger the zombie.(or use lua)
2)Lua

old Re: Help with trigger !

Yasday
User Off Offline

Quote
2)The Info_GameAction or sth like this. Just set it to changemap X and put in the mapname, then let it be triggered.

old Re: Help with trigger !

phihung940
User Off Offline

Quote
@Yashday: No man, you dont understand. My make kind like L4D, all alive player much go to the room to finish the map and continue next map.

old Your Captain Obvious

oxytamine
User Off Offline

Quote
Yasday has written
2)The Info_GameAction or sth like this. Just set it to changemap X and put in the mapname, then let it be triggered.

old Re: Help with trigger !

Aether
User Off Offline

Quote
Alright,
You make an info_gameaction or what is that, make it triggerable by the button you were talking about, and set the gameaction on Change Map to X.

X = The name of the map you want to change it to.


Otherwise, of you really need all the people in the saferoom, you must use lua then.

old Re: Help with trigger !

Yates
Reviewer Off Offline

Quote
or if you have rcon do bind "1" "rcon changemap [mapname]"
Then if you click on 1 then the map changes..
With the zombies, just do in map:
- Start, triggers: zombie1
- delay (Name zombie1) triggers: zombie, zombie2 (5sec delay)
- delay (Name zombie2) triggers: zombie, zombie1 (5sec delay)
- NPC (Name zombie) this will be the NPC's where they spawn you must place on map idk..

But then this is what will happen, the start triggers zombie1, wich after 5sec will trigger zombie2 (other delay) and triggers zombie (the NPC), zombie2 will trigger zombie1 and zombie after 5sec and then this will continue till the end of the game..

old Re: Help with trigger !

maPmaKer
User Off Offline

Quote
The thing with zombie respawn can be done but not after they are dead as Yates said. I don't even know how to do it, but here's my suggestion:

for 1): *the main thing that I am focusing is to set zombie's life enough to get killed in 5 seconds or less*.

1.1 Create an "env_NPC" and call if whatever you want (e.g.: "zombie").

1.2 Create an "trigger_Delay", call it "zombiedelay", set the timer to "5" and set it to trigger "zombie, zombiedelay".

1.3 Create an "trigger_Start" and set it to trigger "zombiedelay".

And for 2)...

2.1 Click on all CT spawn entities and call each of them "spawn1"

2.2 Make a secondary CT spawn in the room you want to have all players and call the entity/entities "spawn2".

2.3 Create an "trigger_Start" and set it to trigger "spawn2".

2.4 Create some "trigger_Move" entities in an area, call it "move" and set their triggers to "spawn1, spawn2, move, action". If you don't want zombies to trigger the "trigger_Move", then just add a "info_TeamGate" before the area, but don't forget to let only CT pass (it is in "info_TeamGate"s properties).

2.5 Create an "func_GameAction", call it "action" and set its action to "Kill CTs" or "Kill All".

2.6 Then you can create another "func_GameAction", and call it "mapchange" and set it to change the map to the map that you want.

2.7 Create an "trigger_Use", call it "use" and set it to trigger "use, mapchange".

What I've done?

> I have added some triggers so when a group of CTs or only 1 CT is reaching the selected area will trigger the entities that will set CTs spawnpoint the room and kill everybody so all of them will spawn in the room. Then by pressing the button they will be able to do the required mapchange.

Good luck and ask me if you can't understand something
edited 1×, last 06.01.11 06:26:15 pm

old Re: Help with trigger !

Yates
Reviewer Off Offline

Quote
It's not possible to do it when they die..
Only with lua i think, but mapping wont work, otherwise i owuld has said

old Re: Help with trigger !

maPmaKer
User Off Offline

Quote
Yates has written
Idk, if you had one spawn for NPC then maybe, but with more i dont know either


Of course he has more I think so he can either multiply the entity by copying it and pasting it on another tile

or...

Making individual enitites with different timers

old ANSWER

Cooldudecool2424
User Off Offline

Quote
a.) Use NPC entity, make a gamestart one too, then make the gamestart that trigger a delay which triggers the NPC. SET IT FOR HOW LONG IT TAKES TO RESPAWN IN THE DELAY (SECONDS)

b.) Im not really sure how to do that but ill give it a shot.
when everyone is in side the room make them press a button.
then make the button trigger a "GameAction" entity. SET THE GAMEACTION TO MAPCHANGE! TYPE THE MAP IN "x"
Maybe you can put some move entitys to stop that OUTSIDE or something...IDK, never made anything like that before...

IF A AND/OR B FAILS, MAKE ME DO IT FOR YOU.
BTW (MOD) MADE TONS OF l4d MAPS ALREADY!
AND FEAR...
AND SAW...
AND MORE...

old Re: Help with trigger !

SkullFace
User Off Offline

Quote
phihung940 has written
1) How to make Zombies (NPC) automatic respawn after dead 5 second.


You can do it like this :
1. Make Trigger_Start that triggers the Delay
2. Make Trigger_delay that it triggers the NPCs and itself (the delay trigger)
3. The Npc and the name

Example :
1
Q - Delay , O - Npc

Trigger_Start
Name : (none)
Trigger : Q

Trigger_Delay
Name : Q
Trigger : O,Q

Env_Npc
Name : O
Trigger : (none)
To the start Previous 1 Next To the start
Log in to reply Maps/Editor overviewCS2D overviewForums overview