mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-19 20:23:07 +01:00
Update synx.dm
This commit is contained in:
@@ -146,10 +146,10 @@
|
||||
//some things should be here that arent tho.
|
||||
..()
|
||||
verbs |= /mob/living/proc/ventcrawl
|
||||
//verbs |= /mob/living/proc/shredlimb //will port shredlimb
|
||||
//verbs |= /mob/living/proc/sonar //will port perceptive hearing.
|
||||
//verbs |= /mob/living/proc/disendstomach //to do later: add disendstomach verb and flag to check, also sprites of stomach outside the body.
|
||||
verbs |= /mob/living/simple_mob/proc/contort
|
||||
verbs |= /mob/living/simple_mob/retaliate/synx/proc/sonar_ping
|
||||
verbs |= /mob/living/simple_mob/proc/shred_limb //shredlimb
|
||||
verbs |= /mob/living/simple_mob/retaliate/synx/proc/disguise
|
||||
verbs |= /mob/living/simple_mob/retaliate/synx/proc/randomspeech
|
||||
realname = name
|
||||
@@ -409,13 +409,55 @@
|
||||
spawn(5)
|
||||
name = realname
|
||||
|
||||
//set up for later
|
||||
/*
|
||||
/mob/living/simple_mob/proc/sonar() //perceptive hearing.
|
||||
//lo- procs adjusted to mobs.
|
||||
|
||||
/mob/living/simple_mob/retaliate/synx
|
||||
var/next_sonar_ping = 0
|
||||
|
||||
/mob/living/simple_mob/proc/shred_limb() //shredlimb
|
||||
/mob/living/simple_mob/retaliate/synx/proc/sonar_ping()
|
||||
set name = "Listen In"
|
||||
set desc = "Allows you to listen in to movement and noises around you."
|
||||
set category = "Abilities"
|
||||
|
||||
if(incapacitated())
|
||||
to_chat(src, "<span class='warning'>You need to recover before you can use this ability.</span>")
|
||||
return
|
||||
if(world.time < next_sonar_ping)
|
||||
to_chat(src, "<span class='warning'>You need another moment to focus.</span>")
|
||||
return
|
||||
if(is_deaf() || is_below_sound_pressure(get_turf(src)))
|
||||
to_chat(src, "<span class='warning'>You are for all intents and purposes currently deaf!</span>")
|
||||
return
|
||||
next_sonar_ping += 10 SECONDS
|
||||
var/heard_something = FALSE
|
||||
to_chat(src, "<span class='notice'>You take a moment to listen in to your environment...</span>")
|
||||
for(var/mob/living/L in range(client.view, src))
|
||||
var/turf/T = get_turf(L)
|
||||
if(!T || L == src || L.stat == DEAD || is_below_sound_pressure(T))
|
||||
continue
|
||||
heard_something = TRUE
|
||||
var/feedback = list()
|
||||
feedback += "<span class='notice'>There are noises of movement "
|
||||
var/direction = get_dir(src, L)
|
||||
if(direction)
|
||||
feedback += "towards the [dir2text(direction)], "
|
||||
switch(get_dist(src, L) / client.view)
|
||||
if(0 to 0.2)
|
||||
feedback += "very close by."
|
||||
if(0.2 to 0.4)
|
||||
feedback += "close by."
|
||||
if(0.4 to 0.6)
|
||||
feedback += "some distance away."
|
||||
if(0.6 to 0.8)
|
||||
feedback += "further away."
|
||||
else
|
||||
feedback += "far away."
|
||||
else // No need to check distance if they're standing right on-top of us
|
||||
feedback += "right on top of you."
|
||||
feedback += "</span>"
|
||||
to_chat(src,jointext(feedback,null))
|
||||
if(!heard_something)
|
||||
to_chat(src, "<span class='notice'>You hear no movement but your own.</span>")
|
||||
|
||||
/mob/living/simple_mob/proc/disendstomach() //Original code for disendedstomach burn damage.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user