From ca417937e46b2b0790b06479b75fd41fe7645e6a Mon Sep 17 00:00:00 2001 From: shizcalev Date: Thu, 24 Aug 2017 15:09:24 -0400 Subject: [PATCH] OOGAOOGA --- .../living/simple_animal/hostile/gorilla/gorilla.dm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/code/modules/mob/living/simple_animal/hostile/gorilla/gorilla.dm b/code/modules/mob/living/simple_animal/hostile/gorilla/gorilla.dm index 2dfd879560e..25a887a5481 100644 --- a/code/modules/mob/living/simple_animal/hostile/gorilla/gorilla.dm +++ b/code/modules/mob/living/simple_animal/hostile/gorilla/gorilla.dm @@ -34,6 +34,7 @@ maxbodytemp = 350 unique_name = TRUE var/list/gorilla_overlays[GORILLA_TOTAL_LAYERS] + var/oogas = 0 // Gorillas like to dismember limbs from unconcious mobs. // Returns null when the target is not an unconcious carbon mob; a list of limbs (possibly empty) otherwise. @@ -50,6 +51,8 @@ return parts /mob/living/simple_animal/hostile/gorilla/AttackingTarget() + if(client) + oogaooga() var/list/parts = target_bodyparts(target) if(parts) if(!parts.len) @@ -79,3 +82,11 @@ /mob/living/simple_animal/hostile/gorilla/can_use_guns(obj/item/G) to_chat(src, "Your meaty finger is much too large for the trigger guard!") return FALSE + + +/mob/living/simple_animal/hostile/gorilla/proc/oogaooga() + oogas++ + if(oogas >= rand(2,6)) + playsound(src, "sound/creatures/gorilla.ogg", 200) + oogas = 0 +