mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-24 21:13:01 +00:00
do under-aim detection only on server
This commit is contained in:
parent
7c661aef6d
commit
3997d581e6
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
this.UpdateAimAnim (state);
|
||||
|
||||
// do this right after UpdateAimAnim(), because that's the state when weapon conducts attack
|
||||
if (Time.time - m_timeWhenDidUnderAimDetection >= PedManager.Instance.timeIntervalToUpdateUnderAimStatus)
|
||||
if (m_isServer && Time.time - m_timeWhenDidUnderAimDetection >= PedManager.Instance.timeIntervalToUpdateUnderAimStatus)
|
||||
{
|
||||
m_timeWhenDidUnderAimDetection = Time.time;
|
||||
UpdateUnderAimDetection(m_ped);
|
||||
|
|
Loading…
Reference in a new issue