Other ultimates and skills disabled on seected maps

Read log files for errors! If this fails, come here for help

Moderator: Forum Moderator

Post Reply
User avatar
(--eRRoR--)
Peon
Posts: 25
Joined: Sun Jul 13, 2008 8:22 pm
Location: Romania / Petrosani
Contact:

Other ultimates and skills disabled on seected maps

Post by (--eRRoR--) » Fri Jul 23, 2010 6:20 am

Hi there u guys who love war3ft.
I am triing to add the teleport ultimate,lightning ultimate and the suicide ultimate to be restricted on maps like fy_* and aim_*
and here its wath i have done so far:
in constants.inl after

Code: Select all

new bool:g_bGlovesDisabled = false;
i added

Code: Select all

new bool:g_bOrcUltDisabled = false;
new bool:g_bCryptUltDisabled = false;
new bool:g_bHumanUltDisabled = false;
in ultimates.inl
after

Code: Select all

ULT_Available( id )
{
add

Code: Select all

	if ( p_data[id][P_RACE] == RACE_HUMAN || p_data[id][P_RACE] == RACE_ORC || p_data[id][P_RACE] == RACE_CRYPT )
	{	if( g_bHumanUltDisabled || g_bOrcUltDisabled || g_bCryptUltDisabled )
		{	client_print( id, print_chat, "Ultimate is disabled on this map!" );
			return false;
		}
	}
and in war3ft.inl
after

Code: Select all

	g_bGlovesDisabled			= WC3_MapDisableCheck( "item_gloves.cfg" );
i added

Code: Select all

	g_bOrcUltDisabled			= WC3_MapDisableCheck( "ult_orc.cfg" );
	g_bCryptUltDisabled		= WC3_MapDisableCheck( "ult_crypt.cfg" );
	g_bHumanUltDisabled		= WC3_MapDisableCheck( "ult_human.cfg" );
The plugin compiles fine but in the ultimates arent restricted.
IS there something that i didnt made for this to work?
Image

User avatar
(--eRRoR--)
Peon
Posts: 25
Joined: Sun Jul 13, 2008 8:22 pm
Location: Romania / Petrosani
Contact:

Re: Other ultimates and skills disabled on seected maps

Post by (--eRRoR--) » Sun Jul 25, 2010 5:51 am

so much suport and help :(
Image

Post Reply