Adds mime traitor item "Advanced mime gloves" (#11413)

* Adds mime traitor item

* SILENCED

* copy paste

* GUNS OF THE PATRIOTS

* placeholder description

* Drow Ranger for life

* gotta make sure they're not already silenced

* Changelog

* Let mime shoot through his own wall

* I don't play or even LIKE mime what am I doing
This commit is contained in:
JustSumBody
2016-08-25 15:01:34 -04:00
committed by clusterfack
parent b2ff7d70cc
commit 07ae37ba5a
9 changed files with 99 additions and 2 deletions

View File

@@ -161,3 +161,9 @@
desc = "[initial(desc)][BB ? "" : " This one is spent"]"
if(!BB)
icon_state = "762x55-casing"
/obj/item/ammo_casing/invisible
desc = "An invisible bullet casing, it's hard to tell if it's been spent or not."
projectile_type = "/obj/item/projectile/bullet/invisible"
icon_state = null

View File

@@ -158,4 +158,9 @@
/obj/item/ammo_storage/magazine/lawgiver/demolition
desc = "State-of-the-art bluespace technology allows this magazine to generate new rounds from energy, requiring only a power source to refill the full suite of ammunition types. This model is outfitted with high-explosive rounds."
flare_ammo_type = "/obj/item/ammo_casing/a75"
flare_ammo_type = "/obj/item/ammo_casing/a75"
/obj/item/ammo_storage/magazine/invisible
desc = "Reading how many shots you had left just got a lot more difficult."
ammo_type = "/obj/item/ammo_casing/invisible"
max_ammo = 2

View File

@@ -86,4 +86,26 @@
icon_state = "[initial(icon_state)][silenced ? "-silencer" : ""][chambered ? "" : "-e"]"
return
/obj/item/weapon/gun/projectile/handgun //mime fingergun
name = "hand-gun"
desc = "This is a stickup!"
icon_state = "handgun"
inhand_states = list("left_hand" = null, "right_hand" = null)
ammo_type = "/obj/item/ammo_casing/invisible"
mag_type = "/obj/item/ammo_storage/magazine/invisible"
cant_drop = TRUE
gun_flags = 0
silenced = TRUE
fire_sound = null
load_method = MAGAZINE
/obj/item/weapon/gun/projectile/handgun/RemoveMag(var/mob/user)
to_chat(user, "<span class = 'warning'>Try as you might, you can't seem to find a magazine on \the [src]!</span>")
/obj/item/weapon/gun/projectile/handgun/Fire(atom/target as mob|obj|turf|area, mob/living/user as mob|obj, params, reflex = 0, struggle = 0)
if(..())
if(silenced)
user.emote("me",1,"pretends to fire a gun at [target]!")
else
user.say(pick("BANG!", "BOOM!", "PEW!", "KAPOW!"))

View File

@@ -732,3 +732,17 @@
spawn()
B.process()
..()
/obj/item/projectile/bullet/invisible
name = "invisible bullet"
icon_state = null
damage = 25
fire_sound = null
/obj/item/projectile/bullet/invisible/on_hit(var/atom/target, var/blocked = 0) //silence the target for a few seconds on hit
if (..(target, blocked))
var/mob/living/L = target
if(L.silent && L.silent < 5)
L.silent = 5
return 1
return 0