mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 05:27:01 +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:
@@ -26,11 +26,11 @@
|
||||
if(parent)
|
||||
UnregisterSignal(parent, COMSIG_ATOM_BULLET_ACT)
|
||||
|
||||
/datum/component/debris/proc/register_for_impact(datum/source, obj/item/projectile/proj)
|
||||
/datum/component/debris/proc/register_for_impact(datum/source, obj/projectile/proj)
|
||||
SIGNAL_HANDLER // COMSIG_ATOM_BULLET_ACT
|
||||
INVOKE_ASYNC(src, PROC_REF(on_impact), proj)
|
||||
|
||||
/datum/component/debris/proc/on_impact(obj/item/projectile/P)
|
||||
/datum/component/debris/proc/on_impact(obj/projectile/P)
|
||||
var/angle = !isnull(P.Angle) ? P.Angle : round(get_angle(P.starting, parent), 1)
|
||||
var/x_component = sin(angle) * debris_velocity
|
||||
var/y_component = cos(angle) * debris_velocity
|
||||
|
||||
@@ -148,7 +148,7 @@
|
||||
if(rider.m_intent == MOVE_INTENT_WALK)
|
||||
vehicle_move_delay += 0.6
|
||||
|
||||
/datum/component/riding/vehicle/scooter/skateboard/proc/check_knockoff(datum/source, obj/item/projectile)
|
||||
/datum/component/riding/vehicle/scooter/skateboard/proc/check_knockoff(datum/source, obj/projectile)
|
||||
SIGNAL_HANDLER // COMSIG_ATOM_BULLET_ACT
|
||||
if(!istype(parent, /obj/tgvehicle/scooter/skateboard))
|
||||
return
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
var/charge_loss = 1 // how many charges do we lose
|
||||
|
||||
if(isprojectile(hitby))
|
||||
var/obj/item/projectile/P = hitby
|
||||
var/obj/projectile/P = hitby
|
||||
if(P.shield_buster)
|
||||
charge_loss = 3
|
||||
if(lose_multiple_charges)
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
if(I.flags & ABSTRACT)
|
||||
return
|
||||
if(isprojectile(entered))
|
||||
var/obj/item/projectile/P = entered
|
||||
var/obj/projectile/P = entered
|
||||
if(P.original != parent)
|
||||
return
|
||||
if(ismob(source))
|
||||
|
||||
Reference in New Issue
Block a user