WeaponClass
Classlabel: "weapon"
Class Tree: Entity->Weapon
Description:
Weapon Class is the root class for all Weapons. The ODF files for WeaponClass ODFs traditionally start with "g" for Gun.
ODF Properties:
Class Tree: Entity->Weapon
Description:
Weapon Class is the root class for all Weapons. The ODF files for WeaponClass ODFs traditionally start with "g" for Gun.
ODF Properties:
-
[WeaponClass]
altName = ""
ordName = ""
fireSound = ""
flashName = ""
flashTime = 0.0f
wpnName = ""
wpnIcon = ""
wpnReticle = ""
wpnCategory = ""
-
GUN
-
CANN
-
ROCK
-
MORT
-
SPEC
-
SHIE
-
HAND
- PACK
isAssault = false
isFlying = false
needLOS = true
AllowAimHigh = true
canSelect = true
Note: ShieldUpgradeClass defaults to false.
ShowShotsRemaining = true
aiRange = ordnance Range.
Note: The Default for some Classes are: TorpedoLauncher: 120.0f, SpecialItemClass: 10.0f, RadarLauncherClass: 120.0f, MortarClass: 100.0f, DispenserClass: 50.0f
Note: If there is a valid ordName, this property does not Inherit from classLabel ODF, it uses the ordnance lifetime instead of root ODF's property.
localAmmo = 0
addLocalAmmo = 0
LeadPositionMinTime = 0.0f
LeadPositionMaxTime = 60.0f
MinOwnerLifetimeSeconds = -1.0f
MaxOwnerLifetimeSeconds = -1.0f
AllowedOwnerStateMask = 15
-
1 = Undeployed
-
2 = Deploying
-
4 = Deployed
- 8 = Undeploying
CouldHit = true
AllowOffmapFiring = false
Weapon Visual Mesh.
If this is specified, and there is a visualHard on the Weapon Hard point, this is the model that is attached there. Used by Pilot weapons for their external and cockpit geometry, but can be applied to any weapon.
geometryName = ""
geometryScale = 1.0f
Note: Skinned meshes do not scale well.
animCount = 0
animName1 ... animName# = ""
animFile1 ... animFile# = ""
Note: You can use .XSI files with a .FBX geometryName, as long as the hierarchy matches.
cockpitName = ""
cockpitScale = 1.0
animCountCockpit = 0
animNameCockpit1 ... animNameCockpit# = ""
animFileCockpit1 ... animFileCockpit# = ""
Note: You can use .XSI files with a .FBX cockpitName, as long as the hierarchy matches. -
GUN