forked from Blackstone-SS13/BLACKSTONE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sparks no longer lag, projectile beams move super smoothly, same with mobs and whatnot. This also allows for easy expansion into directional lights, field-of-view, wee-woo rotating lights or whatever. It does have a downside: things right-clicked or checked through the alt+click tab will show the light overlay: This is a BYOND limitation, very well worth it IMO. 🆑 add: Smooth movable lighting system implemented. Projectiles, sparks, thrown flashlights or moving mobs with lights should be much smoother and less laggy. balance: Light sources no longer stack in range, though they still do in intensity. /🆑
- Loading branch information
Showing
62 changed files
with
914 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
glennerbean role=admin | ||
emoats18 role=admin | ||
chaoticagent role=admin | ||
artur_lang role=admin | ||
arturlang role=admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,4 +100,4 @@ | |
if("Orange") | ||
return CLOTHING_ORANGE | ||
if("Majenta") | ||
return CLOTHING_MAJENTA | ||
return CLOTHING_MAJENTA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/// Signifies that this proc is used to handle signals. | ||
/// Every proc you pass to RegisterSignal must have this. | ||
#define SIGNAL_HANDLER SHOULD_NOT_SLEEP(TRUE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
///Called when the movable tries to change its dynamic light color setting, from base atom/movable/lighting_overlay_set_color(): (color) | ||
#define COMSIG_MOVABLE_LIGHT_OVERLAY_SET_RANGE "movable_light_overlay_set_color" | ||
///Called when the movable tries to change its dynamic light power setting, from base atom/movable/lighting_overlay_set_power(): (power) | ||
#define COMSIG_MOVABLE_LIGHT_OVERLAY_SET_POWER "movable_light_overlay_set_power" | ||
///Called when the movable tries to change its dynamic light range setting, from base atom/movable/lighting_overlay_set_range(): (range) | ||
#define COMSIG_MOVABLE_LIGHT_OVERLAY_SET_COLOR "movable_light_overlay_set_range" | ||
///Called when the movable tries to toggle its dynamic light LIGHTING_ON status, from base atom/movable/lighting_overlay_toggle_on(): (new_state) | ||
#define COMSIG_MOVABLE_LIGHT_OVERLAY_TOGGLE_ON "movable_light_overlay_toggle_on" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Atom lighting signals. Format: | ||
// When the signal is called: (signal arguments) | ||
// All signals send the source datum of the signal as the first argument | ||
|
||
// Lighting: | ||
///from base of [atom/proc/set_light]: (l_range, l_power, l_color, l_on) | ||
#define COMSIG_ATOM_SET_LIGHT "atom_set_light" | ||
/// Blocks [/atom/proc/set_light], [/atom/proc/set_light_power], [/atom/proc/set_light_range], [/atom/proc/set_light_color], [/atom/proc/set_light_on], and [/atom/proc/set_light_flags]. | ||
#define COMPONENT_BLOCK_LIGHT_UPDATE (1<<0) | ||
///Called right before the atom changes the value of light_power to a different one, from base [atom/proc/set_light_power]: (new_power) | ||
#define COMSIG_ATOM_SET_LIGHT_POWER "atom_set_light_power" | ||
///Called right after the atom changes the value of light_power to a different one, from base of [/atom/proc/set_light_power]: (old_power) | ||
#define COMSIG_ATOM_UPDATE_LIGHT_POWER "atom_update_light_power" | ||
///Called right before the atom changes the value of light_range to a different one, from base [atom/proc/set_light_range]: (new_range) | ||
#define COMSIG_ATOM_SET_LIGHT_RANGE "atom_set_light_range" | ||
///Called right after the atom changes the value of light_range to a different one, from base of [/atom/proc/set_light_range]: (old_range) | ||
#define COMSIG_ATOM_UPDATE_LIGHT_RANGE "atom_update_light_range" | ||
///Called right before the atom changes the value of light_color to a different one, from base [atom/proc/set_light_color]: (new_color) | ||
#define COMSIG_ATOM_SET_LIGHT_COLOR "atom_set_light_color" | ||
///Called right after the atom changes the value of light_color to a different one, from base of [/atom/proc/set_light_color]: (old_color) | ||
#define COMSIG_ATOM_UPDATE_LIGHT_COLOR "atom_update_light_color" | ||
///Called right before the atom changes the value of light_angle to a different one, from base [atom/proc/set_light_angle]: (new_angle) | ||
#define COMSIG_ATOM_SET_LIGHT_ANGLE "atom_set_light_angle" | ||
///Called right after the atom changes the value of light_angle to a different one, from base of [/atom/proc/set_light_angle]: (old_angle) | ||
#define COMSIG_ATOM_UPDATE_LIGHT_ANGLE "atom_update_light_angle" | ||
///Called right before the atom changes the value of light_dir to a different one, from base [atom/proc/set_light_dir]: (new_dir) | ||
#define COMSIG_ATOM_SET_LIGHT_DIR "atom_set_light_dir" | ||
///Called right after the atom changes the value of light_dir to a different one, from base of [/atom/proc/set_light_dir]: (old_dir) | ||
#define COMSIG_ATOM_UPDATE_LIGHT_DIR "atom_update_light_dir" | ||
///Called right before the atom changes the value of light_on to a different one, from base [atom/proc/set_light_on]: (new_value) | ||
#define COMSIG_ATOM_SET_LIGHT_ON "atom_set_light_on" | ||
///Called right after the atom changes the value of light_on to a different one, from base of [/atom/proc/set_light_on]: (old_value) | ||
#define COMSIG_ATOM_UPDATE_LIGHT_ON "atom_update_light_on" | ||
///Called right before the atom changes the value of light_height to a different one, from base [atom/proc/set_light_height]: (new_value) | ||
#define COMSIG_ATOM_SET_LIGHT_HEIGHT "atom_set_light_height" | ||
///Called right after the atom changes the value of light_height to a different one, from base of [/atom/proc/set_light_height]: (old_value) | ||
#define COMSIG_ATOM_UPDATE_LIGHT_HEIGHT "atom_update_light_height" | ||
///Called right before the atom changes the value of light_flags to a different one, from base [atom/proc/set_light_flags]: (new_flags) | ||
#define COMSIG_ATOM_SET_LIGHT_FLAGS "atom_set_light_flags" | ||
///Called right after the atom changes the value of light_flags to a different one, from base of [/atom/proc/set_light_flags]: (old_flags) | ||
#define COMSIG_ATOM_UPDATE_LIGHT_FLAGS "atom_update_light_flags" | ||
|
||
///Called when an atom has a light template applied to it. Frombase of [/datum/light_template/proc/mirror_onto]: () | ||
#define COMSIG_ATOM_LIGHT_TEMPLATE_MIRRORED "atom_light_template_mirrored" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.