Drones
Does not require an Ordnance file.
Sends workerBees which move to the target, circling around it and dealing damage (damage is also dealt as the drones move to the target). The workerBees return to the owner unit after the weapon's effect ends. If the target is destroyed before the drones get to it, the drones will fly off and not return.
Note that the Weapon (if special = 1) must have needTarget = 1, otherwise it will not be useable.
Does not use shotDelay or hitChance (never misses) ODF commands.
classlabel = "drones_weapon"
Stock ODF Commands
numDrones
Integer, Default: 0
How many drones are deployed when the weapon is fired.
duration
Float, Default: 0.0
The time in seconds that the weapon effect lasts.
damageBase
Float, Default: 0.0, Pair Array
Determines the base amount of damage dealt by this weapon.
damageBase = 100
"monsoon.odf" 50.5
damageVariance
Float, Default: 0.0, Pair Array
Sets the random variation in damage per shot as defined by damageBase plus or minus the damageVariance.
damageVariance = 10
"monsoon.odf" 3
"shrike.odf" 4.4
damageThreshold
Float, Default: 0.0, Pair Array
The damage threshold per shot which must be exceeded to cause crew casualties prior to shield exhaustion.
Note that this command is affected by the RTS_CFG.h SHIELD_DAMAGE_PROTECTION command and by the Craft shieldProtection ODF command: if the Craft is fully protected by its shields, damageThreshold will have no effect.
damageThreshold = 60
"neghvarY.odf" 100
shieldCrewModifer
Float, Default: 0.0, Pair Array
The modifier, by which any damage which exceeds the damageThreshold is multiplied by, to calculate the fraction of crew lost with that hit.
The amount of crew that is killed is calculated by the following equation: ( damageBase - damageThreshold ) * shieldCrewModifier = percent of crew killed (1.0 = 1.0%)
Note that this command is affected by the RTS_CFG.h SHIELD_DAMAGE_PROTECTION command and by the Craft shieldProtection ODF command: if the Craft is fully protected by its shields, shieldCrewModifier will have no effect.
shieldCrewModifier = 0.2
"outpostY.odf" 0.05
hullCrewModifier
Float, Default: 0.0, Pair Array
The modifier, by which any damage which is applied to the hull is multiplied by, to calculate the fraction of crew lost with that hit.
The amount of crew that is killed is calculated by the following equation: damageBase * hullCrewModifier = percent of crew killed (1.0 = 1.0%)
hullCrewModifier = 0.05
"outpostY.odf" 0.03
weldingBeamSprite
String, Default: "phaser"
The name of the sprite used for the welding beam from the drones. No file extension required.
weldingBeamWidth
Float, Default: 0.0
The width of the weapon effect from the drones.
workerBeeName
String, Default: "fbee"
The name of the model used for the drones. No file extension required.