mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 14:36:40 -04:00
[Client] Prevent allied players from breaking each other's sneaking
This commit is contained in:
parent
9f2408473f
commit
74ac59fed2
@ -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…
x
Reference in New Issue
Block a user