Galactica/content/guns.toml

38 lines
1.1 KiB
TOML
Raw Normal View History

2023-12-27 20:13:39 -08:00
[gun."blaster"]
2023-12-28 17:04:41 -08:00
2023-12-30 21:05:06 -08:00
space.weapon = 10
2023-12-28 17:04:41 -08:00
# Average delay between shots
rate = 0.2
2024-01-03 13:19:10 -08:00
# Random rate variation (each cooldown is +- this)
2023-12-28 17:04:41 -08:00
rate_rng = 0.1
# TODO: apply force to ship on fire
projectile.sprite = "projectile::blaster"
2023-12-28 17:04:41 -08:00
# Height of projectile in game units
2024-01-03 07:46:27 -08:00
projectile.size = 6
2023-12-28 17:04:41 -08:00
projectile.size_rng = 0.0
# Speed of projectile, in game units/second
2023-12-27 20:13:39 -08:00
projectile.speed = 300
2023-12-28 17:04:41 -08:00
projectile.speed_rng = 10.0
# Lifetime of projectile, in seconds
2023-12-27 20:13:39 -08:00
projectile.lifetime = 2.0
2023-12-28 17:04:41 -08:00
projectile.lifetime_rng = 0.2
projectile.damage = 10.0
2024-01-01 15:41:47 -08:00
# Random variation of firing angle.
# If this is 0, the projectile always goes straight.
# If this is 10, projectiles will form a cone of 10 degrees
# ( 5 degrees on each side )
projectile.angle_rng = 2
2024-01-03 13:19:10 -08:00
# How much force this projectile will apply to an object it hits
projectile.force = 0.0
projectile.collider.ball.radius = 2.0
2024-01-05 19:56:32 -08:00
projectile.impact_effect = "blaster impact"
2024-01-03 13:19:10 -08:00
2024-01-05 12:09:59 -08:00
projectile.expire_effect.sprite = "particle::blaster"
projectile.expire_effect.lifetime = "inherit"
projectile.expire_effect.inherit_velocity = "projectile"
projectile.expire_effect.size = 3.0