Map Weapons Manager
Inspired by
AMXX plugin by danielkza.
The reason I made this plugin is because I myself was looking for a plugin that could do this, but couldn't find any.
Hopefully this will be of use to someone who is also looking for similar functionality.
Usage:
It's simple, enable the debug cvar and pickup a weapon that has been spawned by the map to be respawned. Once picked up there will be a log in the client console, with a command you can simply copy and paste into the console and click enter. Now there will be a file generated in the configs folder (map_weapon_spawns/map_name.spawns.txt)
Cvars:
sm_map_weapons_manager_on <0|1> - Enables the respawning functionality. (Default: 1)
sm_map_weapons_manager_debug <0|1> - Enables debug messages useful when adding new locations. (Default: 0)
sm_map_weapons_manager_time <time> - Set how long to wait before respawning the weapon. (Default: 10)
Note:
plugin.map_weapons_manager.cfg will be automatically generated in your SourceMod cfg directory.
Commands:
sm_create_weapon_spawn <weapon_name> <x> <y> <z> <angX> <angY> <angZ> - Creates weapon spawn at specified location for current map. (ADMFLAG_GENERIC)