View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-14-2019 , 13:17   Re: Plugin does not call OnPluginStart when changing map
Reply With Quote #7

Quote:
Originally Posted by dustinandband View Post
and in some situations OnMapStart() doesn't get called either. For example, in Left 4 Dead 2 survival, between when a round ends and the map restarts - OnMapStart() doesn't get called but if you hook the event "round_start" that gets called.

Only posting this cause I had to specifically debug that in a recent plugin. I'd imagine that's the equivalent of a round ending and another round starting in CS:GO.
Well yeah, OnMapStart is called on map load, not for a round change. Players get disconnected/reconnected and the server executes certain config files on map changes... none of which happens on round changes.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline