Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
-Added support for Open Fortress to be used in upcoming SourceMod update
  • Loading branch information
rowedahelicon authored Oct 18, 2023
1 parent bf6b94b commit 573195f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/nativevotes.sp
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,7 @@ void PerformVisChecks(int client, ArrayList hVoteTypes)
Action hide = Plugin_Continue;

#if defined LOG
LogMessage("Checking visibility forward for %d: %d", voteData.CallVoteList_VoteType., g_CallVotes[voteData.CallVoteList_VoteType].CallVote_Vis);
LogMessage("Checking visibility forward for %d: %d", voteData.CallVoteList_VoteType, g_CallVotes[voteData.CallVoteList_VoteType].CallVote_Vis);
#endif
Call_StartForward(g_CallVotes[voteData.CallVoteList_VoteType].CallVote_Vis);
Call_PushCell(client);
Expand Down
8 changes: 8 additions & 0 deletions addons/sourcemod/scripting/nativevotes/game.sp
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ static ConVar g_Cvar_HideDisabledIssues;
static int s_nNativeVoteIdx = 0;

bool isTF2SDKModHack = false;

bool Game_IsGameSupported(char[] engineName="", int maxlength=0)
{
g_EngineVersion = GetEngineVersion();
Expand All @@ -395,6 +396,13 @@ bool Game_IsGameSupported(char[] engineName="", int maxlength=0)
return true;
}
}

//Fix for Open Fortress
if (g_EngineVersion == Engine_SDK2013 && StrEqual(gameDir, "open_fortress"))
{
g_EngineVersion = Engine_TF2;
return true;
}

return false;
}
Expand Down

0 comments on commit 573195f

Please sign in to comment.