Restrict Races

Want to talk about war3ft or make suggestions? Post them here

Moderator: Forum Moderator

Post Reply
DaRk`SouL
Peon
Posts: 2
Joined: Fri Aug 17, 2007 4:03 pm

Restrict Races

Post by DaRk`SouL » 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 :roll:

===============================================

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;
	}

and in war3ft.inl:

Code: Select all

	g_bOrcRaceDisabled		= WC3_MapDisableCheck( "skill_orc_race.cfg" );
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! :x

===============================================


Please help, Please!! :( I would be very grateful! :shock:
Thank you in advanced!!

Kambfhase
Peon
Posts: 19
Joined: Wed May 09, 2007 9:25 am

Post by Kambfhase » Sun Aug 19, 2007 4:08 am

i think the easiest way is to change the menu so one can nolonger choose orc. that should be possible.

User avatar
kevlartester
Militia
Posts: 75
Joined: Tue Nov 14, 2006 10:26 am
Location: Germany
Contact:

Post by kevlartester » Sun Aug 19, 2007 4:09 am

how to disable a full race on a specific map? sty i cannot tell you...
but i can tell you how to disable some skills on specific maps

go to:
.../addons/amxmodx/configs/war3ft/disable/

you will find 3 files in there:
item_gloves.cfg
skill_mole_shopzone.cfg
skill_orc_nade.cfg

in each you can enter the maps you want this skill to be disabled.
e.g.: to disable the orcnade on all ka_ maps just open "skill_orc_nade.cfg" and add this line:
ka_*

that should disable the orcnade on all ka maps...
Image

DaRk`SouL
Peon
Posts: 2
Joined: Fri Aug 17, 2007 4:03 pm

Post by DaRk`SouL » Sun Aug 19, 2007 7:34 pm

thank you verry much! i found how to do to create those *.cfg and so on ... no need for help :roll:

but i have 1 question, if you don't mind!

i see that the new "Updates" are full of bugs :x and i don't like!

Q: can i modify the code from my old war3ft, to disable a rase, items/gloves/nades!?
Q: is that ok !? or i'm at variance with copyrights here !? :?


Thanks again for all the help! but what you told me .. with the "disable" folder which contains the *.cfg for disableing orc nade and gloves, i allready knew that!! THANKS :mrgreen:

Post Reply