mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
[Client] Don't allow players to attack while in persuasion dialogue
This commit is contained in:
parent
397cdf400b
commit
5575242299
@ -376,6 +376,17 @@ namespace MWInput
|
||||
|
||||
else
|
||||
{
|
||||
/*
|
||||
Start of tes3mp addition
|
||||
|
||||
Prevent players from starting attacks while in the persuasion submenu in dialogue
|
||||
*/
|
||||
if (MWBase::Environment::get().getWindowManager()->containsMode(MWGui::GM_Dialogue))
|
||||
return;
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
|
||||
MWMechanics::DrawState_ state = MWBase::Environment::get().getWorld()->getPlayer().getDrawState();
|
||||
mPlayer->setAttackingOrSpell(currentValue != 0 && state != MWMechanics::DrawState_Nothing);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user