forked from teamnwah/openmw-tes3coop
Allow player-controlled NPCs to have attack animations again
This commit is contained in:
parent
5efa5aa912
commit
25026a9b95
1 changed files with 5 additions and 1 deletions
|
|
@ -1312,7 +1312,11 @@ bool CharacterController::updateWeaponState()
|
||||||
mAttackType = "shoot";
|
mAttackType = "shoot";
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(mPtr == getPlayer())
|
// tes3mp needs player-controlled NPCs to not have their attacks
|
||||||
|
// cancelled here, so a 2nd condition has been added that should
|
||||||
|
// return true only for them
|
||||||
|
|
||||||
|
if(mPtr == getPlayer() || !mPtr.getBase()->canChangeCell)
|
||||||
{
|
{
|
||||||
if (isWeapon)
|
if (isWeapon)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue