mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 02:01:22 +00:00
Makes it so that there is an actual tracer on the tesla cannon hitscan beam. (#90979)
This commit is contained in:
@@ -60,3 +60,15 @@
|
|||||||
|
|
||||||
/obj/effect/projectile/tracer/sniper
|
/obj/effect/projectile/tracer/sniper
|
||||||
icon_state = "sniper"
|
icon_state = "sniper"
|
||||||
|
|
||||||
|
/obj/effect/projectile/tracer/lightning
|
||||||
|
icon = 'icons/effects/beam.dmi'
|
||||||
|
icon_state = "lightning2"
|
||||||
|
|
||||||
|
/obj/effect/projectile/tracer/lightning/Initialize(mapload)
|
||||||
|
. = ..()
|
||||||
|
update_appearance()
|
||||||
|
|
||||||
|
/obj/effect/projectile/tracer/lightning/update_icon_state()
|
||||||
|
. = ..()
|
||||||
|
icon_state = "lightning[rand(1, 12)]"
|
||||||
|
|||||||
@@ -29,14 +29,10 @@
|
|||||||
name = "tesla bolt"
|
name = "tesla bolt"
|
||||||
icon_state = null
|
icon_state = null
|
||||||
hitscan = TRUE
|
hitscan = TRUE
|
||||||
|
tracer_type = /obj/effect/projectile/tracer/lightning
|
||||||
|
impact_effect_type = null
|
||||||
damage = 5
|
damage = 5
|
||||||
var/shock_damage = 10
|
var/shock_damage = 10
|
||||||
var/datum/beam/chain
|
|
||||||
|
|
||||||
/obj/projectile/energy/tesla_cannon/fire(setAngle)
|
|
||||||
if(firer)
|
|
||||||
chain = firer.Beam(src, icon_state = "lightning[rand(1, 12)]", time = 0.5 SECONDS)
|
|
||||||
return ..()
|
|
||||||
|
|
||||||
/obj/projectile/energy/tesla_cannon/on_hit(atom/target, blocked = 0, pierce_hit)
|
/obj/projectile/energy/tesla_cannon/on_hit(atom/target, blocked = 0, pierce_hit)
|
||||||
. = ..()
|
. = ..()
|
||||||
|
|||||||
Reference in New Issue
Block a user