Skip to content

Commit

Permalink
Boss Pack Vote Cvar
Browse files Browse the repository at this point in the history
  • Loading branch information
Batfoxkid committed Feb 11, 2024
1 parent 78aec66 commit a3c5222
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion addons/sourcemod/scripting/freak_fortress_2.sp
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,9 @@ enum
AggressiveOverlay,
AggressiveSwap,

SubpluginFolder,
FileCheck,
PackVotes,
SubpluginFolder,

SoundType,
BossTriple,
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/freak_fortress_2/configs.sp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ bool Configs_SetMap(const char[] mapname)

public void Configs_StartVote(ConVar cvar, const char[] oldValue, const char[] newValue)
{
if(!VotedPack && Bosses_GetCharsetLength() > 1 && Configs_MapIsGamemode(newValue))
if(!VotedPack && Cvar[PackVotes].BoolValue && Bosses_GetCharsetLength() > 1 && Configs_MapIsGamemode(newValue))
{
VotedPack = true;
RequestFrame(Configs_PackVoteFrame);
Expand Down
1 change: 1 addition & 0 deletions addons/sourcemod/scripting/freak_fortress_2/convars.sp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ void ConVar_PluginStart()
Cvar[Telefrags] = CreateConVar("ff2_game_telefrag", "5000", "How much damage telefrags do on bosses");
Cvar[SubpluginFolder] = CreateConVar("ff2_plugin_subplugins", "freaks", "Folder to load/unload when bosses are at play relative to the plugins folder.");
Cvar[FileCheck] = CreateConVar("ff2_plugin_checkfiles", "1", "If to check and warn about missing files from bosses. (Disabling this can help load times.)", _, true, 0.0, true, 1.0);
Cvar[PackVotes] = CreateConVar("ff2_plugin_packvotes", "1", "If to host a boss pack vote when the next map is set.", _, true, 0.0, true, 1.0);

CreateConVar("ff2_oldjump", "1", "Backwards Compatibility ConVar", FCVAR_DONTRECORD|FCVAR_HIDDEN, true, 0.0, true, 1.0);
CreateConVar("ff2_base_jumper_stun", "0", "Backwards Compatibility ConVar", FCVAR_DONTRECORD|FCVAR_HIDDEN, true, 0.0, true, 1.0);
Expand Down

0 comments on commit a3c5222

Please sign in to comment.