ProximityAcceleration

From Cosmoteer Wiki
< Modding‎ | Projectile (modding)‎ | Projectile ComponentsModding/Projectile/Components/ProximityAcceleration
Jump to navigation Jump to search
Code location (what's this?): Cosmoteer.Bullets.Physics.BulletProximityAcceleration

Causes a bullet to accelerate towards enemy ships and bullets.

This component makes the projectile move in a direction, more and more over time.

Note that it does not inherit from Acceleration.

Used by mine.

Parameters (Complete list)
Name Type Required? Buffable? Default value Description
Range float Yes Yes - How far out it can detect things to accelerate towards. mine has 15.
Acceleration float Yes Yes - How fast it accelerates towards any eligible target. E.g. 90Can be negative, in which case the projectile goes away instead. This trick is used by mine, with a value of -10.
Falloff - - 1 Presumably reduces the strength of the acceleration proportionally with the distance to the target ; in other words, the farther the target, the less acceleration.
AccelerateTowardsShips bool - - true If true, will seek out ships.
AccelerateTowardsBullets bool - - - If true, will seek out projectiles.
AccelerateTowardsBulletCategories ID<BulletTargetableRules>[]?

meaning :

An array of strings

- - - If AccelerateTowardsBullets is true, what categories of projectiles are concerned.

mine only has [mine] there, meaning mines spread out from each other, ignoring other types of projectile.

AccelerateTowardsFriendlies bool - - - -
AccelerateTowardsEnemies bool - - true If true, will seek out enemies.

Notes

Nothing yet.