Hit
< Modding | Projectile (modding)Modding/Projectile/Hit
Jump to navigation
Jump to search
.rules
file/node location: Cosmoteer.Bullets.Hits.HitRules
Stores rules for when a bullet hits, is penetrating, or finishes penetrating a ship.
"Bullet" means any projectile.
Inherits nothing.
Name | Type | Required? | Buffable? | Default value | Description |
---|---|---|---|---|---|
HitEffects | MultiHitEffectRules | - | - | - | List of what the projectile does to things it hits. |
HitEffectsScale | float | - | Yes | 1 | Probably a percentage. Looks like scaling via range, or ramp-up, or penetration go through this. |
MediaEffects | MultiMediaEffectRules | - | - | - | List of accompanying visuals, sounds etc. |
MediaEffectsScale | float | - | Yes | 1 | Probably a percentage. Looks like media scaling via range, or ramp-up, or penetration go through this. |
ReduceEffectsByPenetration | bool | - | - | - | Used by cannon bullets, maybe others. |
Bounce | bool | - | - | - | If true, the projectile will bounce on contact with the things filtered by the Hit. In that case the projectile is not destroyed.
E.g. HitFriendly makes it bounce on contact with your ship (presumably allies too). |
FrameOfReference | BulletFrameOfReference | - | - | - | See link. |
Offset | [float, float] | - | - | - | Presumably, this makes the hit happen somewhere else than where it normally would. |
Notes
Nothing yet.
Example mods
Every projectile should have at least one Hit effect, so every mod that adds a projectile is an example.