CfgVehicles Config Reference: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
Line 24: Line 24:
====A====
====A====
=====airFriction=====
=====airFriction=====
''ARRAY:'' 3 separate tokens, airFriction0[],airFriction1[],airFriction2[] that define the X Y and Z component respectively.
''[[Array|ARRAY]]:'' 3 separate tokens, airFriction0[],airFriction1[],airFriction2[] that define the X Y and Z component respectively.


  airFriction2[] = {25,12,2.500000};
  airFriction2[] = {25,12,2.500000};


=====acceleration=====
=====acceleration=====
''INTEGER:'' metres per second
''[[Number|INTEGER]]:'' metres per second
  acceleration = 7;
  acceleration = 7;
=====avgHeight=====
=====avgHeight=====
''INTEGER: ''height in meters of bird
''[[Number|INTEGER]]: ''height in meters of bird
  avgHeight = 10;
  avgHeight = 10;
<hr>
<hr>
Line 40: Line 40:
====C====
====C====
=====canBeShot=====
=====canBeShot=====
''BOOLEAN:'' Declares whether bullets have any effect
''[[Boolean|BOOLEAN]]:'' Declares whether bullets have any effect
  canBeShot = 1;
  canBeShot = 1;
<hr>
<hr>
Line 53: Line 53:
====M====
====M====
=====maxHeight=====
=====maxHeight=====
''INTEGER:'' max height above sea level.
''[[Number|INTEGER]]:'' max height above sea level.
  maxHeight = 50;
  maxHeight = 50;


=====maxSpeed=====
=====maxSpeed=====
''INTEGER:'' In kph.
''[[Number|INTEGER]]:'' In kph.
  maxSpeed = 20;
  maxSpeed = 20;
=====minHeight=====
=====minHeight=====
''INTEGER:'' Min height above sealevel
''[[Number|INTEGER]]:'' Min height above sealevel
  minHeight = 5;
  minHeight = 5;
=====minSpeed=====
=====minSpeed=====
''INTEGER:'' In Kph.
''[[Number|INTEGER]]:'' In Kph.
  minSpeed = -0.500000; range 0->1
  minSpeed = -0.500000; range 0->1
=====model=====
=====model=====
''STRING:'' Location in the addon where the p3d model resides. Can be subfolder
''[[String|STRING]]:'' Location in the addon where the p3d model resides. Can be subfolder
  model = "\AddonName\anyp3d"; // can be ""
  model = "\AddonName\anyp3d"; // can be ""


Line 72: Line 72:


====R====
====R====
''BOOLEAN:'' Normally, models ARE reversed with respect to how they present on the screen after editing with tools like oxygen (eg) This overrides the default. See [[#model]]
''[[Boolean|BOOLEAN]]:'' Normally, models ARE reversed with respect to how they present on the screen after editing with tools like oxygen (eg) This overrides the default. See [[#model]]
  reversed = 0;
  reversed = 0;
<hr>
<hr>
Line 79: Line 79:
scope = 0;
scope = 0;
=====simulation=====
=====simulation=====
''STRING: '' The engine behaviour with this model.
''[[String|STRING]]: '' The engine behaviour with this model.
  simulation = "SeaGull";// campfire,house, etc
  simulation = "SeaGull";// campfire,house, etc
=====singSound=====
=====singSound=====
''ARRAY:'' normally for a bird
''[[Array|ARRAY]]:'' normally for a bird


  singSound[] = {"\AddonName\SoundFile.ogg",0.031623,1,1};
  singSound[] = {"\AddonName\SoundFile.ogg",0.031623,1,1};


=====straightDistance=====
=====straightDistance=====
''INTEGER:''
''[[Number|INTEGER]]:''
  straightDistance = 50;
  straightDistance = 50;


Line 94: Line 94:
====T====
====T====
=====turning=====
=====turning=====
''BOOLEAN:'' (i think)
''[[Boolean|BOOLEAN]]:'' (i think)
  turning = 1;
  turning = 1;
<hr>
<hr>

Revision as of 09:06, 30 June 2006

Introduction

Addon Command Reference

This article details the token-verbs available in Config.cpp for addons created in Operation FlashPoint, the Resistence upgrade, and of course, Elite.

Legend:

INTEGER: A signed, value to 65k.

BOOLEAN: An Integer value of 0, or 1

ARRAY: An arrey[]=

STRING: Any string value. ALL STRINGS MUST BE ENCLOSED IN QUOTES for Elite. These strings are misinterpreted as #defines otherwise.


Notes: For Models and other items using p3d files, the .p3d extension is not reguired. Similar comment for pac/paa files, and wss (sound) files where appropriate


cfgNonAiVehicles


A

airFriction

ARRAY: 3 separate tokens, airFriction0[],airFriction1[],airFriction2[] that define the X Y and Z component respectively.

airFriction2[] = {25,12,2.500000};
acceleration

INTEGER: metres per second

acceleration = 7;
avgHeight

INTEGER: height in meters of bird

avgHeight = 10;

B


C

canBeShot

BOOLEAN: Declares whether bullets have any effect

canBeShot = 1;

F

flySound

ARRAY:

flySound[] = {"\AddonName\AnySound.wss",0.000000,1,1};

Note: String can be empty, eg. ""


M

maxHeight

INTEGER: max height above sea level.

maxHeight = 50;
maxSpeed

INTEGER: In kph.

maxSpeed = 20;
minHeight

INTEGER: Min height above sealevel

minHeight = 5;
minSpeed

INTEGER: In Kph.

minSpeed = -0.500000; range 0->1
model

STRING: Location in the addon where the p3d model resides. Can be subfolder

model = "\AddonName\anyp3d"; // can be ""

R

BOOLEAN: Normally, models ARE reversed with respect to how they present on the screen after editing with tools like oxygen (eg) This overrides the default. See #model

reversed = 0;

S

scope = 0;

simulation

STRING: The engine behaviour with this model.

simulation = "SeaGull";// campfire,house, etc
singSound

ARRAY: normally for a bird

singSound[] = {"\AddonName\SoundFile.ogg",0.031623,1,1};
straightDistance

INTEGER:

straightDistance = 50;

T

turning

BOOLEAN: (i think)

turning = 1;