Restrict Races
Posted: Fri Aug 17, 2007 4:48 pm
Hi, i'm using War3ft v3.0 RC8 and i have a question:
Doese anyone how can i do, or what should i do to restrict/disable a specific race from a specific map !?
... let's say orc's from ka_* maps.
or how can i do those *.cfg like "item_gloves.cfg" from disable folder
or what should i do to create those!
i have to change a code, that i know, but what code !? and what should i add, and where
===============================================
i tryed to add in race_orc.inl:
and in war3ft.inl:
but when i compile it give me an error, that "g_bOrcRaceDisabled" is not defined! and i don't know where to go to define it
like "g_bOrcNadesDisabled" is defined, or something like that!
===============================================
Please help, Please!!
I would be very grateful! 
Thank you in advanced!!
Doese anyone how can i do, or what should i do to restrict/disable a specific race from a specific map !?
... let's say orc's from ka_* maps.
or how can i do those *.cfg like "item_gloves.cfg" from disable folder
or what should i do to create those!
i have to change a code, that i know, but what code !? and what should i add, and where

===============================================
i tryed to add in race_orc.inl:
Code: Select all
// Check to see if this ras is allowed on this map
if ( g_bOrcRaceDisabled )
{
return false;
}
Code: Select all
g_bOrcRaceDisabled = WC3_MapDisableCheck( "skill_orc_race.cfg" );
like "g_bOrcNadesDisabled" is defined, or something like that!

===============================================
Please help, Please!!


Thank you in advanced!!