[MIRROR] modsuit patch one [MDB IGNORE] (#10314)

* modsuit patch one (#63638)

Co-authored-by: MrMelbert <51863163+MrMelbert@ users.noreply.github.com>

* modsuit patch one

* Feex

Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com>
Co-authored-by: MrMelbert <51863163+MrMelbert@ users.noreply.github.com>
Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>
This commit is contained in:
SkyratBot
2021-12-28 07:30:17 +01:00
committed by GitHub
parent d2c8aeb782
commit 0e16b3b43e
28 changed files with 616 additions and 410 deletions

View File

@@ -67,6 +67,9 @@
/// number of times we've pierced something. Incremented BEFORE bullet_act and on_hit proc!
var/pierces = 0
/// If objects are below this layer, we pass through them
var/hit_threshhold = PROJECTILE_HIT_THRESHHOLD_LAYER
var/speed = 0.8 //Amount of deciseconds it takes for projectile to travel
var/Angle = 0
var/original_angle = 0 //Angle at firing
@@ -494,7 +497,7 @@
if(!isliving(target))
if(isturf(target)) // non dense turfs
return FALSE
if(target.layer < PROJECTILE_HIT_THRESHHOLD_LAYER)
if(target.layer < hit_threshhold)
return FALSE
else if(!direct_target) // non dense objects do not get hit unless specifically clicked
return FALSE