Output for when everybody dies?

Need Help? The Day isnt going so well on the Mapping front?
Post Reply
ConTron
prop_static
prop_static
Posts: 73
Joined: Fri May 15, 2009 10:50 pm
Location: Jersey

Output for when everybody dies?

Post by ConTron »

Is there an entity that gives an output to when everybody dies?
And is it possible for it to trigger only when every player has no more lives?
oc_cod4_shipment - Don't even ask me about it.

"Why do bullsquids make you like jump?"
fug4life
Beta Tester
Beta Tester
Posts: 4093
Joined: Mon Dec 11, 2006 10:35 am

Post by fug4life »

Tied brush entities like game_player_zone and more likely trigger_player_count should help.

Also look at:

logic_player_branch and logic_player_proxy.
'I would probably smarten up before you meet Violet'.
'She has zero tolerance for idiots'.

fug's Obsidian files
fug's Obsidian clips
Obsidian wiki
Obsidian Map Database
ConTron
prop_static
prop_static
Posts: 73
Joined: Fri May 15, 2009 10:50 pm
Location: Jersey

Post by ConTron »

Found a way, soloution for anyone else:

Make a trigger_player_count in the area that the players are supposed to be, or just make it the size of your map.

Make a math_counter and set its max value to something like 100 (you cant have that many players in Source yet)

Make it's initial value to 0.

With the outputs, add OnPlayerEntered, YourMathCounter, Add, 1
Also add OnPlayerLeave, YourMathCounter, Subtract, 0

This will trigger the math counter everytime you die, if its only you in the server, or everybody dies and is forced into spectator, it is also triggered.
oc_cod4_shipment - Don't even ask me about it.

"Why do bullsquids make you like jump?"
fug4life
Beta Tester
Beta Tester
Posts: 4093
Joined: Mon Dec 11, 2006 10:35 am

Post by fug4life »

Nice, handy to know.

A real challenge is getting a singleplayer to spawn somewhere else on death and still keep the original spawn (info_p_dm) for new players that could possibly join server, Ala jailbreak.

It seems that info_player_teleport_destination or something is the only crapy way long winded way.

I wish info_player_starts were much more dynamic with I/Os I guess it goes all the way back to quake engine.

Stuff can be done with triggers but its just long winded.
'I would probably smarten up before you meet Violet'.
'She has zero tolerance for idiots'.

fug's Obsidian files
fug's Obsidian clips
Obsidian wiki
Obsidian Map Database
Post Reply