예제 #1
0
 protected virtual void NetFuncTriggerJump()
 {
     if (IsDead())
     {
         return;
     }
     if (movementSecure == MovementSecure.NotSecure && IsOwnerClient)
     {
         return;
     }
     // Play jump animation on non owner clients
     CharacterModel.PlayJumpAnimation();
 }
예제 #2
0
 public virtual void RequestTriggerJump()
 {
     if (IsDead())
     {
         return;
     }
     // Play jump animation immediately on owner client, if not running in server
     if (IsOwnerClient && !IsServer)
     {
         CharacterModel.PlayJumpAnimation();
     }
     // Play jump animation on other clients
     CallNetFunction(NetFuncTriggerJump, FunctionReceivers.All);
 }
예제 #3
0
 protected virtual void NetFuncTriggerJump()
 {
     if (IsDead())
     {
         return;
     }
     // Not play jump animation on owner client when running in not secure mode
     if (movementSecure == MovementSecure.NotSecure && IsOwnerClient && !IsServer)
     {
         return;
     }
     // Play jump animation on non owner clients
     CharacterModel.PlayJumpAnimation();
 }
예제 #4
0
 public virtual void RequestTriggerJump()
 {
     if (IsDead())
     {
         return;
     }
     // Play jump animation immediately on owner client
     if (IsOwnerClient)
     {
         CharacterModel.PlayJumpAnimation();
     }
     // Only server will call for clients to trigger jump animation for secure entity
     if (IsServer)
     {
         CallNetFunction(NetFuncTriggerJump, FunctionReceivers.All);
     }
 }