mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 23:53:47 +01:00
/obj/item/projectile --> /obj/projectile (#30411)
* yers * vars * map changes * some comments (clearly not stolen from items) * fix component * summary
This commit is contained in:
@@ -318,7 +318,7 @@
|
||||
return
|
||||
unstealth(source)
|
||||
|
||||
/obj/item/mod/module/stealth/proc/on_bullet_act(datum/source, obj/item/projectile)
|
||||
/obj/item/mod/module/stealth/proc/on_bullet_act(datum/source, obj/projectile)
|
||||
SIGNAL_HANDLER
|
||||
unstealth(source)
|
||||
|
||||
|
||||
@@ -119,16 +119,16 @@
|
||||
. = ..()
|
||||
if(!.)
|
||||
return
|
||||
var/obj/item/projectile/tether = new /obj/item/projectile/tether(get_turf(mod.wearer))
|
||||
var/obj/projectile/tether = new /obj/projectile/tether(get_turf(mod.wearer))
|
||||
tether.original = target
|
||||
tether.firer = mod.wearer
|
||||
tether.preparePixelProjectile(target, mod.wearer)
|
||||
tether.fire()
|
||||
playsound(src, 'sound/weapons/batonextend.ogg', 25, TRUE)
|
||||
INVOKE_ASYNC(tether, TYPE_PROC_REF(/obj/item/projectile/tether, make_chain))
|
||||
INVOKE_ASYNC(tether, TYPE_PROC_REF(/obj/projectile/tether, make_chain))
|
||||
drain_power(use_power_cost)
|
||||
|
||||
/obj/item/projectile/tether
|
||||
/obj/projectile/tether
|
||||
name = "tether"
|
||||
icon_state = "tether_projectile"
|
||||
icon = 'icons/obj/clothing/modsuit/mod_modules.dmi'
|
||||
@@ -141,18 +141,18 @@
|
||||
///How fast the tether will throw the user at the target
|
||||
var/yank_speed = 1
|
||||
|
||||
/obj/item/projectile/tether/proc/make_chain()
|
||||
/obj/projectile/tether/proc/make_chain()
|
||||
if(firer)
|
||||
chain = Beam(firer, chain_icon_state, icon, time = 10 SECONDS, maxdistance = range)
|
||||
|
||||
/obj/item/projectile/tether/on_hit(atom/target)
|
||||
/obj/projectile/tether/on_hit(atom/target)
|
||||
. = ..()
|
||||
if(firer && isliving(firer))
|
||||
var/mob/living/L = firer
|
||||
L.apply_status_effect(STATUS_EFFECT_IMPACT_IMMUNE)
|
||||
L.throw_at(target, 15, yank_speed, L, FALSE, FALSE, callback = CALLBACK(L, TYPE_PROC_REF(/mob/living, remove_status_effect), STATUS_EFFECT_IMPACT_IMMUNE), block_movement = FALSE)
|
||||
|
||||
/obj/item/projectile/tether/Destroy()
|
||||
/obj/projectile/tether/Destroy()
|
||||
QDEL_NULL(chain)
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -474,7 +474,7 @@
|
||||
. = ..()
|
||||
if(!.)
|
||||
return
|
||||
var/obj/item/projectile/bomb = new /obj/item/projectile/bullet/reusable/mining_bomb(get_turf(mod.wearer))
|
||||
var/obj/projectile/bomb = new /obj/projectile/bullet/reusable/mining_bomb(get_turf(mod.wearer))
|
||||
bomb.original = target
|
||||
bomb.firer = mod.wearer
|
||||
bomb.preparePixelProjectile(target, mod.wearer)
|
||||
@@ -494,7 +494,7 @@
|
||||
return
|
||||
on_deactivation()
|
||||
|
||||
/obj/item/projectile/bullet/reusable/mining_bomb
|
||||
/obj/projectile/bullet/reusable/mining_bomb
|
||||
name = "mining bomb"
|
||||
desc = "A bomb. Why are you staring at this?"
|
||||
icon_state = "mine_bomb"
|
||||
@@ -506,7 +506,7 @@
|
||||
light_color = LIGHT_COLOR_ORANGE
|
||||
ammo_type = /obj/structure/mining_bomb
|
||||
|
||||
/obj/item/projectile/bullet/reusable/mining_bomb/handle_drop()
|
||||
/obj/projectile/bullet/reusable/mining_bomb/handle_drop()
|
||||
if(!dropped)
|
||||
new ammo_type(loc, firer)
|
||||
dropped = TRUE
|
||||
@@ -566,7 +566,7 @@
|
||||
object.take_damage(damage, BRUTE, BOMB)
|
||||
qdel(src)
|
||||
|
||||
/obj/item/projectile/bullet/reusable/mining_bomb/mecha
|
||||
/obj/projectile/bullet/reusable/mining_bomb/mecha
|
||||
ammo_type = /obj/structure/mining_bomb/mecha
|
||||
|
||||
/obj/structure/mining_bomb/mecha
|
||||
|
||||
Reference in New Issue
Block a user