Home   Help Search Login Register  

Author Topic: Multi Player Options  (Read 493 times)

0 Members and 2 Guests are viewing this topic.

TERA_Forrest

  • Guest
Multi Player Options
« on: 08 Jan 2005, 16:22:05 »
Ok, so I've got two of the three working.  I can't get the third to show up on the multi-player-join screen.  this is what I've got... after 6 hours of messing with it.  ???

DESCRIPTION.SQS
Quote
// ***********************************************************************
// **** Description file for Operation Flashpoint
// **** Generated by Chris's OFP Script Editor
// **** Create Description Wizard
// ***********************************************************************

Respawn = "SIDE";
RespawnDelay = 5;
onloadmission= "COOP by Forrest, Forrest Gump... shabut!";
onloadmissiontime= false;

class CfgSounds
{
   // List of sounds (.ogg files without the .ogg extension)
   sounds[] = {sound3};

   // Class definition needed for each sound
   class sound3
   {
      // Name to display in mission editor
      name = "sound3";
      // Sound path, volume, pitch
      sound[] = {\sound\sound3.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
};

class Weapons
{
   // Add the weapons to the mission gear
   class BAS_JM4ACOG   {
      Count = 15;
   };
   class BAS_JSR25
   {
      Count = 15;
   };
   class JAM_AT4launcher   {
      Count = 15;
   };
   class BAS_JM24sws   {
      Count = 15;
   };
};

class Magazines
{
   // Add the magazines to the mission gear
   class JAM_W556_30mag
   {
      Count = 200;
   };
   class JAM_W762sniper_20mag
   {
      Count = 200;
   };
   class JAM_w762_5mag
   {
      Count = 200;
   };
   class JAM_at4rocket
   {
      Count = 200;
   };
};



titleParam1 = "DAYTIME";
valuesParam1[] = {1,2,3,4,5};
defValueParam1 = 1;
textsParam1[] = {"Sunrise","Midday","Sunset","Night","24hrs"};

titleParam2 = "INTRO SETTINGS";
valuesParam2[] = {1,2};
defValueParam2 = 1;
textsParam2[] = {"Intro ON","Intro OFF"};

titleParam3 = "DIFFICULTI SETTINGS";
valuesParam3[] = {1,2,3};
defValueParam3 = 2;
textsParam3[] = {"EASY","NORMAL","HARD"};

INIT.SQS


Quote
;;;________PARAM1 & PARAM 2 OPTIONS SYSTEM___________________________
;;;________PARAM1________
;;NB>>> for thjis to work correctly, the map time set in the editor should be midnight

;;adjust the following skiptimestimes so that you get the sun just rising or just setting when you select those options
deletevehicle m1

tx_Sunrise = 4.9
tx_Sunset = 18.8
?(param1 == 1):goto "SUNRISE"
?(param1 == 2):goto "MIDDAY"
?(param1 == 3):goto "SUNSET"
?(param1 == 4):goto "NIGHT"
?(param1 == 5):goto "24Hrs"
goto "GAMEOPTION"

#SUNRISE
skiptime tx_Sunrise
goto "GAMEOPTION"

#MIDDAY
skiptime 12
goto "GAMEOPTION"

#SUNSET
skiptime tx_Sunset
goto "GAMEOPTION"

#NIGHT
goto "GAMEOPTION"

#24Hrs
skiptime 12.0
?(local server):[] exec "skiptime\ServerSkiptime.sqs"
?!(local Server):[] exec "skiptime\ClientSkiptime.sqs"
goto "GAMEOPTION"

;;;________PARAM2________
#GAMEOPTION
?(param2 == 1):goto "OPTION_A"
?(param2 == 2):goto "OPTION_B"


#OPTION_A
[] exec "title.sqs"
goto "PARAM_END"

#OPTION_B
[] exec "skipintro.sqs"
goto "PARAM_END"

#PARAM_END

goto "ds"

;---------param3----------
#ds
?(param3 == 1):goto "OPTION_C"
?(param3 == 2):goto "OPTION_D"
?(param3 == 3):goto "OPTION_E"

#OPTION_C
[] exec "easy.sqs"
goto "param_end2"

#OPTION_D
[] exec "normal.sqs"
goto "param_end2"
#OPTION_E
[] exec "hard.sqs"
goto "param_end2"

#param_end2
goto "start"
« Last Edit: 08 Jan 2005, 16:27:52 by TERA_Forrest »

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Multi Player Options
« Reply #1 on: 08 Jan 2005, 16:26:31 »
That's cause you can't have 3. 2 is the limit.

:beat: *Gets Shot* :beat:

TERA_Forrest

  • Guest
Re:Multi Player Options
« Reply #2 on: 08 Jan 2005, 16:28:36 »
I could have sworn I saw a CTF with 4 options... aw poop!

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Multi Player Options
« Reply #3 on: 08 Jan 2005, 16:30:50 »
Well, I'm no regular MP scripter, so there might be some strange workaround.

:beat: *Gets Shot* :beat:

TERA_Forrest

  • Guest
Re:Multi Player Options
« Reply #4 on: 08 Jan 2005, 16:34:11 »
I'll see if I can't find that CTF, and if I get the answer I'll post it in here so anyone else looking can find it.  ;)