Home   Help Search Login Register  

Author Topic: init.sqs &  (Read 862 times)

0 Members and 2 Guests are viewing this topic.

Warmaster

  • Guest
init.sqs &
« on: 30 Dec 2004, 21:38:01 »
I heard that if you want to create "survival" maps (maps where you dont have compass or map screen ) you have to add something like "showcompass = 1" to init.sqs file.  The problem is: you have to write the scripts in correct order to make them work.

So if you can tell the answer to million dollar question you'll have my graditude.

---
If you havet figured it out yet: What is the correct order? ???

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:init.sqs &
« Reply #1 on: 30 Dec 2004, 21:43:06 »
I wasn't aware that they had to be in any particular order.

Anyway:

showMap false.....will prevent the map from showing
showMap true ......will make map available again

showCompass false....prevents the compass from showing
showCompass true.......will enable the compass again.

According to the comref anyway.


Planck
I know a little about a lot, and a lot about a little.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:init.sqs &
« Reply #2 on: 30 Dec 2004, 23:34:39 »
Doesn't all the info go into the description?
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

bored_onion

  • Guest
Re:init.sqs &
« Reply #3 on: 30 Dec 2004, 23:38:46 »
yep it does, see the tutorial by pcverden in the ed depot for further info but here is the jist:

Quote
// Indicates whether or not to display the watch during the briefing 0 = no, 1 = yes
showWatch = 1

// Indicates whether or not to display the compass during the briefing 0 = no, 1 = yes
showCompass = 1

// Indicates whether or not to display the notepad during the briefing 0 = no, 1 = yes
showNotepad = 1

// Indicates whether or not to display the global positioning system during the briefing 0 = no, 1 = yes
showGPS = 1

// Indicates whether or not to display the map during the briefing 0 = no, 1 = yes
showMap = 1

Examples:

showMap = 1

showWatch = 1

showCompass = 1

showNotepad = 1

showGPS = 1



AK-Chester

  • Guest
Re:init.sqs &
« Reply #4 on: 31 Dec 2004, 15:16:54 »
I wasn't aware that they had to be in any particular order.
And you were right, OFP doesn't care about the order of things in the description.ext file at all.

showMap false.....will prevent the map from showing
showMap true ......will make map available again
showCompass false....prevents the compass from showing
showCompass true.......will enable the compass again.
That's the way those commands are used in triggers, scripts, etc.
For use in the description.ext see bored_onion's post.

Offline XCess

  • Former Staff
  • ****
Re:init.sqs &
« Reply #5 on: 11 Jan 2005, 13:33:57 »
I've used true and false in description.ext with no problems, it just takes less time to type =1 or =0.

Offline Roni

  • Members
  • *
  • Play the Game !
Re:init.sqs &
« Reply #6 on: 01 Feb 2005, 00:59:32 »
Hi All

Just passing and I thought that I'd add my own two cents.

I am currently editing a mission of mine in which you play a small team black ops being inserted onto an enemy controlled island (Desert Everon) in a Cessna 182.  You start off in the air, lost (random start pos) and out of fuel so you have to dead stick the plane in.

Once you land the plane starts to smoke and then burn before blowing up (camcreate fire inflamed, camcreate smoke grenade, camcreate shell73 !).  While this is happening you have to loot the plane as fast as you can (via an addaction) to try and get your gear out.  Each time you execute the action you get another piece of equipment (compass, GPS, weapons, ammo, map etc).

I am still working on the scripts but I discovered that you can actually use the "showMap", "showCompass" etc commands in scripts as well as in the description.ext file.  The only difference is that rather than typing "showMap=1" you type "showMap true".

So to create the above effect all I had to do was set all the "shows" to 0 at start (after the briefing of course, but before play begins), then add them back via the addaction scripts.  I know that it works, I just it tested it last night no problems.

This raises all sorts of neat possibilities, such as stealing a map from an enemy base (along with all the markers showing wher the enemy units are), losing your compass or watch after beig captured or whatever.

Man I love this game !