[L4D2] Retrieving the name/id of the campaign
Does anyone know a way where I could retrieve the campaign name/id based on the map name? For ex: I need to have a function where I would pass "c5m3_cemetery" as the argument and get "The Parish" as the result.
Been looking all over the web,so far no luck. If this is not possible, then my last option would be to create a mapping file, just wondering if there is an easier/better way to do it. |
Re: [L4D2] Retrieving the name/id of the campaign
Just check for the campaign in the map name? e.g.
PHP Code:
|
Re: [L4D2] Retrieving the name/id of the campaign
Rikka did some work around this kinda of thing.
https://github.com/rikka0w0/l4d2_mis...anager.inc#L32 I think that is what you are looking for. For valve maps you will usually get strings like "#L4D360UI_CampaignName_C1" which as translated clientsided. |
Re: [L4D2] Retrieving the name/id of the campaign
Quote:
Edit: This is exactly what I was looking for! |
All times are GMT -4. The time now is 02:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.