arma2:terrain:class_names
Differences
This shows you the differences between two versions of the page.
Previous revisionLast revision | |||
— | arma2:terrain:class_names [2012/09/03 08:13] – added locations summary header. snakeman | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Class Names ====== | ||
+ | Class Names **Types** | ||
+ | |||
+ | In terrains you can name locations / positions, usually cities and other important populated places. Also these locations can help scripts to find out flat areas and such. | ||
+ | |||
+ | These are in your terrain' | ||
+ | <code cpp> | ||
+ | class Names | ||
+ | { | ||
+ | class city_Chernogorsk | ||
+ | { | ||
+ | name = " | ||
+ | position[] = | ||
+ | { | ||
+ | 6731.21, 2554.13 | ||
+ | }; | ||
+ | type = " | ||
+ | speech[] = | ||
+ | { | ||
+ | " | ||
+ | }; | ||
+ | radiusA = 300.0; | ||
+ | radiusB = 300.0; | ||
+ | angle = 0.0; | ||
+ | }; | ||
+ | class city_Elektrozavodsk | ||
+ | { | ||
+ | name = " | ||
+ | position[] = | ||
+ | { | ||
+ | 10313.72, | ||
+ | }; | ||
+ | type = " | ||
+ | speech[] = | ||
+ | { | ||
+ | " | ||
+ | }; | ||
+ | radiusA = 200.0; | ||
+ | radiusB = 200.0; | ||
+ | angle = 0.0; | ||
+ | }; | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Config Class Prefixes ====== | ||
+ | |||
+ | BIS uses config class name prefixes like: AAirport_, ACityC_, AFlat_, AFlatC_, AFlatCS_, airport_, AStrong_, city_, hill_, local_ (and Local_ but I don't think case matters?), V_ (vegetation), | ||
+ | |||
+ | |||
+ | ====== Name ====== | ||
+ | |||
+ | Name is simply the text string of the name of this location. | ||
+ | <code cpp> | ||
+ | name = " | ||
+ | </ | ||
+ | In this Chernarus example it uses stringtable to pull the name string so it can automatically translate it to different languages etc. | ||
+ | |||
+ | |||
+ | ====== Position ====== | ||
+ | |||
+ | Position is normal 2D coordinate for this location. | ||
+ | <code cpp> | ||
+ | position[] = | ||
+ | { | ||
+ | 5300.71, 8645.9 | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Type ====== | ||
+ | |||
+ | ArmA class names types: | ||
+ | <code cpp> | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | </ | ||
+ | |||
+ | ArmA 2 class names types: | ||
+ | <code cpp> | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | type = " | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Speech ====== | ||
+ | |||
+ | <code cpp> | ||
+ | speech[] = | ||
+ | { | ||
+ | " | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Neighbors ====== | ||
+ | |||
+ | <code cpp> | ||
+ | neighbors[] = | ||
+ | { | ||
+ | " | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Demography ====== | ||
+ | |||
+ | <code cpp> | ||
+ | demography[] = | ||
+ | { | ||
+ | " | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Radius ====== | ||
+ | |||
+ | These locations also are affiliated with radius to define the size, they are **radiusA** and **radiusB**. | ||
+ | <code cpp> | ||
+ | radiusA = 100; | ||
+ | radiusB = 100; | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Angle ====== | ||
+ | |||
+ | <code cpp> | ||
+ | angle = 305.903; | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Locations Summary ====== | ||
+ | |||
+ | **class names locations** | ||
+ | |||
+ | * CityCenter with neighbors array | ||
+ | * StrongpointArea around the city on defensive manner, 3-5 or so. | ||
+ | * FlatAreaCity one in the center of the city if possible, but any FLAT area will do. | ||
+ | * FlatAreaCitySmall in the city, flat areas, 1-3 about. | ||
+ | * FlatArea is area for placing bases/camps etc no nearby objects and flat surface if possible. | ||
+ | |||
+ | |||
+ | |||
+ | ====== Notes ====== | ||
+ | |||
+ | See also [[arma2: |
arma2/terrain/class_names.txt · Last modified: 2024/08/02 08:44 by snakeman