mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 16:10:02 +01:00
Adds the Tesla Gauntlet (#11277)
This commit is contained in:
@@ -119,6 +119,11 @@
|
||||
item_cost = 8
|
||||
path = /obj/item/gun/custom_ka/frame01/illegal
|
||||
|
||||
/datum/uplink_item/item/visible_weapons/teslagauntlet
|
||||
name = "Tesla Gauntlet"
|
||||
item_cost = 10
|
||||
path = /obj/item/clothing/gloves/tesla
|
||||
|
||||
/datum/uplink_item/item/visible_weapons/random_weapon
|
||||
name = "Random Gun"
|
||||
item_cost = 10
|
||||
|
||||
@@ -248,7 +248,6 @@
|
||||
item_state = "ballisticfist"
|
||||
siemens_coefficient = 1
|
||||
fingerprint_chance = 50
|
||||
siemens_coefficient = 1
|
||||
clipped = 1
|
||||
species_restricted = list("exclude",BODYTYPE_GOLEM,BODYTYPE_VAURCA_BREEDER,BODYTYPE_VAURCA_WARFORM)
|
||||
drop_sound = 'sound/items/drop/toolbox.ogg'
|
||||
@@ -315,3 +314,47 @@
|
||||
. = ..()
|
||||
if(mounted)
|
||||
mounted.switch_firemodes()
|
||||
|
||||
/obj/item/clothing/gloves/tesla
|
||||
name = "tesla gauntlet"
|
||||
desc = "A weaponized gauntlet capable of firing lightning bolts."
|
||||
desc_fluff = "A tesla-based weapon created by the People's Republic of Adhomai as part of their Tesla Brigade program. Because of its long recharge time, the gauntlet is commonly \
|
||||
used as an ancillary weapon."
|
||||
icon_state = "tesla_glove_on"
|
||||
item_state = "tesla_glove_on"
|
||||
siemens_coefficient = 1
|
||||
fingerprint_chance = 50
|
||||
clipped = TRUE
|
||||
species_restricted = list("exclude",BODYTYPE_GOLEM,BODYTYPE_VAURCA_BREEDER,BODYTYPE_VAURCA_WARFORM)
|
||||
drop_sound = 'sound/items/drop/toolbox.ogg'
|
||||
pickup_sound = 'sound/items/pickup/toolbox.ogg'
|
||||
gender = NEUTER
|
||||
var/charged = TRUE
|
||||
|
||||
/obj/item/clothing/gloves/tesla/Touch(atom/A, mob/living/user, proximity)
|
||||
if(!charged)
|
||||
to_chat(user, SPAN_WARNING("\The [src] is still recharging."))
|
||||
return
|
||||
|
||||
if(user.a_intent == I_HURT)
|
||||
var/turf/T = get_turf(user)
|
||||
user.visible_message(SPAN_DANGER("\The [user] crackles with energy!"))
|
||||
var/obj/item/projectile/beam/tesla/LE = new (T)
|
||||
playsound(usr.loc, 'sound/magic/LightningShock.ogg', 75, 1)
|
||||
LE.launch_projectile(A, user.zone_sel? user.zone_sel.selecting : null, user)
|
||||
charged = FALSE
|
||||
update_icon()
|
||||
user.update_inv_gloves()
|
||||
addtimer(CALLBACK(src, .proc/rearm), 30 SECONDS)
|
||||
|
||||
/obj/item/clothing/gloves/tesla/proc/rearm()
|
||||
visible_message(SPAN_NOTICE("\The [src] surges back with energy!"))
|
||||
charged = TRUE
|
||||
|
||||
/obj/item/clothing/gloves/tesla/update_icon()
|
||||
if(charged)
|
||||
icon_state = "tesla_glove_on"
|
||||
item_state = "tesla_glove_on"
|
||||
else
|
||||
icon_state = "tesla_glove"
|
||||
item_state = "tesla_glove"
|
||||
@@ -0,0 +1,6 @@
|
||||
author: Alberyk, Kyres1
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- rscadd: "Added the tesla gauntlet to the uplink."
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 27 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 38 KiB |
Reference in New Issue
Block a user