added racetimer lvl display and colour display to tiers
This commit is contained in:
@@ -288,8 +288,6 @@ public int Native_GetPlayerWorthRTV_boost(Handle plugin, int numParams)
|
||||
return view_as<int>(-1);
|
||||
}
|
||||
|
||||
int avg = GetAveragePlayerActiveTimeServer();
|
||||
|
||||
//give vips the rtv/nomination/mapvote boost by default
|
||||
AdminId id = GetUserAdmin(client);
|
||||
if (id != INVALID_ADMIN_ID && GetAdminFlag(id, Admin_Reservation))
|
||||
@@ -303,20 +301,7 @@ public int Native_GetPlayerWorthRTV_boost(Handle plugin, int numParams)
|
||||
return g_iPlayerRTVCapacity;
|
||||
}
|
||||
|
||||
if (g_iPlayerTimeServer[client] <= avg || avg == 0 || is_bot_player[client] || IsFakeClient(client))
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
if ((float(g_iPlayerTimeServer[client]) / float(avg)) > g_iPlayerRTVCapacity)
|
||||
{
|
||||
return g_iPlayerRTVCapacity; //1.0-5.0 booster probably
|
||||
}
|
||||
int val = RoundToFloor((g_iPlayerTimeServer[client]) / float(avg));
|
||||
if (val < 1)
|
||||
{
|
||||
val = 1;
|
||||
}
|
||||
return val;
|
||||
return 1;
|
||||
}
|
||||
|
||||
public void OnPluginEnd()
|
||||
@@ -722,6 +707,18 @@ public void PrintClientGroupOverrides(int client)
|
||||
char multi_nomination_tier[32];
|
||||
Format(multi_nomination_tier, sizeof(multi_nomination_tier), "tier%i", FindConVar("mce_multiple_nominations_tier").IntValue);
|
||||
|
||||
char lvl_chat_tag[32];
|
||||
Format(lvl_chat_tag, sizeof(lvl_chat_tag), "tier%i", FindConVar("sm_display_lvl_chat").IntValue);
|
||||
|
||||
char lvl_clan_tag[32];
|
||||
Format(lvl_clan_tag, sizeof(lvl_clan_tag), "tier%i", FindConVar("sm_display_lvl_clan").IntValue);
|
||||
|
||||
char lvl_chat_tag_multicolour[32];
|
||||
Format(lvl_chat_tag_multicolour, sizeof(lvl_chat_tag_multicolour), "tier%i", FindConVar("sm_display_lvl_chat_multi_colour").IntValue);
|
||||
|
||||
char lvl_chat_tag_allcolour[32];
|
||||
Format(lvl_chat_tag_allcolour, sizeof(lvl_chat_tag_allcolour), "tier%i", FindConVar("sm_display_lvl_chat_all_colour").IntValue);
|
||||
|
||||
menu.AddItem("-1", "Several tiers: playermodels in !zclass.", ITEMDRAW_DISABLED);
|
||||
menu.AddItem("-1", "Several tiers: grenade skins in !grenadeskins.", ITEMDRAW_DISABLED);
|
||||
|
||||
@@ -746,6 +743,23 @@ public void PrintClientGroupOverrides(int client)
|
||||
{
|
||||
Format(entry, sizeof(entry), "%s%s: Multiple nominations, ", entry, g_GroupNames[i]);
|
||||
}
|
||||
if (StrEqual(g_GroupNames[i], lvl_chat_tag))
|
||||
{
|
||||
Format(entry, sizeof(entry), "%s%s: LVL chat tag with one colour, ", entry, g_GroupNames[i]);
|
||||
}
|
||||
if (StrEqual(g_GroupNames[i], lvl_clan_tag))
|
||||
{
|
||||
Format(entry, sizeof(entry), "%s%s: LVL clan tag, ", entry, g_GroupNames[i]);
|
||||
}
|
||||
if (StrEqual(g_GroupNames[i], lvl_chat_tag_multicolour))
|
||||
{
|
||||
Format(entry, sizeof(entry), "%s%s: LVL chat tag with multi colours, ", entry, g_GroupNames[i]);
|
||||
}
|
||||
if (StrEqual(g_GroupNames[i], lvl_chat_tag_allcolour))
|
||||
{
|
||||
Format(entry, sizeof(entry), "%s%s: LVL chat tag with all colours, ", entry, g_GroupNames[i]);
|
||||
}
|
||||
|
||||
if (g_GroupFlags[i][0] != '\0' && StrEqual(g_GroupFlags[i], "aop"))
|
||||
{
|
||||
Format(entry, sizeof(entry), "%s%s: VIP, ", entry, g_GroupNames[i]);
|
||||
|
||||
Reference in New Issue
Block a user