Merge pull request #4763 from VOREStation/upstream-merge-5950

[MIRROR] Fixes turrets, AI shooting, and makes mob AI shooting a little smarter.
This commit is contained in:
Novacat
2019-03-28 20:22:52 -04:00
committed by GitHub
4 changed files with 36 additions and 19 deletions
+1 -1
View File
@@ -313,7 +313,7 @@
originalRange = range
fired = TRUE
if(hitscan)
process_hitscan()
. = process_hitscan()
START_PROCESSING(SSprojectiles, src)
pixel_move(1, FALSE) //move it now!
+2 -1
View File
@@ -1,4 +1,5 @@
//Helper proc to check if you can hit them or not.
// Helper proc to check if you can hit them or not.
// Will return a list of hit mobs/objects.
/proc/check_trajectory(atom/target as mob|obj, atom/firer as mob|obj, var/pass_flags=PASSTABLE|PASSGLASS|PASSGRILLE, flags=null)
if(!istype(target) || !istype(firer))
return 0