HL2DM End of Map

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
Kami
Global Moderator
Posts: 263
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

HL2DM End of Map

Postby Kami » Wed Jan 04, 2017 10:22 am

Hey guys I have yet another question!

I've been trying to find a way to find the exact point in HL2DM where the final scoreboard on a map pops up and you cannot move.

The ultimate goal is to create a "nextmap" variable, that changes the map, before the server does it on its own.

I've tried OnLevelShutdown and OnLevelEnd which both seem to fire after host_changelevel:

Image

Any hints in what direction to look maybe? Thank you :)
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: HL2DM End of Map

Postby Ayuto » Wed Jan 04, 2017 12:14 pm

You could create a changelevel hook. E.g.:
https://github.com/Ayuto/EventScripts-E ... #L431-L448
User avatar
Kami
Global Moderator
Posts: 263
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Re: HL2DM End of Map

Postby Kami » Wed Jan 04, 2017 12:48 pm

Thank you very much this was a great idea! Works like a charm :)

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 31 guests