mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-11 03:25:15 +00:00
L4D2Tools: Add autoexecconfig
This commit is contained in:
parent
a92a4aafc1
commit
bdddd851ef
2 changed files with 7 additions and 9 deletions
Binary file not shown.
|
@ -3,11 +3,7 @@
|
||||||
|
|
||||||
#define DEBUG
|
#define DEBUG
|
||||||
|
|
||||||
#define PLUGIN_NAME "L4D2 Misc Tools"
|
|
||||||
#define PLUGIN_DESCRIPTION "Includes: Notice on laser use, Timer for gauntlet runs"
|
|
||||||
#define PLUGIN_AUTHOR "jackzmc"
|
|
||||||
#define PLUGIN_VERSION "1.0"
|
#define PLUGIN_VERSION "1.0"
|
||||||
#define PLUGIN_URL ""
|
|
||||||
|
|
||||||
#include <sourcemod>
|
#include <sourcemod>
|
||||||
#include <sdktools>
|
#include <sdktools>
|
||||||
|
@ -19,11 +15,11 @@ ConVar hLaserNotice, hFinaleTimer, hFFNotice;
|
||||||
int iFinaleStartTime;
|
int iFinaleStartTime;
|
||||||
|
|
||||||
public Plugin myinfo = {
|
public Plugin myinfo = {
|
||||||
name = PLUGIN_NAME,
|
name = "L4D2 Misc Tools",
|
||||||
author = PLUGIN_AUTHOR,
|
author = "Includes: Notice on laser use, Timer for gauntlet runs",
|
||||||
description = PLUGIN_DESCRIPTION,
|
description = "jackzmc",
|
||||||
version = PLUGIN_VERSION,
|
version = PLUGIN_VERSION,
|
||||||
url = PLUGIN_URL
|
url = ""
|
||||||
};
|
};
|
||||||
|
|
||||||
public void OnPluginStart() {
|
public void OnPluginStart() {
|
||||||
|
@ -33,7 +29,7 @@ public void OnPluginStart() {
|
||||||
SetFailState("This plugin is for L4D/L4D2 only.");
|
SetFailState("This plugin is for L4D/L4D2 only.");
|
||||||
}
|
}
|
||||||
hLaserNotice = CreateConVar("sm_laser_use_notice", "1.0", "Enable notification of a laser box being used", FCVAR_NONE, true, 0.0, true, 1.0);
|
hLaserNotice = CreateConVar("sm_laser_use_notice", "1.0", "Enable notification of a laser box being used", FCVAR_NONE, true, 0.0, true, 1.0);
|
||||||
hFinaleTimer = CreateConVar("sm_time_finale", "2.0", "Record the time it takes to complete finale. 0 -> OFF, 1 -> Gauntlets Only, 2 -> All finales", FCVAR_NONE, true, 0.0, true, 2.0);
|
hFinaleTimer = CreateConVar("sm_time_finale", "0.0", "Record the time it takes to complete finale. 0 -> OFF, 1 -> Gauntlets Only, 2 -> All finales", FCVAR_NONE, true, 0.0, true, 2.0);
|
||||||
hFFNotice = CreateConVar("sm_ff_notice", "0.0", "Notify players if a FF occurs. 0 -> Disabled, 1 -> In chat, 2 -> In Hint text", FCVAR_NONE, true, 0.0, true, 2.0);
|
hFFNotice = CreateConVar("sm_ff_notice", "0.0", "Notify players if a FF occurs. 0 -> Disabled, 1 -> In chat, 2 -> In Hint text", FCVAR_NONE, true, 0.0, true, 2.0);
|
||||||
|
|
||||||
HookEvent("player_use", Event_PlayerUse);
|
HookEvent("player_use", Event_PlayerUse);
|
||||||
|
@ -43,6 +39,8 @@ public void OnPluginStart() {
|
||||||
HookEvent("finale_start", Event_FinaleStart);
|
HookEvent("finale_start", Event_FinaleStart);
|
||||||
HookEvent("finale_vehicle_leaving", Event_FinaleEnd);
|
HookEvent("finale_vehicle_leaving", Event_FinaleEnd);
|
||||||
|
|
||||||
|
AutoExecConfig(true, "l4d2_tools");
|
||||||
|
|
||||||
//RegAdminCmd("sm_respawn", Command_SpawnSpecial, ADMFLAG_CHEATS, "Respawn a dead survivor right where they died.");
|
//RegAdminCmd("sm_respawn", Command_SpawnSpecial, ADMFLAG_CHEATS, "Respawn a dead survivor right where they died.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue