mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-06-06 22:56:23 +01:00
a86398d0d2
This PR rips out the old Bump() and Bumped() procs and replaces them with Collide() and CollidedWith() respectively. Behavior should be the same, but Bump() should no longer be double-called, and no longer relies on spawns. Other changes: LAssailant is now a weakref. Some direct loc setting are now forceMove().
12 lines
458 B
Plaintext
12 lines
458 B
Plaintext
/obj/item/weapon
|
|
name = "weapon"
|
|
icon = 'icons/obj/weapons.dmi'
|
|
hitsound = "swing_hit"
|
|
|
|
//Called when the user alt-clicks on something with this item in their active hand
|
|
//this function is designed to be overridden by individual weapons
|
|
/obj/item/weapon/proc/alt_attack(var/atom/target, var/mob/user)
|
|
return 1
|
|
//A return value of 1 continues on to do the normal alt-click action.
|
|
//A return value of 0 does not continue, and will not do the alt-click
|