diff --git a/code/__DEFINES/combat.dm b/code/__DEFINES/combat.dm index d219736abe..a6d411a8dd 100644 --- a/code/__DEFINES/combat.dm +++ b/code/__DEFINES/combat.dm @@ -158,7 +158,7 @@ /// how long they're staggered for #define SHOVE_STAGGER_DURATION 35 /// how long they're off balance for -#define SHOVE_OFFBALANCE_DURATION 30 +#define SHOVE_OFFBALANCE_DURATION 3 SECONDS //Embedded objects diff --git a/code/modules/mob/living/carbon/human/species.dm b/code/modules/mob/living/carbon/human/species.dm index 3f456a9b43..96a44792a8 100644 --- a/code/modules/mob/living/carbon/human/species.dm +++ b/code/modules/mob/living/carbon/human/species.dm @@ -2002,6 +2002,7 @@ GLOBAL_LIST_EMPTY(roundstart_race_names) var/turf/target_shove_turf = get_step(target.loc, shove_dir) var/mob/living/carbon/human/target_collateral_human var/shove_blocked = FALSE //Used to check if a shove is blocked so that if it is knockdown logic can be applied + var/targetatrest = !CHECK_MOBILITY(target, MOBILITY_STAND) //Thank you based whoneedsspace target_collateral_human = locate(/mob/living/carbon/human) in target_shove_turf.contents @@ -2016,7 +2017,6 @@ GLOBAL_LIST_EMPTY(roundstart_race_names) var/append_message = "" if(shove_blocked && !target.buckled) var/directional_blocked = !target.Adjacent(target_shove_turf) - var/targetatrest = !CHECK_MOBILITY(target, MOBILITY_STAND) if((directional_blocked || !(target_collateral_human || target_shove_turf.shove_act(target, user))) && !targetatrest) target.DefaultCombatKnockdown(SHOVE_KNOCKDOWN_SOLID) target.visible_message("[user.name] shoves [target.name], knocking them down!", @@ -2045,11 +2045,15 @@ GLOBAL_LIST_EMPTY(roundstart_race_names) append_message += ", loosening their grip on [target_held_item]" else append_message += ", but couldn't loose their grip on [target_held_item]" - else if(target_held_item) - if(target.dropItemToGround(target_held_item)) - target.visible_message("[target.name] drops \the [target_held_item]!!", - "You drop \the [target_held_item]!!", null, COMBAT_MESSAGE_RANGE) - append_message += ", causing them to drop [target_held_item]" + else if(target.has_status_effect(STATUS_EFFECT_OFF_BALANCE)) + if(target_held_item) + if(shove_blocked) + if (target.buckled) + return + else if(target.dropItemToGround(target_held_item)) + target.visible_message("[target.name] drops \the [target_held_item]!!", + "You drop \the [target_held_item]!!", null, COMBAT_MESSAGE_RANGE) + append_message += ", causing them to drop [target_held_item]" target.ShoveOffBalance(SHOVE_OFFBALANCE_DURATION) log_combat(user, target, "shoved", append_message)