mod参数/projectile

来自RustedWarfare Wiki
life:
描述"How long till this projectile gets removed if it hasn't hit a target, 300 might be a good starting point, change depending on speed and range"
deflectionPower:
float
描述Defaults to 1. Energy needed for laser defence to deflect. -1 to disable deflection (only disable for special weapons like flames)
explodeOnEndOfLife
bool
描述Default to false. True to explode at end of life with all side effects and area damage instead of disappearing. Good for making area-denial weapons.
autoTargetingOnDeadTarget:
bool
描述Retarget to nearby unit if target dies while in transit
autoTargetingOnDeadTargetRange
int
描述The range which it will select a new target if old target has died
autoTargetingOnDeadTargetLead
float
描述The lead it will try to have on the new target
unloadUpToXUnitsFromSource
int
描述"Unload X units from source unit, to projectile explode location"
teleportSource
bool
描述Move unit that shot this projectile to projectile explode location
spawnUnit
unit types
描述Spawn new units of this type at projectile explode location
spawnProjectilesOnEndOfLife
projectile ref
描述"Spawns new projectiles on end of life, useful for secondary projectiles"
spawnProjectilesOnExplode
projectile ref
描述Projectiles to spawns when this projectile hits it's target
spawnProjectilesOnCreate
描述"Spawns projectiles on creation of this projectile, useful for making true shotgun-like projectile spread"
convertHitToSourceTeam
bool
描述Convert units hit to the team that fired this projectile. Useful to make capturing systems
tags
tags
描述Useful for projectile interceptions (e.g. Nuke and Anti-Nuke Interaction)
flameWeapon:
bool
描述Generates small flames on hit (only cosmetic)
delayedStartTimer
float
描述Hide for x time before showing and updating effect.
directDamage:
int
描述Damage to target unit on hit. Does not work with targetGround:true as it won't have a clear unit to target
areaDamage:
int
描述"Damages on arrival of target with an area effect, use areaRadius to adjust size of damage. targetGround needs this to damage"
areaRadius:
float
描述How wide areaDamage effects. Note this drops off (unless areaDamageNoFalloff is used)
areaDamageNoFalloff
bool
描述Removes the falloff from areaDamage
areaRadiusFromEdge
bool
描述Applies damage from edge of units instead of center. Mostly effects large units.
areaExpandTime
float
描述Applies area damage as an expanding blast wave rather than instantly. Useful for nuke projectiles
areaHitAirAndLandAtSameTime
bool
描述Defaults to false
areaHitUnderwaterAlways
bool
描述Defaults to false
areaIgnoreUnitsCloserThan
int
描述Units closer than this range aren't effected. Rarely needed. Not recommended for normal projectiles.
buildingDamageMultiplier
float
描述Defaults to 1
shieldDamageMultiplier
float
描述Defaults to 1. 0 to do no damage to shields and 2 to do double damage
shieldDefectionMultiplier
float
描述Defaults to 1. The amount of shield to bypass. 0 to ignore shields and directly damage hull
hullDamageMultiplier
float
描述Defaults to 1. Can be used to create EMP weapons that affect shields only. 0 to ignore hull and only damage shields
ignoreParentShootDamageMultiplier
bool
描述Sets whether multipliers are applied or not regardless of multipliers set in attack or setUnitStats
armourIgnoreAmount
int
描述Amount of armour to ignore on target and do damage as if this armour was not there
friendlyFire
bool/string
描述Lets area effect projectiles damage own team units (can't damage allies). Useful for nuke-like weapons
mutatorX_ifUnitWithTags
tags
描述Applies mutators to this projectile if target has corresponding tags
mutatorX_ifUnitWithoutTags
tags
描述"Same as ifUnitWithTags, but applies if target doesn't have the set tags"
mutatorX_directDamageMultiplier
float
描述Changes directDamage. Defaults to 1. Be careful not to confuse players using this as the effect may not be clear. Use amour instead when possible. Replace X with desired name
mutatorX_areaDamageMultiplier
float
描述Same as directDamageMultiplier but for areaDamage. Defaults to 1.
mutatorX_changedExplodeEffect
effect
描述Change explode effect if this mutator is active. Eg make a bounce off amour effect. Helps to make the damage change more clear to players (Doesn't work with targetGround.)
mutatorX_addResourcesDirectHit
resource
描述Add resource to all direct hit units. Warning: Be careful not be break units from other mods by adding random resources or energy to them that they don't expect.
mutatorX_addResourcesAreaHit
resource
描述Add resource to all area hit units. Warning: Be careful not be break units from other mods by adding random resources or energy to them that they don't expect.
targetGround
bool
描述"Target ground, and don't home in on target. Note: only areaDamage is applied if targeting ground."
targetGround_includeTargetHeight
bool
描述Default false. for area affect AA weapons
targetGroundHeightOffset
float
描述Default 0. for shooting over or under a target. Useful for projectiles that split and rain down.
speed:
float
描述Projectile default travel speed
targetSpeed:
float
描述Accelerate to this speed
targetSpeedAcceleration
float
描述Controls the speed rampup for targetSpeed
ballistic:
bool
描述"Makes projectiles fly up into the air and come down, instead of going in a straight line"
ballistic_delaymove_height:
float
描述Sets up to how high the rise is delayed before completing the curve
ballistic_height:
float
描述Sets the height of the ballistic curve of the projectile
targetGroundSpread:
float
描述Randomly makes the shot inaccurate by this amount. Also used by weapons like the flamethrower
speedSpread:
float
描述Randomly change the starting projectile speed by this amount
instant
bool
描述Hit target instantly
instantReuseLast:
bool
描述"Recycles last projectile fired, only one projectile ever exists. Can turn lasers into beam weapons by using lower rate of fire and setting this to true"
instantReuseLast_alsoChangeTurretAim
bool
描述"Make turret's aim include last projectile's spread and sweep offsets, useful for beam weapons"
instantReuseLast_keepAreaDamageList
bool
描述Default false. Keeping the list was the normal behaviour in 1.13 making area damage not apply a second time but this is not useful. Use this only if you want the old behaviour.
interceptProjectile_removeTargetLifeOnly
bool
描述Defaults to false. When false projectiles are just removed. Could be true to make hit projectiles explode or split when hit
disableLeadTargeting
bool
描述Disable the lead targeting calculations when aiming at a moving target. Defaults false.
leadTargetingSpeedCalculation
float
描述The expected speed of this projectile for targetGround lead target calculation. Defaults to 'targetSpeed' if set otherwise 'speed'.
initialUnguidedSpeedHeight
描述Sets vertical speed for projectiles with targetGround. Use gravity to make smooth arching projectiles. Better have gravity value slightly slower than this key to produce the arches.
gravity:
描述Controls the pull for projectiles that target ground. Use together with initialUnguidedSpeedHeight
turnSpeed
float
描述"Limits the turn speed of a projectile, making them inaccurate even with directDamage. Zero value will make it act like if targetGround is set true, but air target friendly option."
wobbleAmplitude
float
描述How wide the projectile will wobble
wobbleFrequency
float
描述How often the projectile will wobble
pushForce
float
描述Push (or pull with a negative value) the units that get hit. Divided by target mass
pushVelocity
float
描述Push (or pull with a negative value) the units that get hit. Ignores target mass
moveWithParent
bool
描述Move projectile as parent moves. Useful for beam effects that need to stick to source turret.
sweepOffset
float
描述Useful for beam effects.
sweepOffsetFromTargetRadius
float
描述Add to sweep offset by factor of target's radius. 0.4 would be 40%
sweepSpeed
float
描述Useful for beam effects.
retargetingInFlight
bool
描述"Can retarget a new target mid-flight, perfect for flak-style weapons and projectiles that collide"
retargetingInFlightSearchDelay
float/time
描述How long between searching for new targets. Default 5
retargetingInFlightSearchRange
int
描述Range which targets are reselected. Default 120
retargetingInFlightSearchLead
float
描述The lead of the projectile to try to hit the target. Default 15
retargetingInFlightSearchOnlyTags
tag ref
描述Only retarget units with these tags
color
color
描述Recolors this projectile using a hex value.
invisible
bool
描述"When true, the projectile is not rendered but still functional."
image:
file (image)
描述Use custom image. Overrides drawType and frame
drawType
int
描述Built-in image to use. 0:projectiles.png 1:projectiles_large.png 2:projectiles2.png. Refer to end of sheet for the projectile images.
drawSize:
float
描述Scale image. Defaults to 1
frame
int
描述"Built-in image frame to use, starts at zero."
hitSound:
bool
描述Default true
explodeEffect
effect ref list
描述Produces the specified effects upon explosion.
explodeEffectOnShield
effect ref list
描述Use this effect if shield is active on target
teamColorRatio
float
描述Mix 0-1 of team colour into color field
teamColorRatio_sourceRatio
float
描述default is (1-teamColorRatio). Keep more of color when mixing. Note this might saturate colors.
drawUnderUnits
bool
描述"If true, renders the projectile under units. Great for torpedos."
effectOnCreate
effect ref list
描述Produces specified effects upon creation of the projectile.
shouldRevealFog
bool
描述Reveal fog to player on explode
alwaysVisibleInFog
bool
描述Renders the projectile even when fog is present
nukeWeapon
bool
描述"Shows on mini-map when fired. Some other side effects as well, like nuke explosion effect"
trailEffect
bool/effect
描述"true for built-in defaults, but can also point to any custom effects"
trailEffectRate
float
描述Defaults to 3
lightCastOnGround
bool
描述Renders light under the projectile
lightSize:
float
描述lightSize: 1.5
lightColor
color
描述Sets the color of the light emitted by the projectile.
largeHitEffect:
bool
描述Creates a large explosion and accompanying sound on hit (only cosmetic)
lightingEffect:
bool
描述Draw as lighting works best with instant:true
laserEffect:
bool
描述Draw as laser works best with instant:true
beamImage
file (image)
描述"Image to use for beam and laser effect type projectiles. Image is repeated vertically depending on the distance to target. Beam image should be 20 pixels or longer. Width does not matter, only the height."
beamImageOffsetRate
float
描述Sets how fast the beam image moves towards or away from the target
beamImageStart
file (image)
描述Sprite for the origin point of the custom beam
beamImageStartRotated
bool
描述Defaults false. True to rotate with turret angle
beamImageEnd
file (image)
描述Sprite for the end point of the custom beam
beamImageEndRotated
bool
描述Defaults false