Skip to content

TF2_OnIsHolidayActive forward does not get called anymore after a map change #1747

@Mikusch

Description

@Mikusch

Help us help you

  • I have checked that my issue doesn't exist yet.
  • I have tried my absolute best to reduce the problem-space and have provided the absolute smallest test-case possible.
  • I can always reproduce the issue with the provided description below.

Environment

  • Operating System version: Windows 10
  • Game/AppID (with version if applicable): Team Fortress 2 (App 440)
  • Current SourceMod version: 1.11.0.6867
  • Current Metamod: Source version: 1.11.0-dev+1145

Description

After changing the map, the TF2_OnIsHolidayActive forward does not get called anymore. Reloading a plugin that makes use of this forward fixes the issue.

Steps to Reproduce

  1. Load the plugin below. The console should get spammed.
  2. Change the map.
  3. TF2_OnIsHolidayActive does not get called anymore. Reloading the plugin causes the forward to get called again.
#include <sourcemod>
#include <tf2>

public Action TF2_OnIsHolidayActive(TFHoliday holiday, bool &result)
{
  PrintToServer("Called TF2_OnIsHolidayActive");
  return Plugin_Continue;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions