OnPlayerTick
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnPlayerTick( BasePlayer instance, PlayerTick msg, bool wasPlayerStalled )
{
Puts( "OnPlayerTick works!" );
}
Location
- BasePlayer::OnReceiveTick(PlayerTick msg, bool wasPlayerStalled)
csharp
//---
{
if (msg.inputState != null)
{
this.serverInput.Flip(msg.inputState);
}
if (Interface.CallHook("OnPlayerTick", this, msg, wasPlayerStalled) != null)
{
return;
}
if (this.serverInput.current.buttons != this.serverInput.previous.buttons)
{
//---