mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
Allow player-controlled NPCs to have attack animations again
This commit is contained in:
parent
5efa5aa912
commit
25026a9b95
@ -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…
x
Reference in New Issue
Block a user