Mikero/Sandbox – User

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:


This details the token verbs available in config.cpp for addons.
This details the token verbs available in config.cpp for addons.
<u>Legend:</u>
''INTEGER:'' A signed, value to 65k.
''BOOLEAN:'' An INTEGER value of 0, or 1
''ARRAY:'' An arrey[]=
''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


<hr>
<hr>
Line 12: Line 22:
<hr>
<hr>
====A====
====A====
avgHeight = 10;
=====airFriction=====
acceleration = 7;
''ARRAY:'' 3 separate tokens, airFriction0[],airFriction1[],airFriction2[] that define the X Y and Z component respectively.
  airFriction2[] = {25,12,2.500000};
 
  airFriction1[] = {1500,700,100};
airFriction2[] = {25,12,2.500000};
  airFriction0[] = {40,20,60};<hr>
 
=====acceleration=====
''INTEGER:'' metres per second
acceleration = 7;
=====avgHeight=====
''INTEGER: ''height in meters of bird
avgHeight = 10;
<hr>
 
====B====
====B====
<hr>
<hr>
====C====
====C====
canBeShot = 1;
=====canBeShot=====
''BOOLEAN:'' Declares whether bullets have any effect
canBeShot = 1;
<hr>
<hr>
====F====
====F====
=====flySound=====
=====flySound=====
flySound[] = {"\ca\Animals\Sound\fly.wss",0.000000,1,1};// can be ""
''ARRAY:''
flySound[] = {"\AddonName\AnySound.wss",0.000000,1,1};// can be ""
<hr>
<hr>
====M====
====M====
maxHeight = 50;
=====maxHeight=====
model = "";
''INTEGER:'' max height above sea level.
minHeight = 5;
maxHeight = 50;
minSpeed = -0.500000; range 0->1
 
maxSpeed = 20;
=====maxSpeed=====
model = "\ca\animals\racekT.p3d";
''INTEGER:'' In kph.
maxSpeed = 20;
=====minHeight=====
''INTEGER:'' Min height above sealevel
minHeight = 5;
=====minSpeed=====
''INTEGER:'' In Kph.
minSpeed = -0.500000; range 0->1
=====model=====
model = "\AddonName\anyp3d"; // can be ""
 
<hr>
<hr>
====R====
====R====
Line 39: Line 70:
====S====
====S====
scope = 0;
scope = 0;
simulation = "SeaGull";
simulation = "SeaGull";
straightDistance = 50;
straightDistance = 50;
singSound[] = {"",0.031623,1,1};
singSound[] = {"",0.031623,1,1};

Revision as of 06:06, 30 June 2006


Intro

ADDONS COMREF

This details the token verbs available in config.cpp for addons.

Legend: INTEGER: A signed, value to 65k. BOOLEAN: An INTEGER value of 0, or 1 ARRAY: An arrey[]=

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};// can be ""

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

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


R

reversed = 0;


S

scope = 0;

simulation = "SeaGull";

straightDistance = 50; singSound[] = {"",0.031623,1,1};


T

turning = 1;