Fixes turrets, AI shooting, and makes mob AI shooting a little smarter.

This commit is contained in:
Anewbe
2019-02-11 22:06:11 -06:00
committed by Novacat
parent f1da5f1f55
commit d2e8078348
3 changed files with 35 additions and 18 deletions

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