|
|
|
@ -28,14 +28,7 @@ namespace mwmp
|
|
|
|
|
{
|
|
|
|
|
LOG_APPEND(TimedLog::LOG_INFO, "- Packet was about %s", player->npc.mName.c_str());
|
|
|
|
|
|
|
|
|
|
MWMechanics::DynamicStat<float> health;
|
|
|
|
|
player->creatureStats.mDead = true;
|
|
|
|
|
health.readState(player->creatureStats.mDynamic[0]);
|
|
|
|
|
health.setCurrent(0);
|
|
|
|
|
health.writeState(player->creatureStats.mDynamic[0]);
|
|
|
|
|
|
|
|
|
|
MWWorld::Ptr ptr = static_cast<DedicatedPlayer*>(player)->getPtr();
|
|
|
|
|
ptr.getClass().getCreatureStats(ptr).setHealth(health);
|
|
|
|
|
static_cast<DedicatedPlayer*>(player)->die();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|