A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »Respawn Issue

Author Topic: Respawn Issue (3 messages, Page 1 of 1)
Moderators: Dennis

elite051
Joined: Apr 14, 2009

Wow, I really suck at this!


Posted: Mar 3, 2012 10:00 PM    Msg. 1 of 3       
I'm working on a team slayer map, but players will often respawn in the enemy base. Is there anything other than player starting points I need to add?


PinkDeath
Joined: Feb 26, 2012


Posted: Mar 4, 2012 04:07 AM    Msg. 2 of 3       
Quote: --- Original message by: elite051
I'm working on a team slayer map, but players will often respawn in the enemy base. Is there anything other than player starting points I need to add?


From what I know, team slayer will just place players at random, ignoring the team index, unlike CTF.


kirby_422
Joined: Jan 22, 2006

Apparently public enemy number 1?


Posted: Mar 4, 2012 10:18 AM    Msg. 3 of 3       
Yes, the only team game that actually abides by teams is CTF. If you want to force them on the correct side anyways, make some box outside the map where they spawn, and use OS to move them to a random location for their team (OS is required to see their team information)

(global short number 0)
(global boolean loc 0)
(script static unit player
(unit (list_get (players) number))
)

(script continuous spawnZones
(if (volume_test_object trig_vol (player)) (begin
(set loc (random_range 0 3))
(if (= (player_data_get_integer number team_index) 0) (begin ;;red
(if (= loc 0) (object_teleport (player) Spawn0R_flag))
(if (= loc 1) (object_teleport (player) Spawn1R_flag))
(if (= loc 2) (object_teleport (player) Spawn2R_flag))
(if (= loc 3) (object_teleport (player) Spawn3R_flag))
) (begin ;;Any other team (Blue)
(if (= loc 0) (object_teleport (player) Spawn0B_flag))
(if (= loc 1) (object_teleport (player) Spawn1B_flag))
(if (= loc 2) (object_teleport (player) Spawn2B_flag))
(if (= loc 3) (object_teleport (player) Spawn3B_flag))
))
))
(if (>= number 15) (set number 0) (set number (+ number 1)))
)

For that one line in red alone, you require OS. You cannot correctly check teams without OS (unless its CTF where you see where they spawn, but that defeats the point of this script (Under the non-correctly area, you could theoretically use AI to check it.. place a blue AI, then check (ai_status <ai>) to see whether they are attacking or not.. *shrug*))

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 12:22 AM 125 ms.
A Halo Maps Website