mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
99 lines
2.9 KiB
Plaintext
99 lines
2.9 KiB
Plaintext
//This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:32
|
|
|
|
/**********************************************************************
|
|
Cyborg Spec Items
|
|
***********************************************************************/
|
|
//Might want to move this into several files later but for now it works here
|
|
// Consider changing this to a child of the stun baton class. ~Z
|
|
/obj/item/borg/stun
|
|
name = "electrified arm"
|
|
icon = 'icons/obj/decals.dmi'
|
|
icon_state = "shock"
|
|
|
|
/obj/item/borg/stun/attack(var/mob/living/M, var/mob/living/silicon/robot/user)
|
|
|
|
if(!istype(M))
|
|
return
|
|
|
|
// How the Hell.
|
|
if(!istype(user))
|
|
var/mob/living/temp = user
|
|
if(istype(temp))
|
|
temp.drop_from_inventory(src)
|
|
qdel(src)
|
|
return
|
|
|
|
M.attack_log += text("\[[time_stamp()]\] <font color='orange'>Has been attacked with [src.name] by [user.name] ([user.ckey])</font>")
|
|
user.attack_log += text("\[[time_stamp()]\] <font color='red'>Used the [src.name] to attack [M.name] ([M.ckey])</font>")
|
|
msg_admin_attack("[user.name] ([user.ckey]) used the [src.name] to attack [M.name] ([M.ckey]) (<A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=[user.x];Y=[user.y];Z=[user.z]'>JMP</a>)")
|
|
|
|
if(!user.cell || !user.cell.checked_use(1250)) //Slightly more than a baton.
|
|
user.visible_message("<span class='danger'>\The [user] has prodded \the [M] with its arm!</span>")
|
|
return
|
|
|
|
if (M.stuttering < 5)
|
|
M.stuttering = 5
|
|
M.stun_effect_act(0, 70, check_zone(user.zone_sel.selecting), src)
|
|
user.visible_message("<span class='danger'>\The [user] has prodded \the [M] with \a [src]!</span>")
|
|
if(ishuman(M))
|
|
var/mob/living/carbon/human/H = M
|
|
H.forcesay(hit_appends)
|
|
|
|
/obj/item/borg/overdrive
|
|
name = "overdrive"
|
|
icon = 'icons/obj/decals.dmi'
|
|
icon_state = "shock"
|
|
|
|
/**********************************************************************
|
|
HUD/SIGHT things
|
|
***********************************************************************/
|
|
/obj/item/borg/sight
|
|
icon = 'icons/obj/decals.dmi'
|
|
icon_state = "securearea"
|
|
var/sight_mode = null
|
|
|
|
|
|
/obj/item/borg/sight/xray
|
|
name = "\proper x-ray vision"
|
|
sight_mode = BORGXRAY
|
|
|
|
|
|
/obj/item/borg/sight/thermal
|
|
name = "\proper thermal vision"
|
|
sight_mode = BORGTHERM
|
|
icon_state = "thermal"
|
|
icon = 'icons/obj/clothing/glasses.dmi'
|
|
|
|
|
|
/obj/item/borg/sight/meson
|
|
name = "\proper meson vision"
|
|
sight_mode = BORGMESON
|
|
icon_state = "meson"
|
|
icon = 'icons/obj/clothing/glasses.dmi'
|
|
|
|
/obj/item/borg/sight/hud
|
|
name = "hud"
|
|
var/obj/item/clothing/glasses/hud/hud = null
|
|
|
|
|
|
/obj/item/borg/sight/hud/med
|
|
name = "medical hud"
|
|
icon_state = "healthhud"
|
|
icon = 'icons/obj/clothing/glasses.dmi'
|
|
|
|
New()
|
|
..()
|
|
hud = new /obj/item/clothing/glasses/hud/health(src)
|
|
return
|
|
|
|
|
|
/obj/item/borg/sight/hud/sec
|
|
name = "security hud"
|
|
icon_state = "securityhud"
|
|
icon = 'icons/obj/clothing/glasses.dmi'
|
|
|
|
New()
|
|
..()
|
|
hud = new /obj/item/clothing/glasses/hud/security(src)
|
|
return
|