MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / instaKill

Method instaKill

src/Savegame/BattleUnit.cpp:2356–2360  ·  view source on GitHub ↗

* Set health to 0 and set status dead - used when getting zombified. */

Source from the content-addressed store, hash-verified

2354 * Set health to 0 and set status dead - used when getting zombified.
2355 */
2356void BattleUnit::instaKill()
2357{
2358 _health = 0;
2359 _status = STATUS_DEAD;
2360}
2361
2362/**
2363 * Get sound to play when unit aggros.

Callers 6

nextStageMethod · 0.80
prepareDebriefingMethod · 0.80
convertUnitMethod · 0.80
handleMethod · 0.80
explodeMethod · 0.80
thinkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected