Galactica/content/guns.toml

42 lines
1.2 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
2024-01-03 13:19:10 -08:00
# TODO: apply force on fire
2023-12-30 11:25:51 -08:00
projectile.sprite_texture = "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
projectile.impact.texture = "particle::blaster"
projectile.impact.lifetime = "inherit"
projectile.impact.inherit_velocity = "target"
projectile.impact.size = 3.0
projectile.expire.texture = "particle::blaster"
projectile.expire.lifetime = "inherit"
projectile.expire.inherit_velocity = "projectile"
projectile.expire.size = 3.0