-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
362 changed files
with
9,776 additions
and
141,892 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
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
17 changes: 17 additions & 0 deletions
17
code/__DEFINES/dcs/signals/signals_atom/signals_atom_attack.dm
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,17 @@ | ||
// Atom attack signals. Format: | ||
// When the signal is called: (signal arguments) | ||
// All signals send the source datum of the signal as the first argument | ||
|
||
///from base of atom/attackby(): (/obj/item, /mob/living, params) | ||
#define COMSIG_ATOM_ATTACKBY "atom_attackby" | ||
|
||
/// From [/item/attack()], sent by an atom which was just attacked by an item: (/obj/item/weapon, /mob/user, proximity_flag, click_parameters) | ||
#define COMSIG_ATOM_AFTER_ATTACKEDBY "atom_after_attackby" | ||
|
||
///Return this in response if you don't want afterattack to be called | ||
#define COMPONENT_NO_AFTERATTACK (1<<0) | ||
|
||
///Ends the attack chain. If sent early might cause posterior attacks not to happen. | ||
#define COMPONENT_CANCEL_ATTACK_CHAIN (1<<0) | ||
///Skips the specific attack step, continuing for the next one to happen. | ||
#define COMPONENT_SKIP_ATTACK (1<<1) |
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,34 @@ | ||
/* smoothing_flags */ | ||
///Do not smooth | ||
#define SMOOTH_FALSE BITFLAG(0) | ||
///Smooths with exact specified types or just itself | ||
#define SMOOTH_TRUE BITFLAG(1) | ||
///Smooths with all subtypes of specified types or just itself (this value can replace SMOOTH_TRUE) | ||
#define SMOOTH_MORE BITFLAG(2) | ||
///If atom should smooth diagonally, this should be present in 'smooth' var | ||
#define SMOOTH_DIAGONAL BITFLAG(3) | ||
///Atom will smooth with the borders of the map | ||
#define SMOOTH_BORDER BITFLAG(4) | ||
///Atom is currently queued to smooth. | ||
#define SMOOTH_QUEUED BITFLAG(5) | ||
///Don't clear the atom's icon_state on smooth. | ||
#define SMOOTH_NO_CLEAR_ICON BITFLAG(6) | ||
///Add underlays, detached from diagonal smoothing. | ||
#define SMOOTH_UNDERLAYS BITFLAG(7) | ||
|
||
#define USES_SMOOTHING (SMOOTH_TRUE|SMOOTH_MORE) | ||
|
||
//Redefinitions of the diagonal directions so they can be stored in one var without conflicts | ||
#define N_NORTH 2 | ||
#define N_SOUTH 4 | ||
#define N_EAST 16 | ||
#define N_WEST 256 | ||
#define N_NORTHEAST 32 | ||
#define N_NORTHWEST 512 | ||
#define N_SOUTHEAST 64 | ||
#define N_SOUTHWEST 1024 | ||
|
||
|
||
#define QUEUE_SMOOTH(thing_to_queue) if(thing_to_queue.smoothing_flags & USES_SMOOTHING){SSicon_smooth.add_to_queue(thing_to_queue)} | ||
|
||
#define QUEUE_SMOOTH_NEIGHBORS(thing_to_queue) for(var/atom/atom_neighbor as anything in orange(1, thing_to_queue)) {QUEUE_SMOOTH(atom_neighbor)} |
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.