This commit is contained in:
kevinz000
2019-12-31 10:08:14 -08:00
parent 24e3b88a34
commit f920e7b73c
4 changed files with 96 additions and 88 deletions
+8 -22
View File
@@ -20,30 +20,16 @@
var/obj/item/I = new path var/obj/item/I = new path
mannequin.equip_to_slot_if_possible(I, SLOT_HANDS, TRUE, TRUE, TRUE, TRUE) mannequin.equip_to_slot_if_possible(I, SLOT_HANDS, TRUE, TRUE, TRUE, TRUE)
COMPILE_OVERLAYS(mannequin)
CHECK_TICK
mannequin.setDir(NORTH)
var/icon/north = getFlatIcon(mannequin)
CHECK_TICK
mannequin.setDir(SOUTH)
var/icon/south = getFlatIcon(mannequin)
CHECK_TICK
mannequin.setDir(EAST)
var/icon/east = getFlatIcon(mannequin)
CHECK_TICK
mannequin.setDir(WEST)
var/icon/west = getFlatIcon(mannequin)
CHECK_TICK
var/icon/combined = new var/icon/combined = new
combined.Insert(north, dir = NORTH) for(var/d in GLOB.cardinals)
CHECK_TICK mannequin.setDir(d)
combined.Insert(south, dir = SOUTH) COMPILE_OVERLAYS(mannequin)
CHECK_TICK CHECK_TICK
combined.Insert(east, dir = EAST) var/icon/capture = getFlatIcon(mannequin)
CHECK_TICK CHECK_TICK
combined.Insert(west, dir = WEST) combined.Insert(capture, dir = d)
CHECK_TICK CHECK_TICK
unset_busy_human_dummy(DUMMY_HUMAN_SLOT_HOLOFORM) unset_busy_human_dummy(DUMMY_HUMAN_SLOT_HOLOFORM)
return combined return combined
+2 -1
View File
@@ -136,9 +136,10 @@
/datum/emote/sound /datum/emote/sound
var/sound //Sound to play when emote is called var/sound //Sound to play when emote is called
var/vary = FALSE //used for the honk borg emote var/vary = FALSE //used for the honk borg emote
var/volume = 50
mob_type_allowed_typecache = list(/mob/living/brain, /mob/living/silicon) mob_type_allowed_typecache = list(/mob/living/brain, /mob/living/silicon)
/datum/emote/sound/run_emote(mob/user, params) /datum/emote/sound/run_emote(mob/user, params)
. = ..() . = ..()
if(.) if(.)
playsound(user.loc, sound, 50, vary) playsound(user.loc, sound, volume, vary)
@@ -1,4 +1,4 @@
/mob/living/silicon/pai/proc/update_icon() /mob/living/silicon/pai/update_icon()
if(chassis == "custom") //Make sure custom exists if it's set to custom if(chassis == "custom") //Make sure custom exists if it's set to custom
custom_holoform_icon = client?.prefs?.get_filtered_holoform(HOLOFORM_FILTER_PAI) custom_holoform_icon = client?.prefs?.get_filtered_holoform(HOLOFORM_FILTER_PAI)
if(!custom_holoform_icon) if(!custom_holoform_icon)
+85 -64
View File
@@ -70,48 +70,48 @@
message = "makes a very loud noise." message = "makes a very loud noise."
. = ..() . = ..()
/datum/emote/sound/carbon/snap
key = "snap"
key_third_person = "snaps"
muzzle_ignore = TRUE
restraint_check = TRUE
emote_type = EMOTE_AUDIBLE
sound = 'sound/effects/snap01.ogg'
mob_type_allowed_typecache = list(/mob/living/carbon, /mob/living/silicon/pai)
/datum/emote/living/snap /datum/emote/living/snap
key = "snap" key = "snap"
key_third_person = "snaps" key_third_person = "snaps"
message = "snaps their fingers." message = "snaps their fingers."
emote_type = EMOTE_AUDIBLE emote_type = EMOTE_AUDIBLE
muzzle_ignore = TRUE
restraint_check = TRUE
mob_type_allowed_typecache = list(/mob/living/carbon, /mob/living/silicon/pai)
/datum/emote/living/snap/run_emote(mob/living/user, params) /datum/emote/living/snap/run_emote(mob/living/user, params)
if(iscarbon(user) || ispAI(user)) if(!(. = ..()))
if(user.nextsoundemote >= world.time) return
return if(user.nextsoundemote >= world.time)
user.nextsoundemote = world.time + 7 return
playsound(user, 'modular_citadel/sound/voice/snap.ogg', 50, 1, -1) user.nextsoundemote = world.time + 7
. = ..() playsound(user, 'modular_citadel/sound/voice/snap.ogg', 50, 1, -1)
/datum/emote/living/snap2 /datum/emote/living/snap2
key = "snap2" key = "snap2"
key_third_person = "snaps twice" key_third_person = "snaps twice"
message = "snaps twice." message = "snaps twice."
emote_type = EMOTE_AUDIBLE emote_type = EMOTE_AUDIBLE
muzzle_ignore = TRUE
restraint_check = TRUE
mob_type_allowed_typecache = list(/mob/living/carbon, /mob/living/silicon/pai)
/datum/emote/living/snap2/run_emote(mob/living/user, params) /datum/emote/living/snap2/run_emote(mob/living/user, params)
if(iscarbon(user) || ispAI(user)) if(!(. = ..()))
if(user.nextsoundemote >= world.time) return
return if(user.nextsoundemote >= world.time)
user.nextsoundemote = world.time + 7 return
playsound(user, 'modular_citadel/sound/voice/snap2.ogg', 50, 1, -1) user.nextsoundemote = world.time + 7
. = ..() playsound(user, 'modular_citadel/sound/voice/snap2.ogg', 50, 1, -1)
/datum/emote/living/snap3 /datum/emote/living/snap3
key = "snap3" key = "snap3"
key_third_person = "snaps thrice" key_third_person = "snaps thrice"
message = "snaps thrice." message = "snaps thrice."
emote_type = EMOTE_AUDIBLE emote_type = EMOTE_AUDIBLE
muzzle_ignore = TRUE
restraint_check = TRUE
mob_type_allowed_typecache = list(/mob/living/carbon, /mob/living/silicon/pai)
/datum/emote/living/snap3/run_emote(mob/living/user, params) /datum/emote/living/snap3/run_emote(mob/living/user, params)
if(iscarbon(user) || ispAI(user)) if(iscarbon(user) || ispAI(user))
@@ -126,56 +126,68 @@
key_third_person = "lets out an awoo" key_third_person = "lets out an awoo"
message = "lets out an awoo!" message = "lets out an awoo!"
emote_type = EMOTE_AUDIBLE emote_type = EMOTE_AUDIBLE
muzzle_ignore = FALSE
restraint_check = FALSE
mob_type_allowed_typecache = list(/mob/living/carbon, /mob/living/silicon/pai)
/datum/emote/living/awoo/run_emote(mob/living/user, params) /datum/emote/living/awoo/run_emote(mob/living/user, params)
if(iscarbon(user) || ispAI(user)) if(!(. = ..()))
if(user.nextsoundemote >= world.time) return
return if(user.nextsoundemote >= world.time)
user.nextsoundemote = world.time + 7 return
playsound(user, 'modular_citadel/sound/voice/awoo.ogg', 50, 1, -1) user.nextsoundemote = world.time + 7
. = ..() playsound(user, 'modular_citadel/sound/voice/awoo.ogg', 50, 1, -1)
/datum/emote/living/nya /datum/emote/living/nya
key = "nya" key = "nya"
key_third_person = "lets out a nya" key_third_person = "lets out a nya"
message = "lets out a nya!" message = "lets out a nya!"
emote_type = EMOTE_AUDIBLE emote_type = EMOTE_AUDIBLE
muzzle_ignore = FALSE
restraint_check = FALSE
mob_type_allowed_typecache = list(/mob/living/carbon, /mob/living/silicon/pai)
/datum/emote/living/nya/run_emote(mob/living/user, params) /datum/emote/living/nya/run_emote(mob/living/user, params)
if(iscarbon(user) || ispAI(user)) if(!(. = ..()))
if(user.nextsoundemote >= world.time) return
return if(user.nextsoundemote >= world.time)
user.nextsoundemote = world.time + 7 return
playsound(user, 'modular_citadel/sound/voice/nya.ogg', 50, 1, -1) user.nextsoundemote = world.time + 7
. = ..() playsound(user, 'modular_citadel/sound/voice/nya.ogg', 50, 1, -1)
/datum/emote/living/weh /datum/emote/living/weh
key = "weh" key = "weh"
key_third_person = "lets out a weh" key_third_person = "lets out a weh"
message = "lets out a weh!" message = "lets out a weh!"
emote_type = EMOTE_AUDIBLE emote_type = EMOTE_AUDIBLE
muzzle_ignore = FALSE
restraint_check = FALSE
mob_type_allowed_typecache = list(/mob/living/carbon, /mob/living/silicon/pai)
/datum/emote/living/weh/run_emote(mob/living/user, params) /datum/emote/living/weh/run_emote(mob/living/user, params)
if(iscarbon(user) || ispAI(user)) if(!(. = ..()))
if(user.nextsoundemote >= world.time) return
return if(user.nextsoundemote >= world.time)
user.nextsoundemote = world.time + 7 return
playsound(user, 'modular_citadel/sound/voice/weh.ogg', 50, 1, -1) user.nextsoundemote = world.time + 7
. = ..() playsound(user, 'modular_citadel/sound/voice/weh.ogg', 50, 1, -1)
/datum/emote/living/peep /datum/emote/living/peep
key = "peep" key = "peep"
key_third_person = "peeps like a bird" key_third_person = "peeps like a bird"
message = "peeps like a bird!" message = "peeps like a bird!"
emote_type = EMOTE_AUDIBLE emote_type = EMOTE_AUDIBLE
muzzle_ignore = FALSE
restraint_check = FALSE
mob_type_allowed_typecache = list(/mob/living/carbon, /mob/living/silicon/pai)
/datum/emote/living/peep/run_emote(mob/living/user, params) /datum/emote/living/peep/run_emote(mob/living/user, params)
if(iscarbon(user) || ispAI(user)) if(!(. = ..()))
if(user.nextsoundemote >= world.time) return
return if(user.nextsoundemote >= world.time)
user.nextsoundemote = world.time + 7 return
playsound(user, 'modular_citadel/sound/voice/peep.ogg', 50, 1, -1) user.nextsoundemote = world.time + 7
. = ..() playsound(user, 'modular_citadel/sound/voice/peep.ogg', 50, 1, -1)
/datum/emote/living/dab /datum/emote/living/dab
key = "dab" key = "dab"
@@ -189,40 +201,49 @@
key_third_person = "lets out a tiny squeak" key_third_person = "lets out a tiny squeak"
message = "lets out a tiny squeak!" message = "lets out a tiny squeak!"
emote_type = EMOTE_AUDIBLE emote_type = EMOTE_AUDIBLE
muzzle_ignore = FALSE
restraint_check = FALSE
mob_type_allowed_typecache = list(/mob/living/carbon, /mob/living/silicon/pai)
/datum/emote/living/mothsqueak/run_emote(mob/living/user, params) /datum/emote/living/mothsqueak/run_emote(mob/living/user, params)
if(iscarbon(user) || ispAI(user)) if(!(. = ..()))
if(user.nextsoundemote >= world.time) return
return if(user.nextsoundemote >= world.time)
user.nextsoundemote = world.time + 7 return
playsound(user, 'modular_citadel/sound/voice/mothsqueak.ogg', 50, 1, -1) user.nextsoundemote = world.time + 7
. = ..() playsound(user, 'modular_citadel/sound/voice/mothsqueak.ogg', 50, 1, -1)
/datum/emote/living/merp /datum/emote/living/merp
key = "merp" key = "merp"
key_third_person = "merps" key_third_person = "merps"
message = "merps!" message = "merps!"
emote_type = EMOTE_AUDIBLE emote_type = EMOTE_AUDIBLE
muzzle_ignore = FALSE
restraint_check = FALSE
mob_type_allowed_typecache = list(/mob/living/carbon, /mob/living/silicon/pai)
/datum/emote/living/merp/run_emote(mob/living/user, params) /datum/emote/living/merp/run_emote(mob/living/user, params)
if(iscarbon(user) || ispAI(user)) if(!(. = ..()))
if(user.nextsoundemote >= world.time) return
return if(user.nextsoundemote >= world.time)
user.nextsoundemote = world.time + 7 return
playsound(user, 'modular_citadel/sound/voice/merp.ogg', 50, 1, -1) user.nextsoundemote = world.time + 7
. = ..() playsound(user, 'modular_citadel/sound/voice/merp.ogg', 50, 1, -1)
/datum/emote/living/bark /datum/emote/living/bark
key = "bark" key = "bark"
key_third_person = "barks" key_third_person = "barks"
message = "barks!" message = "barks!"
emote_type = EMOTE_AUDIBLE emote_type = EMOTE_AUDIBLE
muzzle_ignore = FALSE
restraint_check = FALSE
mob_type_allowed_typecache = list(/mob/living/carbon, /mob/living/silicon/pai)
/datum/emote/living/bark/run_emote(mob/living/user, params) /datum/emote/living/bark/run_emote(mob/living/user, params)
if(iscarbon(user) || ispAI(user)) if(!(. = ..()))
if(user.nextsoundemote >= world.time) return
return if(user.nextsoundemote >= world.time)
user.nextsoundemote = world.time + 7 return
var/sound = pick('modular_citadel/sound/voice/bark1.ogg', 'modular_citadel/sound/voice/bark2.ogg') user.nextsoundemote = world.time + 7
playsound(user, sound, 50, 1, -1) var/sound = pick('modular_citadel/sound/voice/bark1.ogg', 'modular_citadel/sound/voice/bark2.ogg')
. = ..() playsound(user, sound, 50, 1, -1)