Updating the personal emergency beacon with some new functionality. When activated, you now deploy it into your current tile and it becomes a fixture of that tile, transmitting an "emergency beacon" gps signal (much more useful than X/Y coords given in the message, though those are still given for now). You can't activate it if you're not on sufficiently solid ground though; mid air, floating in space, or neck deep in water are all bad terrain for beacons. Deployed beacons can be disassembled with a wrench.
Also adds an isopenturf and isnonsolidturf helpers; isopenturf checks if the turf is space or simulated/open, and isnonsolidturf checks both of those andsimulated/floor/water and simulated/floor/lava, for the purposes of seeing if the ground is solid enough to plant a beacon in or not. Though the odds of anyone living long enough to plant a beacon in lava are fairly slim!
:cl:
tweak: emergency beacon behaviour tweaks; shorter activation, fixed deployment location, and integrated micro-gps
tweak: added emergency beacons to pilot lockers
tweak: deployed emergency beacons can be disassembled with a wrench
rscadd: added isopenturf helper, returns true if the checked turf is space or simulated/open
rscadd: added isnonsolidturf helper, returns true if the checked turf is space, simulated/open, simulated/floor/water, or simulated/floor/lava
/:cl:
Original PR: https://github.com/CHOMPStation2/CHOMPStation2/pull/8762
Original PR: https://github.com/VOREStation/VOREStation/pull/16152
Updating the personal emergency beacon with some new functionality. When activated, you now deploy it into your current tile and it becomes a fixture of that tile, transmitting an "emergency beacon" gps signal (much more useful than X/Y coords given in the message, though those are still given for now). You can't activate it if you're not on sufficiently solid ground though; mid air, floating in space, or neck deep in water are all bad terrain for beacons. Deployed beacons can be disassembled with a wrench.
Also adds an
isopenturf
andisnonsolidturf
helpers;isopenturf
checks if the turf isspace
orsimulated/open
, andisnonsolidturf
checks both of those andsimulated/floor/water
andsimulated/floor/lava
, for the purposes of seeing if the ground is solid enough to plant a beacon in or not. Though the odds of anyone living long enough to plant a beacon in lava are fairly slim!:cl: tweak: emergency beacon behaviour tweaks; shorter activation, fixed deployment location, and integrated micro-gps tweak: added emergency beacons to pilot lockers tweak: deployed emergency beacons can be disassembled with a wrench rscadd: added
isopenturf
helper, returns true if the checked turf isspace
orsimulated/open
rscadd: addedisnonsolidturf
helper, returns true if the checked turf isspace
,simulated/open
,simulated/floor/water
, orsimulated/floor/lava
/:cl: