mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
EMPs jam units
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user