Skip to content

Commit

Permalink
hijack fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Dec 20, 2023
1 parent 70c99d2 commit 95a804b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/__DEFINES/dcs/signals/signals_global.dm
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,4 @@
#define COMSIG_GLOB_GENERATOR_SET_OVERLOADING "!generator_set_overloading"

#define COMSIG_GLOB_HIJACK_IMPACTED "!hijack_impacted"
#define COMSIG_GLOB_HIJACK_LANDED "!hijack_landed"
2 changes: 2 additions & 0 deletions code/controllers/subsystem/ticker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,8 @@ SUBSYSTEM_DEF(ticker)

winset(C, null, "mainwindow.icon=[SSticker.mode.taskbar_icon]")

/datum/controller/subsystem/ticker/proc/hijack_wait()
addtimer(CALLBACK(SSticker, PROC_REF(hijack_ocurred)), 20 SECONDS)

/datum/controller/subsystem/ticker/proc/hijack_ocurred()
if(mode)
Expand Down
4 changes: 3 additions & 1 deletion code/modules/shuttle/dropship_hijack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
// Break the ultra-reinforced windows.
// Break the briefing windows.
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_HIJACK_IMPACTED)
RegisterSignal(SSdcs, COMSIG_GLOB_HIJACK_LANDED, PROC_REF(finish_landing))

// Sleep while the explosions do their job
var/explosion_alive = TRUE
Expand All @@ -62,8 +63,9 @@
break
sleep(10)

/datum/dropship_hijack/almayer/proc/finish_landing()
SShijack.announce_status_on_crash()
addtimer(CALLBACK(SSticker, PROC_REF(hijack_ocurred)), 5 SECONDS)
SSticker.hijack_ocurred()

/datum/dropship_hijack/almayer/proc/fire()
if(!shuttle || !crash_site)
Expand Down
1 change: 1 addition & 0 deletions code/modules/shuttle/shuttles/dropship.dm
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@
affected_mob.apply_effect(3, WEAKEN)

SEND_GLOBAL_SIGNAL(COMSIG_GLOB_GROUNDSIDE_FORSAKEN_HANDLING)
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_HIJACK_LANDED)

/datum/map_template/shuttle/alamo
name = "Alamo"
Expand Down

0 comments on commit 95a804b

Please sign in to comment.