View Single Post
Nanochip
Senior Member
Join Date: Jan 2014
Old 01-02-2018 , 10:22   Re: [TF2] Blocking round end when players die on 1 team
Reply With Quote #8

Derp.

Just fixed it, apparently you need to add the params to the hook even if you aren't going to use them:
PHP Code:
public void OnPluginStart
{
    
Handle gameFile LoadGameConfigFile("tf2.setwinningteam");
    
int offset GameConfGetOffset(gameFile"SetWinningTeam");
    
g_hSetWinningTeam DHookCreate(offsetHookType_GameRulesReturnType_VoidThisPointer_IgnoreHook_SetWinningTeam);
    
DHookAddParam(g_hSetWinningTeamHookParamType_Int);
    
DHookAddParam(g_hSetWinningTeamHookParamType_Int);
    
DHookAddParam(g_hSetWinningTeamHookParamType_Bool);
    
DHookAddParam(g_hSetWinningTeamHookParamType_Bool);
    
DHookAddParam(g_hSetWinningTeamHookParamType_Bool);
    
DHookAddParam(g_hSetWinningTeamHookParamType_Bool);

    
delete gameFile;

__________________
Nanochip is offline