mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
TG: (Does not actually change guns)
Guns with ammo no longer melee at point-blank range. They now fire normally. Guns without ammo you bash with. Revision: r3506 Author: VivianFoxfoot
This commit is contained in:
@@ -286,6 +286,21 @@ proc/isInSight(var/atom/A, var/atom/B)
|
|||||||
else
|
else
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
proc/doafterattack(obj/target , obj/source)
|
||||||
|
|
||||||
|
if (istype(target, /obj/item/weapon/storage/ ))
|
||||||
|
return 0
|
||||||
|
|
||||||
|
else if (locate (/obj/structure/table, source.loc))
|
||||||
|
return 0
|
||||||
|
|
||||||
|
else if (!istype(target.loc, /turf/))
|
||||||
|
return 0
|
||||||
|
|
||||||
|
else
|
||||||
|
return 1
|
||||||
|
|
||||||
proc/check_can_reach(atom/user, atom/target)
|
proc/check_can_reach(atom/user, atom/target)
|
||||||
if(!in_range(user,target))
|
if(!in_range(user,target))
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user