Literally just remove old TODO's

This commit is contained in:
Jackzie 2021-05-23 15:26:10 -05:00
parent 8a76c34f8f
commit cc765def37
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
13 changed files with 6 additions and 21 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -22,8 +22,6 @@ static char lastSound[MAXPLAYERS+1][64];
static float OUT_OF_BOUNDS[3] = {0.0, -1000.0, 0.0};
//TODO: Auto increase abm_minplayers based on highest player count
public Plugin myinfo = {
name = "L4D2 Misc Tools",
author = "Includes: Notice on laser use, Timer for gauntlet runs",

View file

@ -28,7 +28,6 @@ enum trollMode {
Troll_VocalizeGag,
Troll_Meow
}
//TODO: Troll_Cat - play custom sounds
enum TrollModifier {
TrollMod_None = 0,
TrollMod_InstantFire = 1,
@ -117,7 +116,6 @@ int gChargerVictim = -1; //For charge player feature
//Applies the selected trollMode to the victim.
//Modifiers are as followed: 0 -> Both (fire instant, and timer), 1 -> Fire Once, 2 -> Start timer
//TODO: change it to only modifier at once? at least for instant fire & repeat. Menu runs ApplyMode twice
void ApplyModeToClient(int client, int victim, trollMode mode, TrollModifier modifier, bool silent = false) {
ResetClient(victim, false);
if(view_as<int>(mode) > TROLL_MODE_COUNT || view_as<int>(mode) < 0) {

View file

@ -21,8 +21,6 @@ int lastFF[MAXPLAYERS+1];
ConVar hForgivenessTime, hBanTime, hThreshold, hJoinTime, hAction;
//TODO: Toggle ban, kick, delayed ban, etc
public Plugin myinfo =
{
name = "TK Stopper",
@ -157,10 +155,6 @@ public void Event_PlayerDisconnect(Event event, const char[] name, bool dontBroa
isPlayerTroll[client] = false;
}
//TODO: Autopunish on troll instead of ban. Activate troll that does 0 damage from their guns & xswarm
public Action Event_OnTakeDamage(int victim, int& attacker, int& inflictor, float& damage, int& damagetype, int& weapon, float damageForce[3], float damagePosition[3]) {
if(damage > 0.0 && victim <= MaxClients && attacker <= MaxClients && attacker > 0 && victim > 0) {
if(GetUserAdmin(attacker) != INVALID_ADMIN_ID || isImmune[attacker] || IsFakeClient(attacker)) return Plugin_Continue;

View file

@ -69,7 +69,6 @@ public Action Timer_GetFlows(Handle h) {
}
}
//TODO: Cache flow rate every few frames
public Action Event_ButtonPress(const char[] output, int entity, int client, float delay) {
if(client > 0 && client <= MaxClients) {
if(panicStarted) {

View file

@ -214,8 +214,6 @@ public Action Event_PlayerFirstSpawn(Event event, const char[] name, bool dontBr
}
}
}
//TODO: First map wait for all, on contunation wait for checkpoint
//Provide extra kits when a player spawns (ahttps://www.youtube.com/watch?v=P1IcaBn3ejka after a map transition)
public Action Event_PlayerSpawn(Event event, const char[] name, bool dontBroadcast) {
int user = event.GetInt("userid");
int client = GetClientOfUserId(user);
@ -348,7 +346,6 @@ public Action Timer_Populate(Handle h) {
}
public void EntityOutput_OnStartTouchSaferoom(const char[] output, int caller, int client, float time) {
//TODO: Possibly check client (as entity) if it is a kit, to check that the kit being picked up is in saferoom?
if(!isCheckpointReached && client > 0 && client <= MaxClients && IsValidClient(client) && GetClientTeam(client) == 2) {
isCheckpointReached = true;
abmExtraCount = GetSurvivorsCount();
@ -409,9 +406,7 @@ public void OnEntityCreated(int entity, const char[] classname) {
}else if (StrEqual(classname, "upgrade_ammo_explosive") || StrEqual(classname, "upgrade_ammo_incendiary")) {
int index = ammoPacks.Push(entity);
ammoPacks.Set(index, new ArrayList(1), AMMOPACK_USERS);
CreateTimer(60.0, Timer_ResetAmmoPack, entity);
SDKHook(entity, SDKHook_Use, OnUpgradePackUse);
//TODO: Timer to reset clients
}
}
@ -482,6 +477,10 @@ public Action OnUpgradePackUse(int entity, int activator, int caller, UseType ty
if(currentAmmo > 10) ammo = 10;
}
}
//Reset after minute after first pickup
if(clients.Length == 0) {
CreateTimer(60.0, Timer_ResetAmmoPack, entity);
}
SetEntProp(primaryWeapon, Prop_Send, "m_nUpgradedPrimaryAmmoLoaded", ammo);
clients.Push(activator);
@ -568,7 +567,6 @@ public void PopulateItems() {
static char classname[32];
int affected = 0;
//TODO: Possibly convert to method of FindEntityByClassname
for(int i = MaxClients + 1; i < 2048; i++) {
if(IsValidEntity(i)) {
GetEntityClassname(i, classname, sizeof(classname));
@ -687,7 +685,7 @@ stock bool DoesClientHaveKit(int client) {
}
return false;
}
//TODO: fix bs
stock bool UseExtraKit(int client) {
if(extraKitsAmount > 0) {
isBeingGivenKit[client] = true;

View file

@ -149,8 +149,6 @@ public void Event_CarAlarm(Event event, const char[] name, bool dontBroadcast) {
//Ignore car alarms for autopunish
lastButtonUser = -1;
}
//TODO: Add cvar to turn on/off targetting incapped
//TODO: Auto Special Maagnet on Anti-rush
public Action L4D2_OnChooseVictim(int attacker, int &curTarget) {
// =========================
// OVERRIDE VICTIM

View file

@ -325,7 +325,7 @@ void RestoreState(int client, int index = 0) {
void ResetStates(int client) {
for(int stage = 0; stage < MAXIMUM_STAGES_STORED; stage++) {
playerStatesList[stage][client].incapState = 0;//TODO: get incap state
playerStatesList[stage][client].incapState = 0;
playerStatesList[stage][client].pillSlotItem[0] = '\0';
playerStatesList[stage][client].kitSlotItem[0] = '\0';
playerStatesList[stage][client].permHealth = 0;