Hello! I have problem with the script to my DeathMatch map becouse i dont know how to do that script where game are winig axis or allied! Game win this team who kills more soldiers!sorry for my english :bump: PLS help :bump:
DM script?
i dont think it’s possible for the script to check how many players were killed…
if you want the map to end in a draw you could do this in your script:
game_manager
{
spawn
{
//game_manager spawn crap etc
}
timelimit_hit //triggered automatically when timelimit is hit
{
wm_setwinner -1
wm_endround
}
}
You have to set a winner first:
game_manager
{
spawn
{
wm_setwinner 0 //HAS TO BE SET / DOESN'T MATTER IF 1 OR 0
}
timelimit_hit //triggered automatically when timelimit is hit
{
wm_setwinner -1
wm_endround
}
}
Haven’t tested it myself.
But if you search the forums for “timelimit_hit” you will find (a) post(s) that this isn’t working without setting a winner first.
wm_setwinner 0
means that axis win by default if time is running out.
But you set the map to a draw / tie with
wm_setwinner -1
in the “timelimit_hit”-scriptblock.
Tip:
Axis lost war = 0
Allies won war = 1
there doesnt seem to be a way to keep track of how many times a player has died,
however… you could possibly keep track of how many times a player spawns…
the team that spawns the most would obviously be the losers.
say… take a team_CTF_bluespawn and target it at a script_multiplayer and have the
part in the script just increment an accum every time an allied player spawned. though
this is flawed in that if a player just joined… the team would lose a point…
other than that, im not shure of another way to do it.
Other then that said by RayBan, there is no way to make a real DM map. It needs game code support, and FalckonET is the only mod I know which has it. (And if there are more mods, nUllSkillZ would probably know it.)
The only thing you can make trough mapping/scripting is something like “LMS in a regular map” by placing two triggers which check if there are players from both teams inside it.
I used that in ET Headshot 2 to count the score, but it has some practical drawbacks on large maps. Players needed to push a “ready” button, for example.