forked from Monkestation/Monkestation2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BOUNTY] Rayne Corp Brand Bee Nuke (actually tested) (Monkestation#1125)
* Bee Nuke * Update bee_nuke.dm * move beenuke to monkestation file instead of tgfile * removing the beenuke from Tg files * Update crate.dm * turn beenuke into an actual item wtf * ye * Update bee_nuke.dm * Update bee_nuke.dm * real * Update code/modules/events/scrubber_clog.dm Co-authored-by: wraith-54321 <[email protected]> * Update code/modules/events/scrubber_clog.dm Co-authored-by: wraith-54321 <[email protected]> * Update scrubber_clog.dm * Update scrubber_clog.dm * Update scrubber_clog.dm * Update crate.dm * Update bee_nuke.dm * hewhehehaw * Update monkestation/code/modules/events/scrubber_clog.dm Co-authored-by: wraith-54321 <[email protected]> * Update monkestation/code/modules/events/scrubber_clog.dm Co-authored-by: wraith-54321 <[email protected]> * Update bee_nuke.dm * Update monkestation/code/modules/antagonists/nukeop/equipment/nuclear_bomb/bee_nuke.dm Co-authored-by: wraith-54321 <[email protected]> * Update monkestation/code/modules/antagonists/nukeop/equipment/nuclear_bomb/bee_nuke.dm Co-authored-by: wraith-54321 <[email protected]> * Update bee_nuke.dm * Update bee_nuke.dm --------- Co-authored-by: wraith-54321 <[email protected]> Co-authored-by: dwasint <[email protected]>
- Loading branch information
1 parent
110a42e
commit 71a62b7
Showing
4 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
monkestation/code/modules/antagonists/nukeop/equipment/nuclear_bomb/bee_nuke.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/// A fake nuke that actually contains bee. | ||
/obj/machinery/nuclearbomb/bee | ||
name = "\improper Rayne Corp brand nuclear fission explosive" | ||
desc = "One of the more successful achievements of the Rayne Corporation Biological Warfare Division, their nuclear fission explosives are renowned for being affordable to produce and devastatingly effective. Signs explain that though this particular device has been (hopefully) decommissioned, you should probably be careful around it considering it's a bomb. - at least, the sign says that's what it is. There seems to be a picture of a bee on the back." | ||
proper_bomb = FALSE | ||
/// The keg located within the beer nuke. | ||
/// Reagent that is produced once the nuke detonates. | ||
/// Round event control we might as well keep track of instead of locating every time | ||
|
||
/obj/machinery/nuclearbomb/bee/Initialize(mapload) | ||
. = ..() | ||
QDEL_NULL(core) | ||
|
||
/obj/machinery/nuclearbomb/bee/Destroy() | ||
return ..() | ||
|
||
|
||
|
||
/obj/machinery/nuclearbomb/bee/actually_explode() | ||
SSticker.roundend_check_paused = FALSE | ||
var/turf/bomb_location = get_turf(src) | ||
if(!bomb_location) | ||
disarm_nuke() | ||
return | ||
if(is_station_level(bomb_location.z)) | ||
addtimer(CALLBACK(src, PROC_REF(really_actually_explode)), 11 SECONDS) | ||
else | ||
visible_message(span_notice("[src] fizzes ominously.")) | ||
|
||
|
||
/obj/machinery/nuclearbomb/bee/disarm_nuke(mob/disarmer) | ||
exploding = FALSE | ||
exploded = TRUE | ||
return ..() | ||
|
||
/obj/machinery/nuclearbomb/bee/really_actually_explode(detonation_status) | ||
//if it's always hooked in it'll override admin choices | ||
disarm_nuke() | ||
force_event(/datum/round_event_control/scrubber_clog/flood, "A bee nuke") | ||
|
||
/// signal sent from overflow control when it fires an event | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/datum/round_event_control/scrubber_clog/flood //I have it here cause of the extra silly spaghetti code all of the scrubbers depend on being in here | ||
name = "Scrubber Clog: Flood" | ||
typepath = /datum/round_event/scrubber_clog/flood | ||
weight = 0 | ||
max_occurrences = 0 | ||
description = "Bees absolutely flood out of a scrubber, used by the Rayne corp bee nuke." | ||
min_wizard_trigger_potency = 3 | ||
max_wizard_trigger_potency = 6 | ||
|
||
/datum/round_event/scrubber_clog/flood | ||
maximum_spawns = 250 | ||
|
||
/datum/round_event/scrubber_clog/flood/setup() | ||
. = ..() | ||
end_when = rand(2000, 4000) | ||
spawn_delay = rand(1, 2) //IT MUST FLOOD | ||
|
||
/datum/round_event/scrubber_clog/flood/announce() | ||
priority_announce("Unusual lifesign readings detected in the entire ventilation network.", "Lifesign Alert", ANNOUNCER_ALIENS) | ||
|
||
/datum/round_event/scrubber_clog/flood/get_mob() | ||
var/static/list/mob_list = list( | ||
/mob/living/basic/bee, | ||
) | ||
return pick(mob_list) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters