Skip to content

Commit

Permalink
Adds chaos dunking (#1573)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coxswain-Navigator authored Oct 25, 2023
1 parent c19562f commit b5abae9
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/__DEFINES/cinematics.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
#define CINEMATIC_NUKE_CLOWNOP 12
#define CINEMATIC_CULT_NUKE 13
#define CINEMATIC_CULT_FAIL 14
#define CINEMATIC_CHAOS_DUNK 15
8 changes: 8 additions & 0 deletions code/datums/cinematic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,14 @@
flick("summary_selfdes",screen) //???
special()

/datum/cinematic/chaosdunk
id = CINEMATIC_CHAOS_DUNK
cleanup_time = 50

/datum/cinematic/chaosdunk/content()
flick("chaos_dunk",screen)
cinematic_sound(sound('sound/misc/nest_announcement.ogg'))

/* Intended usage.
Nuke.Explosion()
-> Cinematic(NUKE_BOOM,world)
Expand Down
14 changes: 14 additions & 0 deletions code/modules/holodeck/items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,17 @@
icon_state = "hoop"
anchored = TRUE
density = TRUE
var/chaosdunking = FALSE //Prevent multiple cutscenes from popping up

/obj/structure/holohoop/attackby(obj/item/W as obj, mob/user as mob, params)
if(get_dist(src,user)<2)
if(user.transferItemToLoc(W, drop_location()))
visible_message("<span class='warning'>[user] dunks [W] into \the [src]!</span>")
if(istype(W, /obj/item/ego_weapon/chaosdunk))
if(chaosdunking)
return
chaosdunking = TRUE
ChaosDunk()

/obj/structure/holohoop/attack_hand(mob/user)
. = ..()
Expand Down Expand Up @@ -136,7 +142,15 @@
else
return ..()

/obj/structure/holohoop/proc/ChaosDunk()
show_global_blurb(50, "Chaos Dunk")
Explode()
Cinematic(CINEMATIC_CHAOS_DUNK, world)

/obj/structure/holohoop/proc/Explode()
set waitfor = FALSE
sleep(30)
explosion(src, 20, 20)

//
// Machines
Expand Down
Binary file modified icons/effects/station_explosion.dmi
Binary file not shown.
Binary file added sound/misc/nest_announcement.ogg
Binary file not shown.

0 comments on commit b5abae9

Please sign in to comment.