diff --git a/code/game/machinery/computer/arcade.dm b/code/game/machinery/computer/arcade.dm index 223f9024d2b..c9c6c6e81b9 100644 --- a/code/game/machinery/computer/arcade.dm +++ b/code/game/machinery/computer/arcade.dm @@ -35,6 +35,7 @@ /obj/item/toy/griffin = 2, /obj/item/weapon/coin/antagtoken = 2, /obj/item/stack/tile/fakespace/loaded = 2, + /obj/item/toy/toy_xeno = 2, ) /obj/machinery/computer/arcade/New() diff --git a/code/game/objects/items/toys.dm b/code/game/objects/items/toys.dm index 780de85afed..96d33205514 100644 --- a/code/game/objects/items/toys.dm +++ b/code/game/objects/items/toys.dm @@ -15,7 +15,8 @@ * Carp plushie * Foam armblade * Toy big red button - Beach ball + * Beach ball + * Toy xeno */ @@ -1171,4 +1172,32 @@ /obj/item/toy/beach_ball/afterattack(atom/target as mob|obj|turf|area, mob/user) user.drop_item() - src.throw_at(target, throw_range, throw_speed) \ No newline at end of file + src.throw_at(target, throw_range, throw_speed) + +/* + * Xenomorph action figure + */ + +/obj/item/toy/toy_xeno + icon = 'icons/obj/toy.dmi' + icon_state = "toy_xeno" + name = "xenomorph action figure" + desc = "MEGA presents the new Xenos Isolated action figure! Comes complete with realistic sounds! Pull back string to use." + w_class = 2 + var/cooldown = 0 + +/obj/item/toy/toy_xeno/attack_self(mob/user) + if(cooldown < world.time) + cooldown = (world.time + 50) //5 second cooldown + user.visible_message("[user] pulls back the string on [src].") + icon_state = "[initial(icon_state)]_used" + sleep(5) + audible_message("\icon[src] Hiss!") + var/list/possible_sounds = list('sound/voice/hiss1.ogg', 'sound/voice/hiss2.ogg', 'sound/voice/hiss3.ogg', 'sound/voice/hiss4.ogg') + var/chosen_sound = pick(possible_sounds) + playsound(get_turf(src), chosen_sound, 50, 1) + spawn(45) + icon_state = "[initial(icon_state)]" + else + user << "The string on [src] hasn't rewound all the way!" + return diff --git a/icons/obj/toy.dmi b/icons/obj/toy.dmi index 428dd8df22f..08fa4227dba 100644 Binary files a/icons/obj/toy.dmi and b/icons/obj/toy.dmi differ