Raised This Month: $ Target: $400
 0% 

[CS:GO] Detecting what factions are used per map.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Advokat
Member
Join Date: Mar 2014
Location: Australia
Old 10-13-2015 , 11:36   [CS:GO] Detecting what factions are used per map.
Reply With Quote #1

I was looking at it the other day and ran into a dead end. Thought it might be a good idea to ask.

From what I read here the player factions are set in the .kv file for the map. Would anyone know of a way of detecting it on map start rather than just fetching a player's current model to figure it out?

I guess if you're unable to set it you're probably not able to detect it either but I thought it best to ask around, just in case.
Advokat is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 10-13-2015 , 17:01   Re: [CS:GO] Detecting what factions are used per map.
Reply With Quote #2

Read the maps kv file using the KeyValues API
__________________
Neuro Toxin is offline
Advokat
Member
Join Date: Mar 2014
Location: Australia
Old 10-14-2015 , 04:04   Re: [CS:GO] Detecting what factions are used per map.
Reply With Quote #3

I believe it's packed into the map file so not directly accessible. de_ali still has a .kv file left in the maps folder and I'm able to read from that but I think that may have just been missed when Valve changed the way .kv files were stored.

Last edited by Advokat; 10-14-2015 at 04:06.
Advokat is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode