Files
Aurora.3/code/modules/projectiles/targeting/targeting_gun.dm
Fluffy ab23fbdb70 Function overloads condensation (#18939)
Unified most of the procs into one definition, so there are no duplicate
around the codebase.
Marked some of the above as overridable if a good enough case can be
made for them (eg. external dependency or unlikely to be used).
2024-04-19 21:19:41 +00:00

10 lines
335 B
Plaintext

/obj/item/gun/equipped(mob/living/user, slot)
if(istype(user) && (slot != slot_l_hand && slot != slot_r_hand))
user.stop_aiming(src)
return ..()
//Compute how to fire.....
//Return TRUE if a target was found, FALSE otherwise.
/obj/item/gun/proc/PreFire(atom/A, mob/living/user, params)
return istype(user) && user.aim_at(A, src)