Home   Help Search Login Register  

Author Topic: 2 respawns required for same side  (Read 1207 times)

0 Members and 1 Guest are viewing this topic.

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
2 respawns required for same side
« on: 28 Nov 2002, 20:29:37 »
Firstly here is the overview

New map type called Escape & Evasion
I am trying to create a template as i make this map, much like Tacticians C&H and Karillions CTF

The game

West has 2 groups
Group A = Escapees (6)
Group B = Rescue Party (2)

East=The hunters (24)

Group A (Escapees) initially spawn at their helicopter crash site and have to make it from enemy territory to the border (Triggered Area)
They spawn all carrying flags (Camouflaged flags), if they make it to the border, they score X points.

If East kills them, and takes the flag, East scores Y points
(Havent yet decided if east have to go to a trigger area with flag or just auto return it to flag poles)

West Group B's task is to extract them.

Game is run on a time limit, with everybody respawning if killed
-------------------------------------------------------------------------
Respawn Question.
I have already set West Escapees up with 6 random respawn locations using a script
respawn_west to respawn_west5 which is working fine
(These respawns are all in enemy territory)

But

How do i get West Group B (Rescue party) to respawn in an entirely different location??????
I cant use respawn_west
-----------------------------------------------------------------
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Pope_Zog

  • Guest
Re:2 respawns required for same side
« Reply #1 on: 29 Nov 2002, 12:33:10 »
Create a marker where your rescue party should respawn. Call it e.g. rescue_party_respawn.

Create two triggers (one for each member of the rescue party - in case you'd like to add more later :)) with condition:
alive name_of_rescue_party_member

E.g. if your two rescue party guys are called RP1 and RP2, make the conditions alive RP1 and alive RP2. These triggers will fire each time these players respawn AND when the game first starts!

In the Activation fields put:
[RP1, "rescue_party_respawn"] exec "respawn_rescue.sqs"
and
[RP2, "rescue_party_respawn"] exec "respawn_rescue.sqs"

Here's the respawn_rescue.sqs script:
Code: [Select]
; respawn_rescue.sqs
; Script that respawns players in a specific zone.
; Simplified from Backoff's multiple respawn script.
;
; Syntax: [player name, respawn marker name] exec "respawn_rescue.sqs"
;
; "Player name" is the name given to the player.
; "respawn marker name" is the name of the respawn marker the player
; should respawn in.
;
; Example: [Rescue1, "rescuers_area"] exec "respawn_rescue.sqs"
;
_player = _this select 0
_zone = _this select 1
_radius = 50

_pos = getMarkerPos _zone

; Create random number to set the player position
_randx = random (_radius)
? ( random(10) < 5 ): _randx = _randx * -1
_randy = random(_radius)
? ( random(10) < 5 ): _randy = _randy * -1

; Set the position.
_player setpos [(_pos select 0) + _randx, (_pos select 1) + _randy, 0]

Exit

Pope Zog

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:2 respawns required for same side
« Reply #2 on: 30 Nov 2002, 15:20:05 »
Thankyou vey much. I was under the impression i couldnt use a completely new respawn name, and that it had to be
respawn_west
Respawn_east etc
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123