might as well JUMP! (#19088)

This commit is contained in:
Qwertytoforty
2022-09-25 17:35:10 +01:00
committed by GitHub
parent 33f7c1ef47
commit 51d7989e6f
2 changed files with 10 additions and 4 deletions
+5 -2
View File
@@ -284,8 +284,11 @@
return
var/atom/target = get_edge_target_turf(user, user.dir) //gets the user's direction
if(user.throw_at(target, jumpdistance, jumpspeed, spin = FALSE, diagonals_first = TRUE))
var/do_callback = FALSE
if(!user.flying)
user.flying = TRUE
do_callback = TRUE
if(user.throw_at(target, jumpdistance, jumpspeed, spin = FALSE, diagonals_first = TRUE, callback = do_callback ? VARSET_CALLBACK(user, flying, FALSE) : null))
playsound(src, 'sound/effects/stealthoff.ogg', 50, 1, 1)
user.visible_message("<span class='warning'>[usr] dashes forward into the air!</span>")
recharging_time = world.time + recharging_rate
+5 -2
View File
@@ -388,8 +388,11 @@
return
var/atom/target = get_edge_target_turf(user, user.dir) //gets the user's direction
if (user.throw_at(target, jumpdistance, jumpspeed, spin = FALSE, diagonals_first = TRUE))
var/do_callback = FALSE
if(!user.flying)
user.flying = TRUE
do_callback = TRUE
if(user.throw_at(target, jumpdistance, jumpspeed, spin = FALSE, diagonals_first = TRUE, callback = do_callback ? VARSET_CALLBACK(user, flying, FALSE) : null))
playsound(src, 'sound/effects/stealthoff.ogg', 50, 1, 1)
user.visible_message("<span class='warning'>[usr] dashes forward into the air!</span>")
recharging_time = world.time + recharging_rate