From 8bbb9d24b31238c6aaa2a4d82063351ca9d3ab48 Mon Sep 17 00:00:00 2001 From: Nathan TIEN YOU Date: Sat, 5 Feb 2022 10:27:09 +0100 Subject: [PATCH] make function not available to client --- mod/scripts/vscripts/weapons/mp_ability_holopilot.nut | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mod/scripts/vscripts/weapons/mp_ability_holopilot.nut b/mod/scripts/vscripts/weapons/mp_ability_holopilot.nut index 9b8d2b4..07e7358 100644 --- a/mod/scripts/vscripts/weapons/mp_ability_holopilot.nut +++ b/mod/scripts/vscripts/weapons/mp_ability_holopilot.nut @@ -392,7 +392,7 @@ bool function PlayerCanUseDecoy( entity ownerPlayer ) //For holopilot and HoloPi return false return true } - +#if SERVER void function PlayerUsesHoloRewind( entity player, entity 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.NonPhysicsRotateTo( decoy.GetAngles(), PHASE_REWIND_PATH_SNAPSHOT_INTERVAL, 0, 0 ) player.SetVelocity( decoy.GetVelocity() ) -} \ No newline at end of file +} +#endif \ No newline at end of file