Moving spawns in stock maps.
Posted: Tue Mar 16, 2004 12:26 am
Well, not really moving them, but the players will think you did.
I got sick of playing "The Hunt" today as an Allied with Axis players that knew how to take advantage of that maps biggest flaw: nadespamming.
So, I sat down to try to make that bastard map playable on a public server again:
To use it, you put:
..before level waittill spawn in main.
I havent tested it on a server with 2 players yet, so the roundstart logic may be flawed... I just wanted to see your oppinions on this.
Basically it puts trigger_multiple entities around the 4 Axis spawns that are closest to the allied spawn and relocates any players at these locations a bit back if they trigger them within 2 seconds after roundstart.
So: what do you think?
I got sick of playing "The Hunt" today as an Allied with Axis players that knew how to take advantage of that maps biggest flaw: nadespamming.
So, I sat down to try to make that bastard map playable on a public server again:
Code: Select all
move_spawn local.from local.to:
local.size_modifier = (32 32 96)
local.tele_trigger = spawn trigger_multiple "targetname" "teleporter"
local.tele_trigger setsize ( local.from - local.size_modifier ) ( local.from + local.size_modifier )
println "Spawn moved from " local.from " to " local.to
level waittill roundstart
thread deactivation_handler local.tele_trigger
local.tele_trigger waittill trigger
parm.other.origin = local.to
println "Player moved from " local.from " to " local.to
end
deactivation_handler local.trigg:
wait 2
local.trigg nottriggerable
println "Spawn relocation deactivated."
endCode: Select all
thread move_spawn (3888 1744 -312) (3562 516 -194)
thread move_spawn (3840 1216 -306) (5479 -173 -333)
thread move_spawn (3072 1408 -306) (3715 -67 -450)
thread move_spawn (3680 1888 -274) (4257 -571 -382)I havent tested it on a server with 2 players yet, so the roundstart logic may be flawed... I just wanted to see your oppinions on this.
Basically it puts trigger_multiple entities around the 4 Axis spawns that are closest to the allied spawn and relocates any players at these locations a bit back if they trigger them within 2 seconds after roundstart.
So: what do you think?