View Single Post
xXDeathreusXx
Veteran Member
Join Date: Mar 2013
Location: pPlayer->GetOrigin();
Old 08-21-2015 , 22:18   Re: [TF2] Stop that Tank!
Reply With Quote #42

Quote:
Originally Posted by Potato Uno View Post
For the record: to load a workshop map, use "changelevel workshop/<mapid>". I have no idea what GetCurrentMap() returns when called. Maybe just do a "if (StrContains(MapName, "pl_") != -1)" somewhere?
If I'm not mistaken, it simply checks the currently loaded map, it might do string checks against the map folder, not sure

And how exactly does "changelevel workshop/<mapid>" work? Workshop maps are not contained inside tf, they appear in steamapps/workshop/content/440, unless Valve was actually smart this time
__________________
Plugins|Profile
Requests closed

I'm a smartass by nature, get used to it
xXDeathreusXx is offline