mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Should fix the wounded accuracy gun bug
This commit is contained in:
@@ -326,6 +326,8 @@
|
||||
user.setMoveCooldown(move_delay)
|
||||
next_fire_time = world.time + fire_delay
|
||||
|
||||
accuracy = initial(accuracy) //Reset the gun's accuracy
|
||||
|
||||
if(muzzle_flash)
|
||||
set_light(0)
|
||||
|
||||
@@ -396,6 +398,8 @@
|
||||
//update timing
|
||||
next_fire_time = world.time + fire_delay
|
||||
|
||||
accuracy = initial(accuracy) //Reset the gun's accuracy
|
||||
|
||||
if(muzzle_flash)
|
||||
set_light(0)
|
||||
|
||||
@@ -482,11 +486,11 @@
|
||||
|
||||
// Certain statuses make it harder to aim, blindness especially. Same chances as melee, however guns accuracy uses multiples of 15.
|
||||
if(user.eye_blind)
|
||||
accuracy -= 5
|
||||
P.accuracy -= 5
|
||||
if(user.eye_blurry)
|
||||
accuracy -= 2
|
||||
P.accuracy -= 2
|
||||
if(user.confused)
|
||||
accuracy -= 3
|
||||
P.accuracy -= 3
|
||||
|
||||
//accuracy bonus from aiming
|
||||
if (aim_targets && (target in aim_targets))
|
||||
|
||||
Reference in New Issue
Block a user