-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/cmss13-devs/cmss13-pve in…
…to sharps
- Loading branch information
Showing
777 changed files
with
33,621 additions
and
23,442 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# We don't want prettier to run on anything outside of the TGUI folder, so we have to do this. | ||
/* | ||
|
||
# We want it to run into the TGUI folder, however. | ||
!/tgui |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#define ALERT_BUCKLED "buckled" | ||
#define ALERT_HANDCUFFED "handcuffed" | ||
#define ALERT_LEGCUFFED "legcuffed" | ||
#define ALERT_FLOORED "floored" | ||
#define ALERT_INCAPACITATED "incapacitated" | ||
#define ALERT_KNOCKEDOUT "knockedout" | ||
#define ALERT_IMMOBILIZED "immobilized" |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
///if it allows multiple instances of the effect | ||
#define STATUS_EFFECT_MULTIPLE 0 | ||
///if it allows only one, preventing new instances | ||
#define STATUS_EFFECT_UNIQUE 1 | ||
///if it allows only one, but new instances replace | ||
#define STATUS_EFFECT_REPLACE 2 | ||
/// if it only allows one, and new instances just instead refresh the timer | ||
#define STATUS_EFFECT_REFRESH 3 | ||
|
||
///Processing flags - used to define the speed at which the status will work | ||
///This is fast - 0.2s between ticks (I believe!) | ||
#define STATUS_EFFECT_FAST_PROCESS 0 | ||
///This is slower and better for more intensive status effects - 1s between ticks | ||
#define STATUS_EFFECT_NORMAL_PROCESS 1 | ||
|
||
//Incapacitated status effect flags | ||
/// If the incapacitated status effect will ignore a mob in restraints (handcuffs) | ||
#define IGNORE_RESTRAINTS (1<<0) | ||
/// If the incapacitated status effect will ignore a mob in stasis (stasis beds) | ||
#define IGNORE_STASIS (1<<1) | ||
/// If the incapacitated status effect will ignore a mob being agressively grabbed | ||
#define IGNORE_GRAB (1<<2) | ||
|
||
/// Time threshold after which we launch ending timer - this should be higher than the slowest processing rate | ||
#define STATUS_EFFECT_TIME_THRESHOLD (2 SECONDS) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
//turf_flags values | ||
/// Marks a turf as organic. Used for alien wall and membranes. | ||
#define TURF_ORGANIC (1<<0) | ||
/// If a turf is an usused reservation turf awaiting assignment | ||
#define UNUSED_RESERVATION_TURF (1<<1) | ||
/// If a turf is a reserved turf | ||
#define RESERVATION_TURF (1<<2) | ||
|
||
//ChangeTurf options to change its behavior | ||
#define CHANGETURF_DEFER_CHANGE (1<<0) | ||
/// This flag prevents changeturf from gathering air from nearby turfs to fill the new turf with an approximation of local air | ||
#define CHANGETURF_IGNORE_AIR (1<<1) | ||
#define CHANGETURF_FORCEOP (1<<2) | ||
/// A flag for PlaceOnTop to just instance the new turf instead of calling ChangeTurf. Used for uninitialized turfs NOTHING ELSE | ||
#define CHANGETURF_SKIP (1<<3) | ||
|
||
#define IS_OPAQUE_TURF(turf) (turf.directional_opacity == ALL_CARDINALS) | ||
|
||
/// Marks a turf as organic. Used for alien wall and membranes. | ||
#define TURF_ORGANIC (1<<0) | ||
|
||
|
||
#define REMOVE_CROWBAR (1<<0) | ||
#define BREAK_CROWBAR (1<<1) | ||
#define REMOVE_SCREWDRIVER (1<<2) |
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,29 @@ | ||
#define RANGE_TURFS(RADIUS, CENTER) \ | ||
block( \ | ||
locate(max(CENTER.x-(RADIUS),1), max(CENTER.y-(RADIUS),1), CENTER.z), \ | ||
locate(min(CENTER.x+(RADIUS),world.maxx), min(CENTER.y+(RADIUS),world.maxy), CENTER.z) \ | ||
) | ||
|
||
#define RECT_TURFS(H_RADIUS, V_RADIUS, CENTER) \ | ||
block( \ | ||
locate(max((CENTER).x-(H_RADIUS),1), max((CENTER).y-(V_RADIUS),1), (CENTER).z), \ | ||
locate(min((CENTER).x+(H_RADIUS),world.maxx), min((CENTER).y+(V_RADIUS),world.maxy), (CENTER).z) \ | ||
) | ||
|
||
///Returns all turfs in a zlevel | ||
#define Z_TURFS(ZLEVEL) block(locate(1,1,ZLEVEL), locate(world.maxx, world.maxy, ZLEVEL)) | ||
|
||
/// Returns a list of turfs in the rectangle specified by BOTTOM LEFT corner and height/width, checks for being outside the world border for you | ||
#define CORNER_BLOCK(corner, width, height) CORNER_BLOCK_OFFSET(corner, width, height, 0, 0) | ||
|
||
/// Returns a list of turfs similar to CORNER_BLOCK but with offsets | ||
#define CORNER_BLOCK_OFFSET(corner, width, height, offset_x, offset_y) ((block(locate(corner.x + offset_x, corner.y + offset_y, corner.z), locate(min(corner.x + (width - 1) + offset_x, world.maxx), min(corner.y + (height - 1) + offset_y, world.maxy), corner.z)))) | ||
|
||
/// Returns an outline (neighboring turfs) of the given block | ||
#define CORNER_OUTLINE(corner, width, height) ( \ | ||
CORNER_BLOCK_OFFSET(corner, width + 2, 1, -1, -1) + \ | ||
CORNER_BLOCK_OFFSET(corner, width + 2, 1, -1, height) + \ | ||
CORNER_BLOCK_OFFSET(corner, 1, height, -1, 0) + \ | ||
CORNER_BLOCK_OFFSET(corner, 1, height, width, 0)) | ||
|
||
#define TURF_FROM_COORDS_LIST(List) (locate(List[1], List[2], List[3])) |
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.