SSthrowing (#19421)

Ported SSThrowing from TG, to handle throwings.
Updated movement system to the latest iteration, made it a datum as per
latest iteration.
Updated pass/hit handling of atoms, introduced pass_flag_self to
determine what atoms allow to pass.
Moved procs and defines around to make them more organized.
This commit is contained in:
Fluffy
2024-06-18 19:32:06 +00:00
committed by GitHub
parent 56a7300903
commit 92c3ec6caf
96 changed files with 1125 additions and 496 deletions
@@ -984,8 +984,9 @@ CIGARETTE PACKETS ARE IN FANCY.DM
else
..()
/obj/item/flame/lighter/throw_impact(mob/living/carbon/M as mob)
/obj/item/flame/lighter/throw_impact(atom/hit_atom)
. = ..()
var/mob/living/carbon/M = hit_atom
if(istype(M) && lit && M.IgniteMob())
M.visible_message(SPAN_DANGER("\The [M] is ignited by \the [src]!"))
@@ -309,7 +309,7 @@
update_icon()
src.shatter()
/obj/item/material/twohanded/spear/throw_impact(atom/target)
/obj/item/material/twohanded/spear/throw_impact(atom/hit_atom)
. = ..()
if(!.) //not caught
if(explosive)
@@ -6,6 +6,7 @@ var/list/tape_roll_applications = list()
icon = 'icons/obj/policetape.dmi'
icon_state = "tape"
w_class = ITEMSIZE_SMALL
pass_flags_self = PASSTABLE
var/static/list/hazard_overlays
var/turf/start
var/turf/end