Raised This Month: $ Target: $400
 0% 

Detect Source game


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
neatek1
Member
Join Date: May 2011
Old 07-13-2011 , 11:48   Detect Source game
Reply With Quote #1

How to detect the game is CS:Source or Team Fortress 2?
neatek1 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-13-2011 , 11:54   Re: Detect Source game
Reply With Quote #2

GetGameFolderName

The string will be "cstrike" for CS:S or "tf" for Team Fortress 2.

I'm not sure about other games, but other valid values are likely "dods" for DOD:S, "hl2mp" for HL2:DM, "left4dead" for L4D, and "left4dead2" for L4D2.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Chrisber
AlliedModders Donor
Join Date: Jul 2007
Location: localhost
Old 07-13-2011 , 12:04   Re: Detect Source game
Reply With Quote #3

It's dod instead of dods
Chrisber is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-13-2011 , 12:20   Re: Detect Source game
Reply With Quote #4

Quote:
Originally Posted by Chrisber View Post
It's dod instead of dods
Ah, OK.

I knew the others because I've had CS:S, TF2, and L4D2 servers (and assumed L4D = L4d2 without the 2), but I've never run a DOD:S server.
__________________
Not currently working on SourceMod plugin development.
Powerlord 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 21:58.


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