Home   Help Search Login Register  

Author Topic: Can you set a respawn to put you with the majority of your team?  (Read 1743 times)

0 Members and 3 Guests are viewing this topic.

Phantom

  • Guest
I'm working on an MP TDM mission at the moment, and I've set up loads of bases so that if yours is destroyed, you can move on to another, or just use it to get closer to the enemy, anyway, this causes a respawn problem. because if you've moved to a base that is over the other side of the island, and you respawn at the original point, it'll be a pain in the ass to get you back over there. I was wondering if there's some way that you can respawn with your team leader, or the majority of your side? If it's a no to that, but there's another way to solve the problem, can u reply with that please.

As always, I appreciate all the help i can get!
Cheers
Phantom
« Last Edit: 13 Jul 2003, 16:21:49 by Phantom »

Mr.BoDean

  • Guest
Hey man, that's a good question. Also, can respawn be set to something like 100 meters from where you died, just to give yourself a better chance of surviving than your previously-ambushed spot?

   Or is there a simple script for respawning at the closest (respawn) marker, assuming you have set up several on the map?

Tactician

  • Guest
Assuming the player is in a group, you could just set respawn to "base", not specify a respawn_ marker (this causes the palyer to respawn where he died I think) and setPos the player to a random location near the group leader.

Trigger activated repeatedly
Condition: !alive player AND player != leader (group player)
Activation:
Deactivation: player setPos [(getPos leader (group player) select 0) + random (50), (getPos leader (group player) select 1) + random (50), 0]

The group leader will respawn at the "base" respawn marker if set, or where he died if there's no marker.

Mr.BoDean

  • Guest
Hi Tac,
   Not to jack this thread, but if you only wanted to set the respawn point a random 50m or 100m away from the place you died, how would that look?
  I'm currently using only the following in my Description.ext file:

Respawn = "INSTANT";
RespawnDelay = 20;


Could I simply add the

+Random (50) in there somehow? ???   Thanks.

Tactician

  • Guest
Sure.

Trigger activated repeatedly
Condition: !alive player
Activation:
Deactivation: player setPos [(getPos player select 0) + random (100), (getPos player select 1) + random (100), 0]

Mr.BoDean

  • Guest
Thanks, Tac,
  I assume I'd need 1 trigger for each playable unit then, right?
 And I'd replace player with each playable units' names?   :-\   :)

Sure.

Trigger activated repeatedly
Condition: !alive player
Activation:
Deactivation: player setPos [(getPos player select 0) + random (100), (getPos player select 1) + random (100), 0]
« Last Edit: 16 Jul 2003, 13:37:52 by Mr.BoDean »

Phantom

  • Guest
ok, so i've been told what to put, but where do i put it?