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