Now with lights

LIGHT
This commit is contained in:
shazbot194
2017-07-26 19:26:51 -08:00
parent 076008e44b
commit 8fcf5e0cec
3 changed files with 22 additions and 0 deletions
@@ -40,6 +40,7 @@
mag_type = /obj/item/ammo_box/magazine/m45/enforcer45
can_suppress = TRUE
unique_reskin = TRUE
can_flashlight = TRUE
/obj/item/weapon/gun/projectile/automatic/pistol/enforcer/update_icon()
..()
@@ -50,6 +51,14 @@
overlays.Cut()
if(suppressed)
overlays += image(icon = icon, icon_state = "enforcer_supp", pixel_x = 4)
if(gun_light)
var/iconF = "Enforcer_light"
if(gun_light.on)
iconF = "Enforcer_light-on"
overlays += image(icon = icon, icon_state = iconF, pixel_x = 3)
/obj/item/weapon/gun/projectile/automatic/pistol/enforcer/ui_action_click()
toggle_gunlight()
/obj/item/weapon/gun/projectile/automatic/pistol/enforcer/New()
..()
@@ -46,6 +46,19 @@
desc = "A foam version of the Enforcer meant to be used for training new caddets who can't be trusted with rubber bullets."
icon_state = "enforcer"
mag_type = /obj/item/ammo_box/magazine/toy/enforcer
can_flashlight = TRUE
/obj/item/weapon/gun/projectile/automatic/toy/pistol/enforcer/update_icon()
..()
overlays.Cut()
if(gun_light)
var/iconF = "Enforcer_light"
if(gun_light.on)
iconF = "Enforcer_light-on"
overlays += image(icon = 'icons/obj/guns/projectile.dmi', icon_state = iconF, pixel_x = 3)
/obj/item/weapon/gun/projectile/automatic/toy/pistol/enforcer/ui_action_click()
toggle_gunlight()
/obj/item/weapon/gun/projectile/shotgun/toy
name = "foam force shotgun"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB