weak script not to hinder logout

This commit is contained in:
psyopcutie 2026-07-21 07:13:36 +02:00
parent 70b4c7e638
commit 4242be44b2

View file

@ -40,7 +40,7 @@ class AnimationCommandSet : CommandSet(Privilege.ADMIN) {
val animationTo = args[2].toInt()
val animationDelay = (args.getOrNull(3) ?: "3").toInt()
queueScript(player, 1, QueueStrength.STRONG) { stage: Int ->
queueScript(player, 1, QueueStrength.WEAK) { stage: Int ->
val animationId = animationFrom + stage
animate(player, animationId, true)
notify(player, "Playing animation $animationId")
@ -64,7 +64,7 @@ class AnimationCommandSet : CommandSet(Privilege.ADMIN) {
val animationDelay = (args.getOrNull(3) ?: "3").toInt()
var animationId = animationFrom
queueScript(player, 1, QueueStrength.STRONG) {
queueScript(player, 1, QueueStrength.WEAK) {
while (animationId <= animationTo && !HumanoidAnimationIds.contains(animationId)) {
animationId++
}
@ -95,7 +95,7 @@ class AnimationCommandSet : CommandSet(Privilege.ADMIN) {
var graphicsId = graphicsFrom
queueScript(player, 1, QueueStrength.SOFT) {
queueScript(player, 1, QueueStrength.WEAK) {
visualize(player, -1, Graphics(graphicsId, graphicsHeight))
notify(player, "Playing graphics $graphicsId")
@ -123,7 +123,7 @@ class AnimationCommandSet : CommandSet(Privilege.ADMIN) {
openInterface(player, interfaceId)
queueScript(player, 1, QueueStrength.SOFT) {
queueScript(player, 1, QueueStrength.WEAK) {
animateInterface(player, interfaceId, childId, animationId)
notify(player, "Playing interface animation $animationId on $interfaceId:$childId")
@ -153,7 +153,7 @@ class AnimationCommandSet : CommandSet(Privilege.ADMIN) {
var animationId = animationFrom
queueScript(player, 1, QueueStrength.SOFT) {
queueScript(player, 1, QueueStrength.WEAK) {
animateScenery(player, sceneryObject, animationId)
notify(player, "Playing scenery animation $animationId on scenery ${sceneryObject.id}")