Home   Help Search Login Register  

Author Topic: Weapons/gear choices  (Read 647 times)

0 Members and 1 Guest are viewing this topic.

Cango

  • Guest
Weapons/gear choices
« on: 31 Dec 2002, 17:52:55 »
I have the very basics of my missions up and it is playable, but how do I set it up for someone to have night vision goggles or let them have their choice of weapons etc.

_erp

  • Guest
Re:Weapons/gear choices
« Reply #1 on: 31 Dec 2002, 18:15:08 »
i think you have to make it in the description.ext file

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:Weapons/gear choices
« Reply #2 on: 31 Dec 2002, 23:05:57 »
The answer depends on how you want it to work.  If you want the unit to begin (no choices) with certain weapons and equipment, then you would put the appropriate code in the unit's initialization field.  Refer to the addWeapon and addMagazine commands.  Note that if you are changing the unit's default weapon, you'll have to remove the default weapon first with the removeWeapon and removeMagazine commands.

If you want a player to be able to choose during the briefing portion of your mission, you have to edit or create the description.ext file.  The following link takes you to one tutorial that explains how to do this:

http://www.ofpec.com/editors/tutorial_view.php?id=18

There are others that might help to.  Just search for anything related to the description.ext file.
Ranger

Cango

  • Guest
Re:Weapons/gear choices
« Reply #3 on: 31 Dec 2002, 23:58:02 »
I want to change what he can chooes during the briefing portion.

I made a description.ext, were do i put it?

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:Weapons/gear choices
« Reply #4 on: 01 Jan 2003, 00:15:02 »
As that tutorial states, "This file describes the format of the description.ext file which resides in each mission's directory."

So, if your in-game user name is Cango and your mission is MyMission on the desert island, the directory could be the following:

c:\operation flashpoint\users\cango\mission\MyMission.intro

Put the description.ext file in there.
Ranger

Cango

  • Guest
Re:Weapons/gear choices
« Reply #5 on: 01 Jan 2003, 00:16:43 »
i have a .eden not .intro

If i out it in the mymissions folder how will i get it to play in an online game?

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:Weapons/gear choices
« Reply #6 on: 01 Jan 2003, 00:30:16 »
Umm, .intro was just an example, as I would have hoped you would realize.

The first thing you (and any beginner) must realize is that in many (if not most) cases, you cannot take code or examples as literal truth.  You have to take what you are told and modify it to suit your needs.  If you were to place your description.ext file in the literal path that I gave you as an example, your probably would spend hours trying to find the OFP directory because chances are that's not what your real directory is.

Therefore, I seriously doubt that you named your mission "MyMission", and as such, do not attempt to place the description.ext file in a "MyMission" directory!  Put it in whatever directory your mission really resides.

Now, to answer your question, after you are done creating your mission, while still in the editor, click on the Save button.  One of the fields is a drop-down menu.  In the drop-down menu, choose "MP Mission".  Then, click on the Save button (or is it labeled "OK"?  I don't recall).  This will save your mission as a multiplayer mission in your mpmission directory.  So, the next time that you host an online game, the mission file will be automatically transferred to any clients that join your game.

Good luck.
« Last Edit: 01 Jan 2003, 00:31:32 by Ranger »
Ranger