arma3:config:ravendk-vest-config-example
Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | arma3:config:ravendk-vest-config-example [2024/08/02 15:05] (current) – links added. snakeman | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== ArmA 3 Vest Model Config Example ====== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | **ArmA 3 Vest Model Config Example** by RavenDK | ||
+ | |||
+ | model.cfg | ||
+ | <code cpp> | ||
+ | class CfgSkeletons | ||
+ | { | ||
+ | class Default | ||
+ | { | ||
+ | isDiscrete = 1; | ||
+ | skeletonInherit = ""; | ||
+ | skeletonBones[] = {}; | ||
+ | }; | ||
+ | class OFP2_ManSkeleton | ||
+ | { | ||
+ | isDiscrete = 0; | ||
+ | skeletonInherit = ""; | ||
+ | skeletonBones[] = | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | //Head skeleton in hierarchy | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | //New facial features | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | //Left upper side | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | //Right upper side | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | //Left lower side | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | //Right lower side | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }; | ||
+ | // location of pivot points (local axes) for hierarchical animation | ||
+ | pivotsModel=" | ||
+ | }; | ||
+ | }; | ||
+ | |||
+ | class CfgModels | ||
+ | { | ||
+ | class Default | ||
+ | { | ||
+ | sectionsInherit=""; | ||
+ | sections[] = {}; | ||
+ | skeletonName = ""; | ||
+ | }; | ||
+ | class ArmaMan : Default | ||
+ | { | ||
+ | htMin = 60; // Minimum half-cooling time (in seconds) | ||
+ | htMax = 1800; // Maximum half-cooling time (in seconds) | ||
+ | afMax = 30; // Maximum temperature in case the model is alive (in celsius) | ||
+ | mfMax = 0; // Maximum temperature when the model is moving (in celsius) | ||
+ | mFact = 1; // Metabolism factor - number from interval <0, 1> (0 - metabolism has no influence, 1 - metabolism has full influence (no other temperature source will be considered)). | ||
+ | tBody = 37; // Metabolism temperature of the model (in celsius) | ||
+ | |||
+ | sections[] = | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | }; | ||
+ | skeletonName = " | ||
+ | }; | ||
+ | |||
+ | class NameOfVest : ArmaMan {}; // the .p3d name | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | config.cpp | ||
+ | <code cpp> | ||
+ | class cfgWeapons | ||
+ | { | ||
+ | class ItemCore; | ||
+ | class InventoryItem_Base_F; | ||
+ | class HeadgearItem; | ||
+ | class Uniform_Base; | ||
+ | class UniformItem; | ||
+ | class Vest_Base; | ||
+ | class VestItem; | ||
+ | |||
+ | class U_DDAM_Vest: | ||
+ | { | ||
+ | scope = 2; | ||
+ | displayName = "Name Your Vest"; | ||
+ | picture = " | ||
+ | model = " | ||
+ | |||
+ | class ItemInfo: VestItem | ||
+ | { | ||
+ | uniformModel = " | ||
+ | containerClass = " | ||
+ | mass = 50; | ||
+ | armor = " | ||
+ | passThrough = 0.7; // how much the vest stops a bullet going through | ||
+ | }; | ||
+ | }; | ||
+ | }; | ||
+ | </ | ||