View Single Post
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 05-02-2009 , 03:27   Re: quake sounds [Revamped]
Reply With Quote #9

Grrrrrrrrrrrrrrrrrrr, I think the current method of setting game mod through recompiling is too tricky. You could simply use auto-detecting of game mods by the plugin. Something like this:
PHP Code:
decl String:gameName[80];
GetGameFolderName(gameName80);
    
if (
StrEqual(gameName"cstrike"))
{
    
// stuff for CS
}
else if (
StrEqual(gameName"dod"))
{
    
// stuff for DoD
}
else if (
StrEqual(gameName"tf"))
{
    
// stuff for TF
}
else if (
StrEqual(gameName"hl2mp"))
{
    
// stuff for HL2
}
else
{
    
// stuff for all other mods,
    // or you can force plugin to SetFailState here 
    // if other mods are not supported

__________________
For admins: My plugins

For developers: Colors library

Last edited by exvel; 05-02-2009 at 03:36.
exvel is offline
Send a message via ICQ to exvel