round actually ends on narsie & time defines (#14207)

* round actually ends on narsie

* time defines

* time defines
This commit is contained in:
ynot01
2022-05-28 17:56:57 -04:00
committed by GitHub
parent b187e1701d
commit a94aa9a6f4
273 changed files with 1079 additions and 1079 deletions

View File

@@ -63,7 +63,7 @@
SEND_SOUND(usr, get_sfx("terminal_type"))
transform = turn(matrix() * 0.9, pick(-8, 8))
alpha = 200
animate(src, transform = matrix(), time=4, alpha=255)
animate(src, transform = matrix(), time=0.4 SECONDS, alpha=255)
return TRUE
//Hide/Show Action Buttons ... Button

View File

@@ -62,7 +62,7 @@
if(client && hud_used)
hud_used.reorganize_alerts()
thealert.transform = matrix(32, 6, MATRIX_TRANSLATE)
animate(thealert, transform = matrix(), time = 2.5, easing = CUBIC_EASING)
animate(thealert, transform = matrix(), time = 0.25 SECONDS, easing = CUBIC_EASING)
if(thealert.timeout)
addtimer(CALLBACK(src, .proc/alert_timeout, thealert, category), thealert.timeout)
@@ -378,7 +378,7 @@ or shoot a gun to move around via Newton's 3rd Law of Motion."
if(sac_objective && !sac_objective.check_completion())
if(icon_state == "runed_sense0")
return
animate(src, transform = null, time = 1, loop = 0)
animate(src, transform = null, time = 0.1 SECONDS, loop = 0)
angle = 0
cut_overlays()
icon_state = "runed_sense0"
@@ -391,7 +391,7 @@ or shoot a gun to move around via Newton's 3rd Law of Motion."
desc = "The sacrifice is complete, summon Nar-Sie! The summoning can only take place in [english_list(summon_objective.summon_spots)]!"
if(icon_state == "runed_sense1")
return
animate(src, transform = null, time = 1, loop = 0)
animate(src, transform = null, time = 0.1 SECONDS, loop = 0)
angle = 0
cut_overlays()
icon_state = "runed_sense1"
@@ -440,7 +440,7 @@ or shoot a gun to move around via Newton's 3rd Law of Motion."
return
var/matrix/final = matrix(transform)
final.Turn(difference)
animate(src, transform = final, time = 5, loop = 0)
animate(src, transform = final, time = 0.5 SECONDS, loop = 0)

View File

@@ -1,7 +1,7 @@
#define CREDIT_ROLL_SPEED 60
#define CREDIT_SPAWN_SPEED 4
#define CREDIT_ROLL_SPEED 6 SECONDS
#define CREDIT_SPAWN_SPEED 0.4 SECONDS
#define CREDIT_ANIMATE_HEIGHT (16 * world.icon_size) //13 would cause credits to get stacked at the top of the screen, so we let them go past the top edge
#define CREDIT_EASE_DURATION 12
#define CREDIT_EASE_DURATION 1.2 SECONDS
GLOBAL_LIST(end_titles)

View File

@@ -20,7 +20,7 @@
return screen
/mob/proc/clear_fullscreen(category, animated = 10)
/mob/proc/clear_fullscreen(category, animated = 1 SECONDS)
var/obj/screen/fullscreen/screen = screens[category]
if(!screen)
return

View File

@@ -167,7 +167,7 @@
L.transform = newtransform
animate(L, transform = L.transform, time = 0, loop = -1, flags = ANIMATION_END_NOW)
animate(L, transform = L.transform, time = 0 SECONDS, loop = -1, flags = ANIMATION_END_NOW)
animate(transform = matrix(), time = T)
/datum/hud/proc/update_parallax()

View File

@@ -715,10 +715,10 @@
if(QDELETED(src))
return
if(out)
animate(src, alpha = 0, time = 30)
animate(src, alpha = 0, time = 3 SECONDS)
else
alpha = 0
animate(src, alpha = 255, time = 30)
animate(src, alpha = 255, time = 3 SECONDS)
if(qdel_after)
QDEL_IN(src, 30)