From a570730aa68ee9eed072196bee1739a3c827a7c9 Mon Sep 17 00:00:00 2001 From: bgkillas Date: Sun, 13 Oct 2024 11:52:50 -0400 Subject: [PATCH] make fire less weird hopefully --- .../files/system/game_effect_sync/game_effect_sync.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/quant.ew/files/system/game_effect_sync/game_effect_sync.lua b/quant.ew/files/system/game_effect_sync/game_effect_sync.lua index 50001e53..efc7c3a6 100644 --- a/quant.ew/files/system/game_effect_sync/game_effect_sync.lua +++ b/quant.ew/files/system/game_effect_sync/game_effect_sync.lua @@ -184,11 +184,14 @@ function effect_sync.apply_effects(effects, entity, perks) is_on_fire = true end end - if not is_on_fire then - local damage_model = EntityGetFirstComponentIncludingDisabled(entity, "DamageModelComponent") - if damage_model ~= nil then + local damage_model = EntityGetFirstComponentIncludingDisabled(entity, "DamageModelComponent") + if damage_model ~= nil then + if not is_on_fire then ComponentSetValue2(damage_model, "mFireProbability", 0) ComponentSetValue2(damage_model, "mFireFramesLeft", 0) + else + ComponentSetValue2(damage_model, "mFireProbability", 100) + ComponentSetValue2(damage_model, "mFireFramesLeft", 1000) end end end