mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Nerfs baton throwing (#23241)
* Ezpz * Removes unnecessary text * Adds the sound back * Baton now stuns the hit person * Present tense
This commit is contained in:
@@ -251,15 +251,13 @@
|
||||
L.SetStuttering(4 SECONDS)
|
||||
|
||||
ADD_TRAIT(L, TRAIT_WAS_BATONNED, user_UID) // so one person cannot hit the same person with two separate batons
|
||||
L.apply_status_effect(STATUS_EFFECT_DELAYED, 2 SECONDS, CALLBACK(L, TYPE_PROC_REF(/mob/living, KnockDown), knockdown_duration), COMSIG_LIVING_CLEAR_STUNS)
|
||||
addtimer(CALLBACK(src, PROC_REF(baton_delay), L, user_UID), 2 SECONDS)
|
||||
|
||||
SEND_SIGNAL(L, COMSIG_LIVING_MINOR_SHOCK, 33)
|
||||
|
||||
L.lastattacker = user.real_name
|
||||
L.lastattackerckey = user.ckey
|
||||
L.visible_message("<span class='danger'>[user] has stunned [L] with [src]!</span>",
|
||||
"<span class='userdanger'>[L == user ? "You stun yourself" : "[user] has stunned you"] with [src]!</span>")
|
||||
L.visible_message("<span class='danger'>[src] stuns [L]!</span>")
|
||||
add_attack_logs(user, L, "stunned")
|
||||
playsound(src, 'sound/weapons/egloves.ogg', 50, TRUE, -1)
|
||||
deductcharge(hitcost)
|
||||
|
||||
Reference in New Issue
Block a user