Skip to content

Commit

Permalink
Fix grabs and pulls gliding
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhEugene committed Dec 10, 2023
1 parent efdfff0 commit c95b1e6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
12 changes: 11 additions & 1 deletion code/datums/movement/mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,18 @@
return

// Something with pulling things
var/extra_delay = HandleGrabs(direction, old_turf)
// [SIERRA-EDIT] - SSINPUT
// var/extra_delay = HandleGrabs(direction, old_turf) // SIERRA-EDIT - ORIGINAL
// mob.ExtraMoveCooldown(extra_delay) // SIERRA-EDIT - ORIGINAL
var/extra_delay = 0
for (var/obj/item/grab/G in mob)
if(G.assailant == G.affecting)
return
extra_delay = max(extra_delay, G.grab_slowdown())

mob.ExtraMoveCooldown(extra_delay)
HandleGrabs(direction, old_turf)
// [/SIERRA-EDIT]

for (var/obj/item/grab/G in mob)
if (G.assailant_reverse_facing())
Expand Down
3 changes: 3 additions & 0 deletions code/modules/mob/grab/grab_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@
var/adir = get_dir(assailant, affecting)

if(same_tile)
// [SIERRA-ADD] - SSINPUT
affecting.set_glide_size(assailant.glide_size)
// [/SIERRA-ADD]
affecting.forceMove(assailant.loc)
adir = assailant.dir
affecting.set_dir(assailant.dir)
Expand Down
2 changes: 2 additions & 0 deletions mods/ssinput/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ ID мода: SSINPUT
- `code/__defines/subsystem-priority.dm`: `#define SS_PRIORITY_INPUT`
- `code/__defines/subsystems.dm`: `#define SS_INIT_INPUT`
- `code/_onclick/click.dm`: `/mob/proc/MiddleClickOn()`
- `code/datums/movement/mob.dm`: `/datum/movement_handler/mob/movement/DoMove()`
- `code/game/objects/buckling.dm`: `/obj/Move()`, `/obj/forceMove()`
- `code/game/verbs/ooc.dm`: `/client/verb/ooc()`, `/client/verb/looc()`
- `code/modules/admin/callproc/callproc.dm`: `/client/Click()`
- `code/modules/client/client_procs.dm`: `/client/New()`, `/client/verb/toggle_fullscreen()`
- `code/modules/goonchat/browserOutput.dm`: `/datum/chatOutput/Topic()`
- `code/modules/mob/grab/grab_datum.dm`: `/datum/grab/proc/adjust_position()`
- `code/modules/mob/living/silicon/robot/login.dm`: `/mob/living/silicon/robot/Login()`
- `code/modules/mob/observer/ghost/ghost.dm`: `/mob/observer/ghost/appearance_flags`
- `code/modules/mob/login.dm`: `/mob/Login()`
Expand Down

0 comments on commit c95b1e6

Please sign in to comment.