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:
parent
9f2408473f
commit
74ac59fed2
1 changed files with 11 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue