mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Recoil mode check
Actually it just occurred to me that if you do have recoil_mode = 0 on any gun, it would go through with displaying the message that you dropped it anyway, even though you wouldn't because of the math.
This commit is contained in:
@@ -440,13 +440,14 @@
|
||||
if(recoil_mode && iscarbon(user))
|
||||
var/mob/living/carbon/nerd = user
|
||||
var/mysize = nerd.size_multiplier
|
||||
if(mysize <= 0.5)
|
||||
nerd.Weaken(1*recoil_mode)
|
||||
if(!istype(src,/obj/item/weapon/gun/energy))
|
||||
nerd.adjustBruteLoss((5-mysize*4)*recoil_mode)
|
||||
to_chat(nerd, "<span class='danger'>You're so tiny that you drop the gun and hurt yourself from the recoil!</span>")
|
||||
else
|
||||
to_chat(nerd, "<span class='danger'>You're so tiny that the pull of the trigger causes you to drop the gun!</span>")
|
||||
if(recoil_mode < 0)
|
||||
if(mysize <= 0.5)
|
||||
nerd.Weaken(1*recoil_mode)
|
||||
if(!istype(src,/obj/item/weapon/gun/energy))
|
||||
nerd.adjustBruteLoss((5-mysize*4)*recoil_mode)
|
||||
to_chat(nerd, "<span class='danger'>You're so tiny that you drop the gun and hurt yourself from the recoil!</span>")
|
||||
else
|
||||
to_chat(nerd, "<span class='danger'>You're so tiny that the pull of the trigger causes you to drop the gun!</span>")
|
||||
|
||||
//YAWNEDIT: Knockdown code end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user