BulletTargetableRules
Modding/Projectile/BulletTargetableRules
Jump to navigation
Jump to search
Code locations (what's this?):
• Cosmoteer.Bullets.Targeting.BulletTargetable
• Cosmoteer.Bullets.Targeting.BulletTargetableRules
Makes a bullet targetable by weapons.
Alias Targetable.
"Bullet" means any projectile. If one does not have this, it cannot be shot down by point defense weapons.
Inherits from BaseBulletDeath.
Presumably used by all targetable projectiles. Also used to scale some effects.
| Name | Type | Required? | Buffable? | Default value | Description |
|---|---|---|---|---|---|
| Health | int | Yes | Yes | - | How much damage must be received before this projectile is destroyed. |
| TargetCategory | ID<BulletTargetableRules>? | - | - | - | This isn't an infinite loop. Rather, it's an arbitrary string that can then be used in a point defense weapon to allow it to shoot down this category of projectile.
The base game has 4 values : |
| ExplosiveDamageAbsorption | Float | - | Yes | 1 | |
| DamageResistances | Dictionary<Cosmoteer.Data.ID<DamageType>, Range<BuffableFloat>>meaning : | - | - | - | A list of resistances paired with their amount. |
Notes
The buffable values here allow you to modify a projectile's durability.
Examples
bullet_deck :
Targetable
{
Type = Targetable
Health = 3000
TargetCategory = "bullet"
OnDeath
{
MediaEffects = &~/Components/Hit/HitOperational/MediaEffects
}
}