ofp:modeling:cfgvehicles_configref
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ofp:modeling:cfgvehicles_configref [2007/07/07 19:26] – added sensitivityEar info snakeman | ofp:modeling:cfgvehicles_configref [2024/07/31 15:57] (current) – links added. snakeman | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== CfgVehicles Config Reference ====== | + | ====== |
+ | |||
+ | [[https:// | ||
+ | |||
+ | **Operation Flashpoint (OFP)** aka ArmA: Cold War Assault (CWA) | ||
**TokenName Config.cpp Reference** | **TokenName Config.cpp Reference** | ||
Line 17: | Line 21: | ||
</ | </ | ||
- | This article details the token-names specifically available within the CfgVehicles class of a Config.cpp. The primary focus of this document is the TokenNames used for various aspects of controlling models within **Addons**. | + | This article details the token-names specifically available within the CfgVehicles class of a Config.cpp. The primary focus of this document is the TokenNames used for various aspects of controlling models within **Addons**. |
Unlike a command reference, where one meaning fits all, Token names are **not** verbs. The meaning of the name, it's effect, can be different, depending on context. You are advised therefore, that these names, as listed, apply //only// to the CfgVehicles class. They may, or may not, have identical meanings (if found), in other classes. | Unlike a command reference, where one meaning fits all, Token names are **not** verbs. The meaning of the name, it's effect, can be different, depending on context. You are advised therefore, that these names, as listed, apply //only// to the CfgVehicles class. They may, or may not, have identical meanings (if found), in other classes. | ||
Line 29: | Line 33: | ||
[[ofp: | [[ofp: | ||
- | [[ofp: | + | [[ofp: |
- | For elite only (not ArmA, or OFP) //ALL STRINGS MUST BE ENCLOSED IN QUOTES// | + | For elite only (not ArmA, or OFP) //ALL STRINGS MUST BE ENCLOSED IN QUOTES//. |
[[ofp: | [[ofp: | ||
Line 141: | Line 145: | ||
driverAction = " | driverAction = " | ||
gunnerAction = " | gunnerAction = " | ||
- | commanderInAction = " | + | commanderInAction = " |
driverInAction = " | driverInAction = " | ||
gunnerInAction = " | gunnerInAction = " | ||
Line 207: | Line 211: | ||
Determines how easy an object is to identify. Smaller values are easier to detect. | Determines how easy an object is to identify. Smaller values are easier to detect. | ||
- | Typically, buildings are 0.2, vehicles, 0.5 | + | Typically, buildings are 0.2, vehicles, 0.5 |
**A value of 1000 causes the underlying class to be identified instead.** Eg bushy trees, pink trees and yellow trees, can all be ' | **A value of 1000 causes the underlying class to be identified instead.** Eg bushy trees, pink trees and yellow trees, can all be ' | ||
Line 231: | Line 235: | ||
====== acceleration ====== | ====== acceleration ====== | ||
- | **[[arma: | + | **[[arma: |
< | < | ||
Line 245: | Line 249: | ||
====== ambient ====== | ====== ambient ====== | ||
- | Float [[ofp: | + | Float [[ofp: |
< | < | ||
Line 269: | Line 273: | ||
====== animPeriod ====== | ====== animPeriod ====== | ||
- | [[ofp: | + | [[ofp: |
This TokenName is generally used inside AnimationSources class (ArmA only). It's use in OFP:R is as follows | This TokenName is generally used inside AnimationSources class (ArmA only). It's use in OFP:R is as follows | ||
Line 301: | Line 305: | ||
armor = 3; // man | armor = 3; // man | ||
armor = 10; // motorcycle | armor = 10; // motorcycle | ||
- | armor = 20; // a small car | + | armor = 20; // a small car |
armor = 15..60; // aircraft | armor = 15..60; // aircraft | ||
armor = 150; // buildings | armor = 150; // buildings | ||
Line 373: | Line 377: | ||
====== audible ====== | ====== audible ====== | ||
[[ofp: | [[ofp: | ||
- | | + | |
< | < | ||
audible = .05; //man | audible = .05; //man | ||
Line 431: | Line 435: | ||
====== C ====== | ====== C ====== | ||
====== ...CanSee ====== | ====== ...CanSee ====== | ||
- | [[ofp: | + | [[ofp: |
- | Used on vehicles that have zoom. | + | Used on vehicles that have zoom. |
1 = Radar;\\ | 1 = Radar;\\ | ||
2 = Eye;\\ | 2 = Eye;\\ | ||
Line 474: | Line 478: | ||
| | ||
| | ||
- | | + | |
</ | </ | ||
Line 547: | Line 551: | ||
< | < | ||
| | ||
- | | + | |
| | ||
| | ||
Line 601: | Line 605: | ||
====== color ====== | ====== color ====== | ||
- | Float [[ofp: | + | Float [[ofp: |
< | < | ||
Line 641: | Line 645: | ||
</ | </ | ||
- | this token is always associated in a weapon or magazine couplet, inside a TransportWeapons, | + | this token is always associated in a weapon or magazine couplet, inside a TransportWeapons, |
TransportMagazines class. | TransportMagazines class. | ||
Line 712: | Line 716: | ||
destrType = " | destrType = " | ||
destrType = " | destrType = " | ||
- | destrType = " | + | destrType = " |
destrType = " | destrType = " | ||
</ | </ | ||
Line 879: | Line 883: | ||
< | < | ||
- | | + | |
{ | { | ||
ambient[] = {0.1, | ambient[] = {0.1, | ||
Line 971: | Line 975: | ||
< | < | ||
- | | + | |
| | ||
0.000000, | 0.000000, | ||
Line 1029: | Line 1033: | ||
====== forceSupply ====== | ====== forceSupply ====== | ||
- | [[ofp: | + | [[ofp: |
< | < | ||
Line 1046: | Line 1050: | ||
</ | </ | ||
- | One or both X Z values are used to keep objects separated (in meters) depending on | + | One or both X Z values are used to keep objects separated (in meters) depending on |
wedge, echelon, V,single line, fomations. | wedge, echelon, V,single line, fomations. | ||
Line 1116: | Line 1120: | ||
< | < | ||
- | class GunClouds: | + | class GunClouds: |
{ | { | ||
| | ||
Line 1189: | Line 1193: | ||
====== gunnerOutOptics... ====== | ====== gunnerOutOptics... ====== | ||
- | **[[arma: | + | **[[arma: |
[[ofp: | [[ofp: | ||
Line 1217: | Line 1221: | ||
====== ...Height ====== | ====== ...Height ====== | ||
- | **[[arma: | + | **[[arma: |
< | < | ||
- | | + | |
| | ||
| | ||
Line 1226: | Line 1230: | ||
====== has... ====== | ====== has... ====== | ||
- | [[ofp: | + | [[ofp: |
< | < | ||
Line 1241: | Line 1245: | ||
====== ...HeadTurnAI ====== | ====== ...HeadTurnAI ====== | ||
- | [[ofp: | + | [[ofp: |
< | < | ||
Line 1251: | Line 1255: | ||
[[ofp: | [[ofp: | ||
- | Here you can define selections on the model, which are not shown at mission startup. This is usefull for creating variations of one model, where the different selections are left out with hiddenSelections. (ex: Soldiers have the hidden selection " | + | Here you can define selections on the model, which are not shown at mission startup. This is usefull for creating variations of one model, where the different selections are left out with hiddenSelections. (ex: Soldiers have the hidden selection " |
- | Aside from this, the hidden selections are used for runtime texture assignment. Every element in the hidden selection-array corresponds to an index, with the first element being 0. | + | Aside from this, the hidden selections are used for runtime texture assignment. Every element in the hidden selection-array corresponds to an index, with the first element being 0. |
< | < | ||
Line 1365: | Line 1369: | ||
insideSoundCoef = 0.05; //air vehicels are 2% | insideSoundCoef = 0.05; //air vehicels are 2% | ||
</ | </ | ||
- | | + | |
====== interval ====== | ====== interval ====== | ||
[[ofp: | [[ofp: | ||
Line 1425: | Line 1429: | ||
isMan = 1; | isMan = 1; | ||
</ | </ | ||
- | + | ||
Defined within the man class | Defined within the man class | ||
Line 1470: | Line 1474: | ||
====== landingSpeed ====== | ====== landingSpeed ====== | ||
- | [[ofp: | + | [[ofp: |
< | < | ||
Line 1487: | Line 1491: | ||
}; | }; | ||
</ | </ | ||
+ | |||
====== M ====== | ====== M ====== | ||
+ | |||
+ | |||
+ | ====== maneuvrability ====== | ||
+ | |||
+ | [[Float]] | ||
+ | |||
+ | Description: | ||
+ | |||
+ | < | ||
+ | manueuvrability=30; | ||
+ | </ | ||
====== magazine ====== | ====== magazine ====== | ||
Line 1503: | Line 1519: | ||
< | < | ||
- | class TransportMagazines | + | class TransportMagazines |
{ | { | ||
- | class _xx_M16 | + | class _xx_M16 |
{ | { | ||
magazine = M16; | magazine = M16; | ||
count = 30*1; | count = 30*1; | ||
}; | }; | ||
- | class _xx_M60 | + | class _xx_M60 |
{ | { | ||
...... | ...... | ||
}; | }; | ||
- | class _xx_PK | + | class _xx_PK |
{ | { | ||
...... | ...... | ||
Line 1530: | Line 1546: | ||
[[ofp: | [[ofp: | ||
- | Used for the map editor to show the [[# | + | Used for the map editor to show the [[# |
There is no x y component to this, the meaurement units are meters. | There is no x y component to this, the meaurement units are meters. | ||
Line 1579: | Line 1595: | ||
max = 60 / 3.6; | max = 60 / 3.6; | ||
</ | </ | ||
- | + | ||
Note for readability, | Note for readability, | ||
Line 1585: | Line 1601: | ||
====== memoryPointExhaust... ====== | ====== memoryPointExhaust... ====== | ||
- | **[[arma: | + | **[[arma: |
< | < | ||
Line 1593: | Line 1609: | ||
====== memoryPointGun ====== | ====== memoryPointGun ====== | ||
- | **[[arma: | + | **[[arma: |
< | < | ||
Line 1600: | Line 1616: | ||
====== memoryPointGunnerOptics ====== | ====== memoryPointGunnerOptics ====== | ||
- | **[[arma: | + | **[[arma: |
< | < | ||
Line 1607: | Line 1623: | ||
====== memoryPointGunnerOutOptics ====== | ====== memoryPointGunnerOutOptics ====== | ||
- | **[[arma: | + | **[[arma: |
< | < | ||
Line 1614: | Line 1630: | ||
====== memoryPoint...Missile ====== | ====== memoryPoint...Missile ====== | ||
- | **[[arma: | + | **[[arma: |
< | < | ||
Line 1622: | Line 1638: | ||
====== memoryPoint...Rocket ====== | ====== memoryPoint...Rocket ====== | ||
- | **[[arma: | + | **[[arma: |
< | < | ||
Line 1692: | Line 1708: | ||
< | < | ||
- | model = " | + | model = " |
</ | </ | ||
Line 1726: | Line 1742: | ||
====== name ====== | ====== name ====== | ||
- | [[ofp: | + | [[ofp: |
< | < | ||
Line 1749: | Line 1765: | ||
< | < | ||
nameSound = crew; | nameSound = crew; | ||
- | nameSound = target; | + | nameSound = target; |
nameSound = tank; | nameSound = tank; | ||
nameSound = house; | nameSound = house; | ||
Line 1809: | Line 1825: | ||
====== ...OpticsColor ====== | ====== ...OpticsColor ====== | ||
Float [[ofp: | Float [[ofp: | ||
- | + | ||
< | < | ||
driverOpticsColor[] = {0,0,0,1}; | driverOpticsColor[] = {0,0,0,1}; | ||
Line 1827: | Line 1843: | ||
====== gunnerOpticsShowCursor ====== | ====== gunnerOpticsShowCursor ====== | ||
[[ofp: | [[ofp: | ||
- | + | ||
< | < | ||
| | ||
Line 1857: | Line 1873: | ||
====== position ====== | ====== position ====== | ||
- | [[ofp: | + | [[ofp: |
< | < | ||
Line 1913: | Line 1929: | ||
====== ...Radius ====== | ====== ...Radius ====== | ||
- | [[ofp: | + | [[ofp: |
Represents a circular area (radius in meters from **centre** of object for action to take place) | Represents a circular area (radius in meters from **centre** of object for action to take place) | ||
Line 1952: | Line 1968: | ||
< | < | ||
- | class ReloadAnimations | + | class ReloadAnimations |
{ | { | ||
class SomeThingA | class SomeThingA | ||
Line 2108: | Line 2124: | ||
In the above example, it is just as useful to declare the base class **private**. But, see below, and see [[# | In the above example, it is just as useful to declare the base class **private**. But, see below, and see [[# | ||
- | Protected classes are CamCreatable in the mission.sqm. | + | Protected classes are CamCreatable in the mission.sqm. |
Protected classes are immensely useful to ' | Protected classes are immensely useful to ' | ||
Line 2206: | Line 2222: | ||
====== sound ====== | ====== sound ====== | ||
- | [[ofp: | + | [[ofp: |
Used by animated objects (campfire eg) to give sound effect. Or, simply by ambients(wolves) | Used by animated objects (campfire eg) to give sound effect. Or, simply by ambients(wolves) | ||
Line 2236: | Line 2252: | ||
< | < | ||
- | | + | |
- | | + | |
| | ||
- | | + | |
| | ||
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | mud[] = | + | mud[] = |
- | | + | |
- | | + | |
- | | + | |
| | ||
- | | + | |
- | | + | |
- | | + | |
| | ||
</ | </ | ||
Line 2270: | Line 2286: | ||
====== Sounds Various ====== | ====== Sounds Various ====== | ||
- | Complex [[ofp: | + | Complex [[ofp: |
All the following use | All the following use | ||
Line 2277: | Line 2293: | ||
| | ||
</ | </ | ||
+ | |||
+ | * 1st parameter: Sound file (path). *.wss is default, *.ogg can be specified. | ||
+ | * 2nd parameter: Change of volume compared to the strongest sound that is audible at the camera' | ||
+ | * 3rd parameter: Speed of playing, 1 = normal speed/time of playing, 2 = 2 times slower, with half lower pitch. | ||
wss is the default. ogg can be specified. | wss is the default. ogg can be specified. | ||
Line 2332: | Line 2352: | ||
# | # | ||
# | # | ||
- | # | + | # |
# | # | ||
# | # | ||
Line 2344: | Line 2364: | ||
</ | </ | ||
- | NEUTRAL is the general case for all objects. | + | NEUTRAL is the general case for all objects. |
NO_SIDE is used for ambient seagulls and wolves (see [[# | NO_SIDE is used for ambient seagulls and wolves (see [[# | ||
Line 2361: | Line 2381: | ||
simulation = airplane, | simulation = airplane, | ||
</ | </ | ||
- | + | ||
__Related TokenName__: | __Related TokenName__: | ||
Line 2540: | Line 2560: | ||
transportMaxMagazines = 2000; | transportMaxMagazines = 2000; | ||
</ | </ | ||
- | + | ||
Values vary depending on exact tupe of ' | Values vary depending on exact tupe of ' | ||
Line 2553: | Line 2573: | ||
transportSoldier = 3; // | transportSoldier = 3; // | ||
transportSoldier = 50; //large ship | transportSoldier = 50; //large ship | ||
- | transportSoldier = 6to10; // | + | transportSoldier = 6to10; //SmallShip |
transportSoldier = 3; //a10 | transportSoldier = 3; //a10 | ||
transportSoldier = 8to12; // | transportSoldier = 8to12; // | ||
Line 2692: | Line 2712: | ||
====== view...Shadow ====== | ====== view...Shadow ====== | ||
- | **[[arma: | + | **[[arma: |
< | < | ||
Line 2709: | Line 2729: | ||
====== weapon ====== | ====== weapon ====== | ||
- | [[ofp: | + | [[ofp: |
< | < | ||
Line 2717: | Line 2737: | ||
Selects a weapon from the CfgWeapons class | Selects a weapon from the CfgWeapons class | ||
- | ====== weapons ====== | + | ====== weapons ====== |
Variable String [[ofp: | Variable String [[ofp: | ||
ofp/modeling/cfgvehicles_configref.1183836410.txt.gz · Last modified: 2007/07/10 09:52 (external edit)