Adds a sniper bolt action rifle (#15899)

* Adds a sniper bolt action rifle

* Update code/modules/mob/mob_helpers.dm

Co-authored-by: mikomyazaki <47489928+mikomyazaki@users.noreply.github.com>

* hunting

* scope for him too

---------

Co-authored-by: mikomyazaki <47489928+mikomyazaki@users.noreply.github.com>
This commit is contained in:
Alberyk
2023-03-06 13:10:01 +00:00
committed by GitHub
co-authored by mikomyazaki
parent ae948d0de6
commit fa603b245b
6 changed files with 28 additions and 4 deletions
+2
View File
@@ -444,6 +444,8 @@ It's fairly easy to fix if dealing with single letters but not so much with comp
var/current_time = world.time
if(!M || !M.client || (M.shakecamera > current_time)|| M.stat || isEye(M) || isAI(M))
return
if(((M.client.view != world.view) || (M.client.pixel_x != 0) || (M.client.pixel_y != 0))) //to prevent it while zooming, because zoom does not play well with this code
return
M.shakecamera = current_time + max(TICKS_PER_RECOIL_ANIM, duration)
strength = abs(strength)*PIXELS_PER_STRENGTH_VAL
var/steps = min(1, Floor(duration/TICKS_PER_RECOIL_ANIM))-1