2023-12-27 19:51:58 -08:00
|
|
|
[ship."Gypsum"]
|
2024-01-04 22:17:34 -08:00
|
|
|
sprite = "ship::gypsum"
|
2023-12-26 22:21:18 -08:00
|
|
|
size = 100
|
2023-12-30 16:57:03 -08:00
|
|
|
mass = 1
|
2023-12-29 12:21:56 -08:00
|
|
|
hull = 200
|
2023-12-30 17:51:57 -08:00
|
|
|
linear_drag = 0.2
|
|
|
|
angular_drag = 0.2
|
2023-12-26 22:21:18 -08:00
|
|
|
|
2024-01-05 18:04:30 -08:00
|
|
|
# TODO: disable
|
|
|
|
# TODO: damage effects
|
|
|
|
|
2023-12-30 21:05:06 -08:00
|
|
|
space.outfit = 200
|
|
|
|
space.engine = 50
|
|
|
|
space.weapon = 50
|
|
|
|
|
2023-12-28 20:19:33 -08:00
|
|
|
engines = [{ x = 0.0, y = -1.05, size = 50.0 }]
|
|
|
|
guns = [{ x = 0.0, y = 1 }, { x = 0.1, y = 0.80 }, { x = -0.1, y = 0.80 }]
|
2023-12-30 10:58:17 -08:00
|
|
|
|
2024-01-05 18:04:30 -08:00
|
|
|
|
2024-01-07 12:15:34 -08:00
|
|
|
# Show these once we've been reduced to this much hull
|
|
|
|
damage.hull = 190
|
|
|
|
# Spawn this effect once every n seconds, on average
|
|
|
|
damage.effects = [
|
|
|
|
{ effect = "blue spark", frequency = 3 },
|
|
|
|
{ effect = "yellow spark", frequency = 1 },
|
|
|
|
]
|
|
|
|
|
|
|
|
|
2024-01-05 18:04:30 -08:00
|
|
|
# Length of death sequence, in seconds
|
|
|
|
collapse.length = 5.0
|
|
|
|
|
|
|
|
# Effects to create during the collapse sequence.
|
|
|
|
# On average, `count` will be spawned over the sequence,
|
|
|
|
# with a distribution of (x^2 + 0.1)
|
|
|
|
collapse.effects = [
|
|
|
|
{ effect = "small explosion", count = 30 },
|
|
|
|
{ effect = "large explosion", count = 5 },
|
|
|
|
]
|
|
|
|
|
|
|
|
|
2024-01-05 13:25:44 -08:00
|
|
|
collision = [
|
2023-12-30 10:58:17 -08:00
|
|
|
#[rustfmt:skip],
|
|
|
|
[0.53921, 1.0000],
|
|
|
|
[0.53921, 0.29343],
|
|
|
|
[0.63725, 0.29343],
|
|
|
|
[0.63725, -0.03088],
|
|
|
|
[0.90019, -0.03088],
|
|
|
|
[0.90019, -0.61776],
|
|
|
|
[0.66666, -0.61776],
|
|
|
|
[0.66666, -0.86486],
|
|
|
|
[0.24509, -0.86486],
|
|
|
|
[0.24509, -1.00000],
|
|
|
|
|
|
|
|
[-0.24509, -1.00000],
|
|
|
|
[-0.24509, -0.86486],
|
|
|
|
[-0.66666, -0.86486],
|
|
|
|
[-0.66666, -0.61776],
|
|
|
|
[-0.90019, -0.61776],
|
|
|
|
[-0.90019, -0.03088],
|
|
|
|
[-0.63725, -0.03088],
|
|
|
|
[-0.63725, 0.29343],
|
|
|
|
[-0.53921, 0.29343],
|
|
|
|
[-0.53921, 1.0000],
|
|
|
|
]
|
2024-01-05 18:04:30 -08:00
|
|
|
|
|
|
|
|
|
|
|
# Scripted explosion
|
|
|
|
[[ship."Gypsum".collapse.event]]
|
2024-01-06 14:00:56 -08:00
|
|
|
time = 4.9
|
2024-01-05 18:04:30 -08:00
|
|
|
effects = [
|
|
|
|
#[rustfmt:skip],
|
|
|
|
{ effect = "small explosion", count = 8 },
|
|
|
|
{ effect = "large explosion", count = 5 },
|
|
|
|
{ effect = "huge explosion", count = 1, pos = [0, 0] },
|
|
|
|
{ effect = "huge explosion", count = 4 },
|
|
|
|
]
|
|
|
|
|
|
|
|
# Scripted explosion
|
|
|
|
[[ship."Gypsum".collapse.event]]
|
|
|
|
time = 0.0
|
|
|
|
effects = [
|
|
|
|
#[rustfmt:skip],
|
|
|
|
{ effect = "small explosion", count = 3 },
|
|
|
|
{ effect = "large explosion", count = 1 },
|
|
|
|
]
|
|
|
|
|
|
|
|
# Play a sprite reel (or change sprite)
|
|
|
|
#[[ship."Gypsum".death.collapse.event]]
|
|
|
|
#time = 10.0
|
|
|
|
#reel = "gypsum post-death"
|
|
|
|
|
|
|
|
# Create debris
|
|
|
|
#[[ship."Gypsum".death.collapse.event]]
|
|
|
|
#time = "end"
|
|
|
|
#physics = "inherit"
|
|
|
|
# OR (relative to original rigidbody)
|
|
|
|
#physics.position = [0, 0]
|
|
|
|
#physics.velocity = [0, 0]
|
|
|
|
#physics.angle = 0
|
|
|
|
#physics.angvel = 0
|
|
|
|
#debris = "debris"
|
|
|
|
|
|
|
|
# Burning, interactable, destructible debris
|
|
|
|
#[debris]
|
|
|
|
#effects = [{ type = "small explosion", count = 10 }]
|