the code stepped out of line (#25786)

This commit is contained in:
Qwertytoforty
2024-06-05 16:24:04 -04:00
committed by GitHub
parent 670346384d
commit 3b9f0bc048
2 changed files with 0 additions and 9 deletions
@@ -67,10 +67,6 @@
"<span class='userdanger'>You evade [hitting_projectile]!</span>",
)
playsound(source, pick('sound/weapons/bulletflyby.ogg', 'sound/weapons/bulletflyby2.ogg', 'sound/weapons/bulletflyby3.ogg'), 75, TRUE)
var/dir_to_avoid = angle2dir_cardinal(hitting_projectile.Angle)
var/list/potential_first_directions = list(NORTH, SOUTH, EAST, WEST)
potential_first_directions -= dir_to_avoid
step(source, pick(potential_first_directions))
// Chance to dodge multiple shotgun spreads, but not likely. Mainly: Infinite loop prevention from admins setting it to 100 and doing something stupid.
// If you want to set your dodge chance to 100 on a subtype, no issue: Just make sure the subtype does not step in a direction, otherwise you'll have the mob move a large distance to dodge rubbershot.
if(prob(50))
@@ -108,11 +108,6 @@
"<span class='userdanger'>You evade [hitting_projectile]!</span>",
)
playsound(source, pick('sound/weapons/bulletflyby.ogg', 'sound/weapons/bulletflyby2.ogg', 'sound/weapons/bulletflyby3.ogg', 'sound/effects/refill.ogg'), 75, TRUE)
var/dir_to_avoid = angle2dir_cardinal(hitting_projectile.Angle)
var/list/potential_first_directions = list(NORTH, SOUTH, EAST, WEST)
potential_first_directions -= dir_to_avoid
new /obj/effect/temp_visual/decoy/fading(source.loc, source)
step(source, pick(potential_first_directions))
if(prob(50))
addtimer(VARSET_CALLBACK(source, advanced_bullet_dodge_chance, advanced_bullet_dodge_chance), 0.25 SECONDS)
advanced_bullet_dodge_chance = 0