Entities - help needed


Mythic_Kruger
03-22-2004, 12:15 AM
Hi peeps
Was thinking about something to would add realism: limit the number of spawns in a defined area.
Say after 50 soldiers respawned, players do not respawn in this area. Better: after the limit, they do respawn somewhere else.

This could be done with a game_counter and a trigger_multiple, plus a trigger_push like the one of the 3.1 dod_ramelle.
The trigger_multiple would be located inside the trigger_push, which is here only to control the amount of spawned players. When the 50th players has passed the push, spawns are stopped there.
But there are certainly other solutions. Any thoughts?

greenhorn
03-22-2004, 08:29 AM
a game_counter named "game_playerspawn" would count the total players spawned, without the triggers. But u would be counting both teams. This could trigger a hidden flag-- turning off spawns/enabling others.

Glidias
03-22-2004, 09:27 AM
Sigh, if only game_playerspawn and other entities had DoD team-specific flag settings like game_zone_player!

Okay, here's how i'd do it (there are many other ways actually):

You basically have a game_zone_player. When a player spawns, he MUST spawn in that game_zone_player. A trigger_push or some other means of bringing them outta of the zone should be used to pushed them out, and under no circumstances can they return back . A good way to drop these guys would be from the sky or from a decent height above, touching the game_zone_player the moment he spawns and landing on the ground, unable to touch that zone again. If you don't implement these measures, then players that camp inside the spawn zone would eat up extra spawns in the next spawn wave. You'll find out why in the next paragraph.

Okay. Set game_zone_player's name to "game_playerspawn". As you know by now, "game_playerspawn" is a special trigger that runs whenever a player dies on the server. So, whenever a spawning occurs, the game_zone_player would then trigger 'on' at that exact time and determine how many players are found inside it. It will then trigger the game_counter each time for each player that happens to be IN that zone. Cool eh? You've just create respawn wave quantity calculator! I'm not sure if this might work. It might result in multiple instances of it being triggered....not very sure....

Jello_Biafra
03-22-2004, 11:03 AM
I had a similar thought a while ago. I wanted to make a para map, but have each team respawn until each team has had the equivilent of say 50-60 respawns.

I think it could be done if you could somehow have 2 doddetect entitys, one that says no respawns, the other that says infinite respawns, and then somehow trigger a switch when a certain amount of people have spawne.d

Mythic_Kruger
03-22-2004, 05:48 PM
OK good posts gonna test this (hl crashes in perspective, welcome in mapping LOL) even if so far the method described in the 1st post is running fine (the counter can trigger the dod_score_ent, or a env_master to move the respawn area ;) ). I'm looking for the best method: the one that uses the less entities, the less server ressources, the less client lag, and most important: it must work...

Craftos
03-23-2004, 01:42 AM
I think best way would be spawn area with some narrow exits and a counter connected to zones at every exit.
- less entities used
- counts only soldiers that 'entered' battle, not those who changed mind then exited or swapped side sfter spawn. This also doesn't count idle players.

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.