mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-19 21:46:42 +00:00
* Makes the explosive compressor and blastcannon actually use the TTVs they're given + the explosion changes to support that. (#58015) * Adds explosion SFX to the blastcannon and explosive compressor - Extracts the explosion SFX and screenshake proc from the SSexplosions explosion handling proc and lets the explosive compressor and blastcannon use it. * Miscellaneous changes - Adds defines for the internal explosion arglist keys - Reverses the values of the explosion severity defines - Changes almost everything that uses `/proc/explosion` to use named arguments - Removes a whole bunch of argname = 0 in explosion calls. * Removes named callback arguments. * Changes the explosion signals to just use the arguments list Adds a simple framework to let objects respond to explosions occurring inside of them. Changes a whole bunch of explosions to use the object being exploded as the origin of the explosion rather than the turf the object is on. Makes the explosive compressor and blastcannon actually use the TTVs they are given. Adds support for things responding to internal explosions. Less snowflake code for the explosive compressor and blastcannon calculating bomb range.* Less confusing explosion severity defines. Less opaque explosion arguments *does not guarantee that the solution to letting them actually use the TTV is any less snowflake. * Makes the explosive compressor and blastcannon actually use the TTVs they're given + the explosion changes to support that. Co-authored-by: TemporalOroboros <TemporalOroboros@gmail.com>
33 lines
1.7 KiB
Plaintext
33 lines
1.7 KiB
Plaintext
// The severity of explosions. Why are these inverted? I have no idea, but git blame doesn't go back far enough for me to find out.
|
|
/// The (current) highest possible explosion severity.
|
|
#define EXPLODE_DEVASTATE 3
|
|
/// The (current) middling explosion severity.
|
|
#define EXPLODE_HEAVY 2
|
|
/// The (current) lowest possible explosion severity.
|
|
#define EXPLODE_LIGHT 1
|
|
/// The default explosion severity used to mark that an object is beyond the impact range of the explosion.
|
|
#define EXPLODE_NONE 0
|
|
|
|
// Internal explosion argument list keys.
|
|
// Must match the arguments to [/datum/controller/subsystem/explosions/proc/propagate_blastwave]
|
|
/// The origin atom of the explosion.
|
|
#define EXARG_KEY_ORIGIN "origin"
|
|
/// The devastation range of the explosion.
|
|
#define EXARG_KEY_DEV_RANGE STRINGIFY(devastation_range)
|
|
/// The heavy impact range of the explosion.
|
|
#define EXARG_KEY_HEAVY_RANGE STRINGIFY(heavy_impact_range)
|
|
/// The light impact range of the explosion.
|
|
#define EXARG_KEY_LIGHT_RANGE STRINGIFY(light_impact_range)
|
|
/// The flame range of the explosion.
|
|
#define EXARG_KEY_FLAME_RANGE STRINGIFY(flame_range)
|
|
/// The flash range of the explosion.
|
|
#define EXARG_KEY_FLASH_RANGE STRINGIFY(flash_range)
|
|
/// Whether or not the explosion should be logged.
|
|
#define EXARG_KEY_ADMIN_LOG STRINGIFY(adminlog)
|
|
/// Whether or not the explosion should ignore the bombcap.
|
|
#define EXARG_KEY_IGNORE_CAP STRINGIFY(ignorecap)
|
|
/// Whether or not the explosion should produce sound effects and screenshake if it is large enough to warrant it.
|
|
#define EXARG_KEY_SILENT STRINGIFY(silent)
|
|
/// Whether or not the explosion should produce smoke if it is large enough to warrant it.
|
|
#define EXARG_KEY_SMOKE STRINGIFY(smoke)
|