-
-
Notifications
You must be signed in to change notification settings - Fork 464
Closed
Description
Environment
- Operating System version: Linux
- Game/AppID (with version if applicable): Team Fortress 2
- Tested against SourceMod stable 1.9.0.6259, development 1.10.0.6353
- Tested against MetaMod:Source snapshot 1.11.0-dev+1116
Description
When the last plugin using OnLevelInit is unloaded (or reloaded), the forward never fires again.
Problematic Code (or Steps to Reproduce)
Below is levelinit_check.sp; all it does is report that OnLevelInit is called and logs it to a text file.
#pragma semicolon 1
#include <sourcemod>
#include <sdkhooks>
#pragma newdecls required
#pragma dynamic 1048576
public Action OnLevelInit(const char[] mapName, char mapEntities[2097152]) {
LogToFile("level_inits.txt", "-------- Level init on %s --------", mapName);
}
The test case assumes that no other plugin using OnLevelInit is loaded in.
If the plugin is installed before the server starts up:
- Message is correctly displayed on level init.
- Perform mapchange; message is correctly displayed on level init.
- Reload plugin via
sm plugins reload levelinit_check. - Perform mapchange, message is (incorrectly) not displayed.
Without the plugin present:
- Message is correctly not displayed on the first map.
- Install plugin and load via
sm plugins load levelinit_check. - Perform mapchange; message is correctly displayed.
- Reload plugin via
sm plugins reload levelinit_check. - Perform mapchange, message is (incorrectly) not displayed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels