1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-01 08:45:32 +00:00

[Client] Prevent allied players from breaking each other's sneaking

This commit is contained in:
David Cernat 2020-06-18 10:29:30 +03:00
parent 9f2408473f
commit 74ac59fed2

View file

@ -2357,6 +2357,17 @@ namespace MWMechanics
if (observer == player || observer.getClass().getCreatureStats(observer).isDead())
continue;
/*
Start of tes3mp addition
Don't make allied players break each other's sneaking
*/
if (MechanicsHelper::isTeamMember(observer, player))
continue;
/*
End of tes3mp addition
*/
if (world->getLOS(player, observer))
{
if (MWBase::Environment::get().getMechanicsManager()->awarenessCheck(player, observer))