Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 06791c1

Browse files
committed
TGS Test Merge (#21883)
2 parents f797606 + 711560a commit 06791c1

File tree

393 files changed

+2925
-2983
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

393 files changed

+2925
-2983
lines changed

code/__DEFINES/combat.dm

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@
6666
#define EFFECT_DROWSY "drowsy"
6767
#define EFFECT_JITTER "jitter"
6868

69+
/// Alternate attack defines. Return these at the end of procs like afterattack_secondary.
70+
/// Calls the normal attack proc. For example, if returned in afterattack_secondary, will call afterattack.
71+
72+
/// Will continue the chain depending on the return value of the non-alternate proc, like with normal attacks.
73+
#define SECONDARY_ATTACK_CALL_NORMAL 1
74+
/// Cancels the attack chain entirely.
75+
#define SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN 2
76+
/// Proceed with the attack chain, but don't call the normal methods.
77+
#define SECONDARY_ATTACK_CONTINUE_CHAIN 3
78+
6979
//Bitflags defining which status effects could be or are inflicted on a mob
7080
#define CANSTUN (1<<0)
7181
#define CANKNOCKDOWN (1<<1)
@@ -129,16 +139,6 @@
129139
#define ATTACK_EFFECT_MECHTOXIN "mech_toxin"
130140
#define ATTACK_EFFECT_BOOP "boop" //Honk
131141

132-
//intent defines
133-
#define INTENT_HELP "help"
134-
#define INTENT_GRAB "grab"
135-
#define INTENT_DISARM "disarm"
136-
#define INTENT_HARM "harm"
137-
//NOTE: INTENT_HOTKEY_* defines are not actual intents!
138-
//they are here to support hotkeys
139-
#define INTENT_HOTKEY_LEFT "left"
140-
#define INTENT_HOTKEY_RIGHT "right"
141-
142142
//the define for visible message range in combat
143143
#define COMBAT_MESSAGE_RANGE 3
144144
#define DEFAULT_MESSAGE_RANGE 7

code/__DEFINES/dcs/signals/signals_atom/signals_atom_movement.dm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
#define COMSIG_ATOM_DIR_CHANGE "atom_dir_change"
4444
///from base of atom/setDir(): (old_dir, new_dir). Called after the direction changes.
4545
#define COMSIG_ATOM_POST_DIR_CHANGE "atom_dir_change"
46+
///from base of atom/movable/keybind_face_direction(): (dir). Called before turning with the movement lock key.
47+
#define COMSIG_MOVABLE_KEYBIND_FACE_DIR "keybind_face_dir"
48+
///ignores the movement lock key, used for turning while strafing in a mech
49+
#define COMSIG_IGNORE_MOVEMENT_LOCK (1<<0)
4650
///from base of atom/setShift(): (dir). Called before the shift changes.
4751
#define COMSIG_ATOM_SHIFT_CHANGE "atom_shift_change"
4852
/// from /datum/component/singularity/proc/can_move(), as well as /obj/energy_ball/proc/can_move()

code/__DEFINES/dcs/signals/signals_mob/signals_mob.dm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@
129129
#define COMSIG_MOB_SWAP_HANDS "mob_swap_hands"
130130
///from base of /mob/verb/pointed: (atom/A)
131131
#define COMSIG_MOB_POINTED "mob_pointed"
132+
///from base of /mob/living/start_pulling: (atom/movable/AM, state, force)
133+
#define COMSIG_MOB_PULL "mob_pull"
134+
#define COMPONENT_BLOCK_PULL (1<<0) // blocks pulling
132135
///Mob is trying to open the wires of a target [/atom], from /datum/wires/interactable(): (atom/target)
133136
#define COMSIG_TRY_WIRES_INTERACT "try_wires_interact"
134137
#define COMPONENT_CANT_INTERACT_WIRES (1<<0)

code/__DEFINES/hud.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
#define ui_above_intent "EAST-3:24, SOUTH+1:7"
9898
#define ui_movi "EAST-2:26,SOUTH:5"
9999
#define ui_acti "EAST-3:24,SOUTH:5"
100+
#define ui_combat_toggle "EAST-3:24,SOUTH:5"
100101
#define ui_zonesel "EAST-1:28,SOUTH:5"
101102
#define ui_acti_alt "EAST-1:28,SOUTH:5" //alternative intent switcher for when the interface is hidden (F12)
102103
#define ui_crafting "EAST-4:22,SOUTH:5"

code/__DEFINES/misc.dm

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,6 @@ GLOBAL_LIST_INIT(donor_pdas, list(PDA_COLOR_NORMAL, PDA_COLOR_TRANSPARENT, PDA_C
304304

305305
#define MAX_PROC_DEPTH 195 // 200 proc calls deep and shit breaks, this is a bit lower to give some safety room
306306

307-
#define SYRINGE_DRAW 0
308-
#define SYRINGE_INJECT 1
309-
310307
//gold slime core spawning
311308
#define NO_SPAWN 0
312309
#define HOSTILE_SPAWN 1

code/__DEFINES/monkeys.dm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
#define MONKEY_RECRUIT_PROB 25 // recruit a monkey near it
2525
#define MONKEY_SWITCH_TARGET_PROB 25 // switch targets if it sees another enemy
2626

27-
#define MONKEY_RETALIATE_HARM_PROB 95 // probability for the monkey to aggro when attacked with harm intent
28-
#define MONKEY_RETALIATE_DISARM_PROB 20 // probability for the monkey to aggro when attacked with disarm intent
27+
#define MONKEY_RETALIATE_PROB 85 // probability for the monkey to aggro when attacked
2928

3029
#define MONKEY_HATRED_AMOUNT 4 // amount of aggro to add to an enemy when they attack user
3130
#define MONKEY_HATRED_REDUCTION_PROB 25 // probability of reducing aggro by one when the monkey attacks

code/__DEFINES/preferences.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#define MIDROUND_ANTAG (1<<6)
1212
#define SOUND_INSTRUMENTS (1<<7)
1313
#define SOUND_SHIP_AMBIENCE (1<<8)
14-
#define SOUND_PRAYER_N_FAX (1<<9)
14+
#define SOUND_PRAYER_N_FAX (1<<9)
1515
#define ANNOUNCE_LOGIN (1<<10)
1616
#define SOUND_ANNOUNCEMENTS (1<<11)
1717
#define DISABLE_DEATHRATTLE (1<<12)

code/__DEFINES/traits/declarations.dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ Remember to update _globalvars/traits.dm if you're adding/removing/renaming trai
7373
#define TRAIT_IGNOREDAMAGESLOWDOWN "ignoredamageslowdown"
7474
/// Makes it so the mob can use guns regardless of tool user status
7575
#define TRAIT_GUN_NATURAL "gunnatural"
76+
/// Can't hold people up with guns, for whatever reason
77+
#define TRAIT_NO_HOLDUP "no_holdup"
7678
/// Causes death-like unconsciousness
7779
#define TRAIT_DEATHCOMA "deathcoma"
7880
/// The mob has the stasis effect.

code/_onclick/ai.dm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,20 @@
7777
set_waypoint(A)
7878
return
7979

80-
A.attack_ai(src)
80+
A.attack_ai(src, modifiers)
8181

8282
/*
8383
AI has no need for the UnarmedAttack() and RangedAttack() procs,
8484
because the AI code is not generic; attack_ai() is used instead.
8585
The below is only really for safety, or you can alter the way
8686
it functions and re-insert it above.
8787
*/
88-
/mob/living/silicon/ai/UnarmedAttack(atom/A)
89-
A.attack_ai(src)
90-
/mob/living/silicon/ai/RangedAttack(atom/A)
91-
A.attack_ai(src)
88+
/mob/living/silicon/ai/UnarmedAttack(atom/A, proximity, modifiers)
89+
A.attack_ai(src, modifiers)
90+
/mob/living/silicon/ai/RangedAttack(atom/A, proximity, modifiers)
91+
A.attack_ai(src, modifiers)
9292

93-
/atom/proc/attack_ai(mob/user)
93+
/atom/proc/attack_ai(mob/user, modifiers)
9494
return
9595

9696
/*

code/_onclick/click.dm

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118

119119
if(HAS_TRAIT(src, TRAIT_HANDS_BLOCKED))
120120
changeNext_move(CLICK_CD_HANDCUFFED) //Doing shit in cuffs shall be vey slow
121-
UnarmedAttack(A, FALSE)
121+
UnarmedAttack(A, FALSE, modifiers)
122122
return
123123

124124
if(in_throw_mode)
@@ -128,7 +128,8 @@
128128
var/obj/item/W = get_active_held_item()
129129

130130
if(W == A)
131-
W.attack_self(src)
131+
if(!(LAZYACCESS(modifiers, RIGHT_CLICK) && W.attack_self_secondary(src, modifiers) != SECONDARY_ATTACK_CALL_NORMAL))
132+
W.attack_self(src, modifiers)
132133
update_inv_hands()
133134
return
134135

@@ -140,7 +141,7 @@
140141
else
141142
if(ismob(A))
142143
changeNext_move(CLICK_CD_MELEE)
143-
UnarmedAttack(A)
144+
UnarmedAttack(A, FALSE, modifiers)
144145
return
145146

146147
//Can't reach anything else in lockers or other weirdness
@@ -154,10 +155,11 @@
154155
else
155156
if(ismob(A))
156157
changeNext_move(CLICK_CD_MELEE)
157-
UnarmedAttack(A,1)
158+
UnarmedAttack(A, TRUE, modifiers)
158159
else
159160
if(W)
160-
W.afterattack(A,src,0,params)
161+
if(!(LAZYACCESS(modifiers, RIGHT_CLICK) && W.afterattack_secondary(A, src, FALSE, params) != SECONDARY_ATTACK_CALL_NORMAL))
162+
W.afterattack(A, src, FALSE, params)
161163
else
162164
RangedAttack(A,params)
163165

@@ -261,7 +263,7 @@
261263
proximity_flag is not currently passed to attack_hand, and is instead used
262264
in human click code to allow glove touches only at melee range.
263265
*/
264-
/mob/proc/UnarmedAttack(atom/A, proximity_flag)
266+
/mob/proc/UnarmedAttack(atom/A, proximity_flag, modifiers)
265267
if(ismob(A))
266268
changeNext_move(CLICK_CD_MELEE)
267269
return

0 commit comments

Comments
 (0)