mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 11:34:19 +01:00
the code stepped out of line (#25786)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user