From 0a54f63df5d82ffc15e9622dd2a6719555440447 Mon Sep 17 00:00:00 2001 From: MiranDMC Date: Mon, 28 Oct 2024 15:13:20 +0100 Subject: [PATCH] :memo: update commands --- sa/snippets/default/03C4.txt | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/sa/snippets/default/03C4.txt b/sa/snippets/default/03C4.txt index f346ea0d..9ee65c62 100644 --- a/sa/snippets/default/03C4.txt +++ b/sa/snippets/default/03C4.txt @@ -1 +1,18 @@ -display_onscreen_counter_with_string {var_counter} $sw4_health_display {display} CounterDisplay.Bar {text} 'DEAD' // WASTED \ No newline at end of file +// $sw4_health_display stores health bar in original game. Safe to use, except if "Ghetto Drive By" mission is in progress + +set_onscreen_counter_flash_when_first_displayed {var_counter} $sw4_health_display {state} true + +display_onscreen_counter_with_string {var_counter} $sw4_health_display {display} CounterDisplay.Bar {text} 'DEAD' // WASTED +$sw4_health_display = 10 // start with 10% + +// animate the bar +while $sw4_health_display < 100 + $sw4_health_display += 1 + wait 100 +end + +// display for one more second +wait 1000 + +// cleanup +clear_onscreen_counter {var_counter} $sw4_health_display \ No newline at end of file