mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user