OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: ItsMeAgain on 03 Jul 2005, 21:25:11

Title: Problem with Respawn protection zones... (you´re my very last Hope)
Post by: ItsMeAgain on 03 Jul 2005, 21:25:11
Hey Guys!

IÂ've got some trouble with respawn protection (the subject may sugest that...)
I made a neat little MP TDM Mission (my first), for that, I think, some spawn protection canÂ't be wrong.

I already read the excelennt tut by tactican (in the ofpec ED tut section MP) it helped a lot.
IÂ'm using Ofp V1.46 so I must use triggers...

Kinda like that:

 _________________________________________
|    |                                       1                               |    |
|    |___________________________________|    |
|    |                 |    |                           |    |               |    |
|    |                 |    |                           |    |               |    |
|    |                 |    |                           |    |               |    |
| 1 |    RSP       | 2 |        BATTLE        | 2 |   RSP       | 1 |
|    |                 |    |                           |    |               |    |
|    |                 |    |                           |    |               |    |
|    |                 |    |                           |    |               |    |
|    |________|__|_____________|__|_______ |    |
|    |                                      1                              |    |
|__|___________________________________|__|

(little lame but should do it ...)

1: kills everyone (battlefield border)
Activated by  : Everyone
Condition      : (vehicle player in thisList)
On activation: (vehicle player) setDammage 1; player setDammage 1; hint "Deserters will be shot"

2: spawnpoint protection ( SHOULD kill enemy units)
Activated by : depending on Side
Condition     : (vehicle player in thisList)
On activation: (vehicle player) setDammage 1; player setDammage 1; hint "You violated the X respawn area!"


The Problem:
----------------
Every thing works fine... at least on the server...
The clients die when leaving 2 (they can enter without problems). Second thing is, there seem to be spots a client player dies completely without any reason (I tried to enter one until the dead bodies marked the place pretty clearl... It is empty in editor... ???


I searched FAQ and Forum already so you guys are my last Hope...
If anyone has an Idea how to fix the problem please let me know
Thanx dudes!
Title: Re:Problem with Respawn protection zones... (you´re my very last Hope)
Post by: Terox on 04 Jul 2005, 01:27:12
This is a known problem.

Basically the following can cause the problem

1) Too many objects on the map
2) The use of rectangle shaped triggers
3) the use of triggers that are set at any other angles other than 0 or 90 degrees.

What happens is that the triggers can migrate to a different location than the ones you positioned them at

Easy fix

Redo your triggers, use spherical ones and set there angles at 0 or 90

You can still create a rectangularish killzone area using spehrical triggers

also to debug, set a marker at the position where you place the trigger in the mission and then have another marker setpossed to the trigger 1 second into the mission

"markername" setmarkerpos (getpos triggername)

obviously make sure the marker isnt an empty marker otherwise you wont see it
Title: Re:Problem with Respawn protection zones... (you´re my very last Hope)
Post by: ItsMeAgain on 04 Jul 2005, 09:55:21
Thanx dude!

that helped alot!