TG update: Added the (almost finished) displacer. One minor bug with it to work out, does not actually spawn anywhere though so it shouldn't effect anything. Will try to finish it later tonight.

This commit is contained in:
Albert Iordache
2011-12-26 20:30:45 +02:00
parent f38a590009
commit 1fac967212
4 changed files with 53 additions and 3 deletions
+31
View File
@@ -51,6 +51,37 @@
return
/obj/item/weapon/cloaking_device/emp_act(severity)
active = 0
icon_state = "shield0"
..()
/obj/item/weapon/displacer
name = "displacer field"
desc = "Projects a specialized energy field designed to teleport the user out of harms way."
icon = 'device.dmi'
icon_state = "shield0"
var/active = 0.0
flags = FPRINT | TABLEPASS| CONDUCT| ONBELT
item_state = "electronic"
throwforce = 10.0
throw_speed = 2
throw_range = 10
w_class = 4.0
origin_tech = "magnets=3;bluespace=4"
/obj/item/weapon/displacer/attack_self(mob/user as mob)
src.active = !( src.active )
if (src.active)
user << "\blue The displacer field is now active."
src.icon_state = "shield1"
else
user << "\blue The displacer field is now inactive."
src.icon_state = "shield0"
src.add_fingerprint(user)
return
/obj/item/weapon/displacer/emp_act(severity)
active = 0
icon_state = "shield0"
..()
-2
View File
@@ -340,8 +340,6 @@ mob/proc/flash_weak_pain()
/obj/item/proc/IsShield()
return 0
/obj/item/proc/eyestab(mob/living/carbon/M as mob, mob/living/carbon/user as mob)
var/mob/living/carbon/human/H = M