mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 09:53:21 +00:00
Cleanup plugins
This commit is contained in:
parent
80170fb712
commit
0569bce3f1
6 changed files with 1 additions and 8 deletions
|
@ -159,7 +159,6 @@ public Action Timer_Active(Handle hdl) {
|
|||
return Plugin_Stop;
|
||||
}
|
||||
//TODO: Also check if startled and cancel it immediately.
|
||||
//TODO: X amount of tries, then ignore.
|
||||
if(AutoCrownBot > -1) {
|
||||
int client = GetClientOfUserId(AutoCrownBot);
|
||||
if(!IsValidEntity(AutoCrownTarget) || IsPlayerIncapped(client)) {
|
||||
|
|
|
@ -225,9 +225,6 @@ public Action Event_ReviveBegin(Event event, const char[] name, bool dontBroadca
|
|||
public void FTT_OnClientMarked(int troll, int marker) {
|
||||
RecordGlobalState("FTT_MARKED");
|
||||
}
|
||||
|
||||
//TODO: hook revive_begin (non-admins only?)
|
||||
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
// TIMERS
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -238,7 +235,6 @@ public Action Timer_AutoRecord(Handle h) {
|
|||
// METHODS
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
void RecordGlobalState(const char[] type, int skipTime = 0) {
|
||||
//TODO: Move playerStatesList[0][0-32] -> playerStatesList[1][0-32] -> playerStatesList[2][0-32]
|
||||
int time = GetTime();
|
||||
for(int i = MAXIMUM_STAGES_STORED - 2; i >= 0; i--) {
|
||||
TransferArray(i, i+1);
|
||||
|
|
|
@ -74,7 +74,6 @@ public void OnPluginStart()
|
|||
for(int i = 1; i <= MaxClients; i++) {
|
||||
if(IsClientConnected(i) && IsClientInGame(i) && IsPlayerAlive(i) && IsSurvivor(i))
|
||||
GetClientModel(i, g_Models[i], 64);
|
||||
//TODO: Convert ^ to ID
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -317,7 +316,6 @@ public Action Event_PlayerFirstSpawn(Event event, const char[] name, bool dontBr
|
|||
public void Frame_CheckClient(int userid) {
|
||||
int client = GetClientOfUserId(userid);
|
||||
if(client > 0 && GetClientTeam(client) == 2 && !IsFakeClient(client)) {
|
||||
//todo: hCookiesEnabled.IntVal
|
||||
if(++survivors > 4 && g_iPendingCookieModel[client] > 0) {
|
||||
//A model is set: Fetched from cookie
|
||||
|
||||
|
@ -427,7 +425,7 @@ stock int GetLeastUsedSurvivor(int client) {
|
|||
players++;
|
||||
}
|
||||
}
|
||||
//TODO: set starting number to be map-based.
|
||||
//TODO: set starting number to be character set based.
|
||||
//int start = players > 4
|
||||
for(int id = 0; id < 8; ++id) {
|
||||
if(count[id] == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue