This commit is contained in:
Fluffy
2023-12-10 14:51:47 +00:00
committed by GitHub
parent bc5e9c1cf0
commit 99c8ed7202
2 changed files with 43 additions and 2 deletions
@@ -41,13 +41,13 @@ Exercise Verbs
stop_pushups()
return
animate(src, pixel_y = target_y, time = 0.8 SECONDS, easing = QUAD_EASING) //down to the floor
if(!lying || !do_after(src, 0.6 SECONDS, do_flags = DO_EXERCISE))
if(!lying || !do_after(src, 0.6 SECONDS, do_flags = DO_EXERCISE, incapacitation_flags = (INCAPACITATION_RESTRAINED|INCAPACITATION_BUCKLED_PARTIALLY|INCAPACITATION_BUCKLED_FULLY|INCAPACITATION_KNOCKOUT)))
visible_message(SPAN_NOTICE("[src] stops doing pushups."), SPAN_NOTICE("You stop doing pushups."), SPAN_NOTICE("You hear movements."))
animate(src, pixel_y = 0, time = 0.2 SECONDS, easing = QUAD_EASING)
stop_pushups()
return
animate(src, pixel_y = 0, time = 0.8 SECONDS, easing = QUAD_EASING) //back up
if(!lying || !do_after(src, 0.6 SECONDS, do_flags = DO_EXERCISE))
if(!lying || !do_after(src, 0.6 SECONDS, do_flags = DO_EXERCISE, incapacitation_flags = (INCAPACITATION_RESTRAINED|INCAPACITATION_BUCKLED_PARTIALLY|INCAPACITATION_BUCKLED_FULLY|INCAPACITATION_KNOCKOUT)))
visible_message(SPAN_NOTICE("[src] stops doing pushups."), SPAN_NOTICE("You stop doing pushups."), SPAN_NOTICE("You hear movements."))
animate(src, pixel_y = 0, time = 0.2 SECONDS, easing = QUAD_EASING)
stop_pushups()