now reading tickrate from mapchooser config instead of separate file
This commit is contained in:
parent
06d0b43b9c
commit
80642cb0f0
@ -117,6 +117,7 @@ native int GetMapCooldownTime2(const char[] map); // in unix time
|
|||||||
native int GetMapLowPopHelpCount(const char[] map);
|
native int GetMapLowPopHelpCount(const char[] map);
|
||||||
native int GetMapLaserFag(const char[] map);
|
native int GetMapLaserFag(const char[] map);
|
||||||
native int GetMapTrails(const char[] map);
|
native int GetMapTrails(const char[] map);
|
||||||
|
native int GetMapTickRate(const char[] map);
|
||||||
native int GetMapMinTime(const char[] map);
|
native int GetMapMinTime(const char[] map);
|
||||||
native int GetMapMaxTime(const char[] map);
|
native int GetMapMaxTime(const char[] map);
|
||||||
native int GetMapMinPlayers(const char[] map);
|
native int GetMapMinPlayers(const char[] map);
|
||||||
|
|||||||
@ -478,6 +478,7 @@ public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max
|
|||||||
CreateNative("GetMapLowPopHelpCount", Native_GetMapLowPopHelpCount);
|
CreateNative("GetMapLowPopHelpCount", Native_GetMapLowPopHelpCount);
|
||||||
CreateNative("GetMapLaserFag", Native_GetMapLaserFag);
|
CreateNative("GetMapLaserFag", Native_GetMapLaserFag);
|
||||||
CreateNative("GetMapTrails", Native_GetMapTrails);
|
CreateNative("GetMapTrails", Native_GetMapTrails);
|
||||||
|
CreateNative("GetMapTickRate", Native_GetMapTickRate);
|
||||||
CreateNative("GetMapMinTime", Native_GetMapMinTime);
|
CreateNative("GetMapMinTime", Native_GetMapMinTime);
|
||||||
CreateNative("GetMapMaxTime", Native_GetMapMaxTime);
|
CreateNative("GetMapMaxTime", Native_GetMapMaxTime);
|
||||||
CreateNative("GetMapMinPlayers", Native_GetMapMinPlayers);
|
CreateNative("GetMapMinPlayers", Native_GetMapMinPlayers);
|
||||||
@ -2678,6 +2679,27 @@ public int Native_GetMapCooldownTime2(Handle plugin, int numParams)
|
|||||||
return InternalGetMapCooldownTime2(map);
|
return InternalGetMapCooldownTime2(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//GetMapTickRate
|
||||||
|
public int Native_GetMapTickRate(Handle plugin, int numParams)
|
||||||
|
{
|
||||||
|
int len;
|
||||||
|
GetNativeStringLength(1, len);
|
||||||
|
|
||||||
|
if(len <= 0)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
char[] map = new char[len+1];
|
||||||
|
GetNativeString(1, map, len+1);
|
||||||
|
int count = 0;
|
||||||
|
|
||||||
|
if (g_Config && g_Config.JumpToKey(map))
|
||||||
|
{
|
||||||
|
count = g_Config.GetNum("Tickrate", count);
|
||||||
|
g_Config.Rewind();
|
||||||
|
}
|
||||||
|
return count;
|
||||||
|
}
|
||||||
|
|
||||||
//GetMapTrails
|
//GetMapTrails
|
||||||
public int Native_GetMapTrails(Handle plugin, int numParams)
|
public int Native_GetMapTrails(Handle plugin, int numParams)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user