OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Foxie on 23 Aug 2004, 15:36:10
-
Gentlemen,
I am most certain this has been brought up before, but I spent the last hour searching the forums without success.
I would like to make a selection possible before the mission starts. Respawn activated or not.
It is going to be a coop map, no vehicle respawn.
I just would like it to be like in the C&H maps where you can select "Helos with Hellfire" ro "Helos without Hellfire" before you start the game. Just with 'respawn active' or not.
Can someone point me to a thread or explain it to me ?
Cheers,
Foxie
-
something like this...
titleParam1 = "Respawn:";
valuesParam1[] = {1, 2};
defValueParam1 = 1;
textsParam1[] = {"Off", "On"};
Then would you make 2 triggers ingame with..
Condition param1==1
Activation Respawn = false
2nd trigger
Condition param1==2
Activation Respawn = true
i dont no if this would work, can anyone help me.
i may need a script which determins weather you can respawn or not.
-
I don't think there's a way to do that because respawn is enabled or disabled in the description.ext and at least I don't know how to touch the stuff in there from game.
You could try something clever in the 'onplayerkilled.sqs' which is executed automaticly when the player is killed.. hmm.. tough question.
This actually would be a very good addition to most of the coops and even other MP missions out there. Still I don't know how to work it. :-\
-
havent tried it, but what about if respawn is "off", setpos'ing the player to some remote location without weapons? A script should be able to handle that, but it would kinda suck to spend the rest of the map staring at the water or some prison walls.......The way I understand it, you either respawn as a player of some kind or a seagull and you cannot change that once the map starts.
I think group respawn is reasonable for a coop, and as soon as there are no more group members to spawn in to, it automatically spawns you a seagull.
-
Put this in description.ext:
titleParam1 = "Whatever";
valuesParam1[] = {1,2,3,4,5,6,...,...,...};
defValueParam1 = 1;
textsParam1[] ={"Whatever1","Whatever2","Whatever3","......", "......","........."}
titleParam2 = "Respawntype";
valuesParam2[] = {1,2,3,4,5,6};
defValueParam2 = 6;
textsParam2[] ={"No Respawn ","Respawn in base", "Respawn in same place", "Limited Respawn ", "blablablabla", "blablabla", "......", ".......","............"}
Then,in another script,executed in init;
?(param2 == 1):goto "No Respawn "
?(param2 == 2):goto "Respawn in base"
?(param2 == 3):goto "Respawn in same place"
?(param2 == 4):goto "Limited Respawn"
?(param2 == 5):goto "blablablabla"
?(param2 == 6):goto "blablabla"
..........................
....................
#No Respawn
respawn ="NONE"
goto "????"
#Respawn in base
respawn = "BASE" or 3
goto "????"
#Respawn in same place
respawn = "INSTANT"
etc.....
U further have "BIRD"-"GROUP"-"SIDE"
.......
I hope U got the idea,this is just an example and I am NOT sure if it works.