mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-28 10:12:01 +00:00
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).
10 lines
335 B
Plaintext
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)
|