|
|
|
@ -629,7 +629,7 @@ namespace MWClass
|
|
|
|
|
mwmp::Main::get().getLocalPlayer()->attack.success = true;
|
|
|
|
|
mwmp::DedicatedPlayer *dedicatedPlayer = mwmp::Players::getPlayer(victim);
|
|
|
|
|
if (dedicatedPlayer != nullptr)
|
|
|
|
|
mwmp::Main::get().getLocalPlayer()->attack.targetGuid = dedicatedPlayer->guid;
|
|
|
|
|
mwmp::Main::get().getLocalPlayer()->attack.target.guid = dedicatedPlayer->guid;
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
End of tes3mp addition
|
|
|
|
@ -930,7 +930,7 @@ namespace MWClass
|
|
|
|
|
{
|
|
|
|
|
mwmp::Attack *attack = &mwmp::Main::get().getLocalPlayer()->attack;
|
|
|
|
|
attack->damage = damage;
|
|
|
|
|
attack->targetGuid = victimPlayer->guid;
|
|
|
|
|
attack->target.guid = victimPlayer->guid;
|
|
|
|
|
attack->knockdown = getCreatureStats(ptr).getKnockedDown();
|
|
|
|
|
mwmp::Main::get().getLocalPlayer()->sendAttack(mwmp::Attack::MELEE); // todo: make this sensitive to different weapon types
|
|
|
|
|
}
|
|
|
|
|