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

Commit dc69181

Browse files
committed
TGS Test Merge (#21883)
2 parents 76944b0 + a78cbee commit dc69181

File tree

352 files changed

+1958
-1888
lines changed

Some content is hidden

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

352 files changed

+1958
-1888
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/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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@
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: 4 additions & 4 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)
@@ -140,7 +140,7 @@
140140
else
141141
if(ismob(A))
142142
changeNext_move(CLICK_CD_MELEE)
143-
UnarmedAttack(A)
143+
UnarmedAttack(A, FALSE, modifiers)
144144
return
145145

146146
//Can't reach anything else in lockers or other weirdness
@@ -154,7 +154,7 @@
154154
else
155155
if(ismob(A))
156156
changeNext_move(CLICK_CD_MELEE)
157-
UnarmedAttack(A,1)
157+
UnarmedAttack(A, TRUE, modifiers)
158158
else
159159
if(W)
160160
W.afterattack(A,src,0,params)
@@ -261,7 +261,7 @@
261261
proximity_flag is not currently passed to attack_hand, and is instead used
262262
in human click code to allow glove touches only at melee range.
263263
*/
264-
/mob/proc/UnarmedAttack(atom/A, proximity_flag)
264+
/mob/proc/UnarmedAttack(atom/A, proximity_flag, modifiers)
265265
if(ismob(A))
266266
changeNext_move(CLICK_CD_MELEE)
267267
return

code/_onclick/hud/alien.dm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@
5151
using.screen_loc = ui_swaphand_position(owner,2)
5252
static_inventory += using
5353

54-
using = new /atom/movable/screen/act_intent/alien(src)
55-
using.icon_state = mymob.a_intent
56-
static_inventory += using
57-
action_intent = using
54+
action_intent = new /atom/movable/screen/combattoggle/flashy(src)
55+
action_intent.icon = ui_style
56+
action_intent.screen_loc = ui_combat_toggle
57+
static_inventory += action_intent
5858

5959
if(isalienhunter(mymob))
6060
var/mob/living/carbon/alien/humanoid/hunter/H = mymob

0 commit comments

Comments
 (0)