protected virtual void NetFuncTriggerJump() { if (IsDead()) { return; } if (movementSecure == MovementSecure.NotSecure && IsOwnerClient) { return; } // Play jump animation on non owner clients CharacterModel.PlayJumpAnimation(); }
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); }
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(); }
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); } }