mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 22:12:58 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user