Changes footsteps to use client timers, hopefully this will make them delete themselves consistently. (#10340)

This commit is contained in:
mikomyazaki
2020-10-26 13:32:42 +01:00
committed by GitHub
parent 1e591ba311
commit 9af261ef88
2 changed files with 42 additions and 1 deletions
+1 -1
View File
@@ -210,7 +210,7 @@
marker.filters += filter(type = "ripple", x=rand(-RIPPLE_POSITION_BOUNDS, RIPPLE_POSITION_BOUNDS), y=rand(-RIPPLE_POSITION_BOUNDS, RIPPLE_POSITION_BOUNDS), radius = RIPPLE_START_RADIUS, size = RIPPLE_START_SIZE, falloff = 0)
viewer.client.images += marker
QDEL_IN(marker, 1.5 SECONDS)
addtimer(CALLBACK(GLOBAL_PROC, .proc/qdel, marker), 1.5 SECONDS, TIMER_CLIENT_TIME)
animate(marker.filters[marker.filters.len], time = 1.5 SECONDS, radius = RIPPLE_END_RADIUS, size = RIPPLE_END_SIZE)
#undef ALWAYS_FOOTSTEP_DISTANCE