EMPs jam units

This commit is contained in:
devZoGok
2025-06-08 08:29:49 +03:00
parent 5421e6003f
commit c101c75b81
7 changed files with 54 additions and 68 deletions
+3 -4
View File
@@ -325,10 +325,9 @@ namespace battleship{
displayUnitStats(slot.foreground, slot.background, (int)((bool)slot.vehicle), (int)true, renderSelectables, slot.offset);
if (health <= DEATH_HP){
FxManager *fxManager = FxManager::getSingleton();
FxManager::Fx *deathFx = fxManager->initFx(generateView()[getGameObjTableName()][id + 1]["deathFx"], model, false, pos);
deathFx->toggleComponents(true);
fxManager->addFx(deathFx);
sol::table tbl = generateView()[getGameObjTableName()][id + 1]["deathFx"];
FxManager::Fx *fx = FxManager::getSingleton()->initFx(tbl, model, false, pos);
Environment::explode(fx, Environment::Detonation::EXPLOSION, pos);
remove = true;
}