mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-29 03:26:34 +01:00
projectiles v8 - raycasting (#6544)
Atomizing the physics solver out of #5934 Tldr this is way less overhead, complicated, and far more accurate than the old one
This commit is contained in:
@@ -4,13 +4,3 @@ PROCESSING_SUBSYSTEM_DEF(projectiles)
|
||||
stat_tag = "PP"
|
||||
priority = FIRE_PRIORITY_PROJECTILES
|
||||
subsystem_flags = SS_NO_INIT
|
||||
var/global_max_tick_moves = 10
|
||||
var/global_pixel_speed = 2
|
||||
var/global_iterations_per_move = 16
|
||||
|
||||
/datum/controller/subsystem/processing/projectiles/proc/set_pixel_speed(new_speed)
|
||||
global_pixel_speed = new_speed
|
||||
for(var/i in processing)
|
||||
var/obj/projectile/P = i
|
||||
if(istype(P)) //there's non projectiles on this too.
|
||||
P.set_pixel_speed(new_speed)
|
||||
|
||||
Reference in New Issue
Block a user