how do i disable gloves of warmth on the map: knife_zone?

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

Moderator: Forum Moderator

Post Reply
mo0n
Peon
Posts: 12
Joined: Wed Mar 14, 2007 6:43 pm

how do i disable gloves of warmth on the map: knife_zone?

Post by mo0n » Fri Apr 13, 2007 12:40 pm

any help would be greatly appreciated. thanks


--- Please enter the following information for support ---
War3ft Version: 2.3.2
Amxmodx Version: 1.76
Metamod Version: 1.76
amxx list:
amxx modules:
meta list:

User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou » Fri Apr 13, 2007 12:53 pm

By editing the code, yes
Image

No support via PM or Email

mo0n
Peon
Posts: 12
Joined: Wed Mar 14, 2007 6:43 pm

Post by mo0n » Fri Apr 13, 2007 9:12 pm

can you please elaborate?

User avatar
YamiKaitou
Forum Moderator
Forum Moderator
Posts: 1925
Joined: Wed Feb 01, 2006 4:33 pm
Contact:

Post by YamiKaitou » Fri Apr 13, 2007 9:25 pm

For 2.x you have to edit the code to change what maps disallow gloves.

For 3.x, there is a file that does it
Image

No support via PM or Email

User avatar
Krazy
Forum Administrator
Posts: 282
Joined: Wed Jul 06, 2005 9:40 am
Location: Dayton, Ohio
Contact:

Post by Krazy » Sat Apr 14, 2007 12:55 pm

In 3.0 there is a .cfg file where you can put the maps in that you want to disable orc nades or gloves. In 2.3.2 you can edit the war3ft/other.inl and add the maps you want to disable orc nades and gloves on.

To do what you want - open war3ft/other.inl and change this:

Code: Select all

	#if MOD ==0
		new mapname[32]
		get_mapname(mapname,31) 
		if (containi(mapname,"ka_")!=-1 || containi(mapname,"scoutzknivez")!=-1){
			g_givePistol=false
			if (iCvar[FT_NO_GLOVES_ON_KA])
				g_giveHE=false
			else
				g_giveHE=true
to

Code: Select all

	#if MOD ==0
		new mapname[32]
		get_mapname(mapname,31) 
		if (containi(mapname,"ka_")!=-1 || (containi(mapname,"knife_")!=-1 || containi(mapname,"scoutzknivez")!=-1){
			g_givePistol=false
			if (iCvar[FT_NO_GLOVES_ON_KA])
				g_giveHE=false
			else
				g_giveHE=true
then recompile the plugin
Website: www.djpsych.com
Image

Need help anything to do with Warcraft 3 Mod, installing other plugins, setting up mySQL, installing PsychoStats, or anything else just PM/email me!

Post Reply