Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 23 additions & 12 deletions addons/sourcemod/scripting/include/lerpmonitor.inc
Original file line number Diff line number Diff line change
@@ -1,26 +1,36 @@
#if defined _lerpmonitor
#if defined __lerpmonitor_included
#endinput
#endif
#define _lerpmonitor
#define __lerpmonitor_included

/**
* @brief Get the player's saved lerp value
* @param client Client index
/**
* @brief Get the player's stored lerp time, if the stored value is not found in the array,
* then the current lerp time will be returned.
* @param client Client index.
*
* @return -1.0 if the current lerp time has not been saved, otherwise current lerp value
* @return The current lerp, if the value was not stored, otherwise the stored value from the array.
* @error If the client is not connected or the index is invalid.
*/
**/
native float LM_GetLerpTime(int client);

/**
* @brief Get the player's current lerp
* @param client Client index
/**
* @brief Get the player's current lerp time.
* @param client Client index.
*
* @return Current lerp value
* @return Current lerp time.
* @error Invalid client index, or client not connected.
*/
**/
native float LM_GetCurrentLerpTime(int client);

/**
* @brief Get the player's lerp time stored in the array.
* @param client Client index.
*
* @return Return -1.0 if the lerp time has not been saved, otherwise the stored lerp time.
* @error Invalid client index, or client not connected.
**/
native float LM_GetStoredLerpTime(int client);

public SharedPlugin __lerpmonitor =
{
name = "LerpMonitor++",
Expand All @@ -37,5 +47,6 @@ public void __pl_lerpmonitor_SetNTVOptional()
{
MarkNativeAsOptional("LM_GetLerpTime");
MarkNativeAsOptional("LM_GetCurrentLerpTime");
MarkNativeAsOptional("LM_GetStoredLerpTime");
}
#endif
Loading
Loading