-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Marker obj and door opening for simple animals (currently only necromorphs) #10742
Changes from 1 commit
080f9fa
0dae572
6a50eaa
eb0f46e
8c6d325
e961efb
27720b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#define NECROMARKER_MIN_WHISPER_INTERVAL 200 | ||
#define NECROMARKER_MAX_WHISPER_INTERVAL 450 | ||
/obj/machinery/necromarker | ||
name = "mysterious sculpture" | ||
desc = "A mysterious scultpure of spiral spines, covered in runes." | ||
icon = 'icons/xenoarch_icons/necromarker.dmi' | ||
icon_state = "black" | ||
density = 1 | ||
|
||
var/ticks_not_whispered = 0 | ||
var/next_whisper = 300 | ||
var/whispers = list("...bring me flesh...", "...make us whole...", "...we must be whole...", "...join us in unity...", "...one mind, one soul, one flesh...", "...MAKE US WHOLE...") | ||
|
||
machine_flags = WRENCHMOVE | ||
|
||
/obj/machinery/necromarker/New() | ||
. = ..() | ||
|
||
/obj/machinery/necromarker/MouseDrop_T(mob/M as mob, mob/user as mob) | ||
if(!istype(M)) | ||
return | ||
if(Adjacent(user)) | ||
Consume(M) | ||
|
||
/obj/machinery/necromarker/Consume(mob/M as mob, mob/user as mob) | ||
if(anchored && ismob(M) && Adjacent(M)) | ||
M.forceMove(src.loc) | ||
var/mob/living/simple_animal/hostile/necro/zombie/Z = new(src.loc) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This aint a necromorph, this is a zombie /mob/living/simple_animal/hostile/monster/necromorph is the big scary necromorph |
||
if(M.ckey) | ||
Z.ckey = M.ckey | ||
visible_message("<span class='warning'>[src] spins the flesh and bone of [M] into a hellish monstrosity!</span>") | ||
M.gib() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is gonna do some funny things regarding the brain, similar happens with the staff of necromancy and its gibbing of those shot along with transferring the mind to the undead mob. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's going to happen that I don't want and how can I avoid it |
||
if(user) | ||
message_admins("[user]/[user.ckey] forcefully turned [M]/[M.ckey] into a necromorph. (<A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=[loc.x];Y=[loc.y];Z=[loc.z]'>JMP</A>)") | ||
log_game("[user]/[user.ckey] forcefully turned [M]/[M.ckey] into a necromorph.") | ||
else | ||
message_admins("[M]/[M.ckey] turned into a necromorph via a marker. (<A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=[loc.x];Y=[loc.y];Z=[loc.z]'>JMP</A>)") | ||
log_game("[M]/[M.ckey] turned into a necromorph.") | ||
|
||
/obj/machinery/necromarker/WrenchAnchor(var/mob/user) | ||
. = ..() | ||
if(anchored) | ||
icon_state = "red" | ||
visible_message("<span class='warning'>[src] begins to glow an ominous shade of red...</span>") | ||
if(!anchored) | ||
icon_state = "black" | ||
visible_message("<span class='info'>[src]'s glow slowly diminishes.'</span>") | ||
|
||
/obj/machinery/necromarker/attack_hand(mob/user) | ||
if(Adjacent(user) && !isghost(user)) | ||
Consume(user) | ||
|
||
/obj/machinery/auto_cloner/process() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's this process for auto_cloner doing here in machinery/necromarker? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. whoops |
||
if(ticks_not_whispered > next_whisper) | ||
ticks_not_whispered = 0 | ||
visible_message("[pick(whispers)]") | ||
next_whisper = rand(NECROMARKER_MIN_WHISPER_INTERVAL, NECROMARKER_MAX_WHISPER_INTERVAL) | ||
else | ||
ticks_not_whispered++ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I found this gem.
Seriously why does this exist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably put it in the wrong file and left it unfinished, it reminds me of the AI warning when it attempts to force open a firedoor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like something that used to be an input.