make function not available to client

This commit is contained in:
Nathan TIEN YOU
2022-02-05 10:27:09 +01:00
parent ea48ab08ec
commit 8bbb9d24b3
@@ -392,7 +392,7 @@ bool function PlayerCanUseDecoy( entity ownerPlayer ) //For holopilot and HoloPi
return false return false
return true return true
} }
#if SERVER
void function PlayerUsesHoloRewind( entity player, entity decoy ) void function PlayerUsesHoloRewind( entity player, entity decoy )
{ {
thread PlayerUsesHoloRewindThreaded( player, decoy ) thread PlayerUsesHoloRewindThreaded( player, decoy )
@@ -442,4 +442,5 @@ void function PlayerUsesHoloRewindThreaded( entity player, entity decoy )
mover.NonPhysicsMoveTo( decoy.GetOrigin(), PHASE_REWIND_PATH_SNAPSHOT_INTERVAL, 0, 0 ) mover.NonPhysicsMoveTo( decoy.GetOrigin(), PHASE_REWIND_PATH_SNAPSHOT_INTERVAL, 0, 0 )
mover.NonPhysicsRotateTo( decoy.GetAngles(), PHASE_REWIND_PATH_SNAPSHOT_INTERVAL, 0, 0 ) mover.NonPhysicsRotateTo( decoy.GetAngles(), PHASE_REWIND_PATH_SNAPSHOT_INTERVAL, 0, 0 )
player.SetVelocity( decoy.GetVelocity() ) player.SetVelocity( decoy.GetVelocity() )
} }
#endif