RangedObjectAffector

Does not require an Ordnance file.

Gives the owner the ability to cause effects in an area, which also affect the owner. The weapon is toggleable by default and drains specialEnergyCost per second.

Effects of this weapon apply until no RangedObjectAffector in range is active, regardless of which RangedObjectAffector is active.

Does not use shotDelay command or hitChance (never misses) ODF command.

Note that range works differently for this Weapon. 'WeaponEffectRadius' (not a real command) by default is 400. The Range ODF command adds its value to that of the WeaponEffectRadius. Values greater than 0 increase the effect radius, values less than 0 decrease the effect radius.

classlabel = "rangedobjectaffector"

Stock ODF Commands

affectorType

Determines the effect of the weapon.

0 = Allows affected units to fire while cloaked.
1 = Increases the damage of the weapons of affected units.
2 = Sensor scrambler - causes weapon fire directed at affected units to miss.

percentReduction

Float, Default: 1.0

Modifies the hitChance of ordnance targeted at the Craft in the area of effect by this fraction if affectorType = 2 . Negative and positive values have an effect.

damageFactor

Float, Default: 1.0

Modifies the amount of damage dealt by allied Craft by this fraction if affectorType = 1. Negative and positive values have an effect.

rangeFactor

Float, Default: 1.0

Modifies the range of the weapons by this fraction when affectorType = 1.

Values beyond an affected Craft's rangeScan will cause weapons fire to always miss the target.

cycleColorRed

Float, Default: 1.0

Sets the intensity of the color change cycles of units affected by the waves from this weapon. Each cyclecolor command may be used in tandem with the others.

cycleColorGreen

Float, Default: 1.0

Sets the intensity of the color change cycles of units affected by the waves from this weapon. Each cyclecolor command may be used in tandem with the others.

cycleColorBlue

Float, Default: 1.0

Sets the intensity of the color change cycles of units affected by the waves from this weapon. Each cyclecolor command may be used in tandem with the others.

wave_Effect

String, Default: "WeaponEnhancerWave" *

* Limited to 24 characters. Determines which Explosion ODF is used. Must be a valid Explosion ODF or the game will crash.

timeBetween

Float, Default: 0.0

Determines the time in seconds between Explosions from wave_effect. Note that weapon gameplay effects are only turned on or off with the weapon's toggle.