Page 1 of 1

Orc nade cvar

Posted: Sat Nov 12, 2005 5:13 am
by *ZhG*RasterMan
I know that wc3xp uses the orc nade cvar 0/1 So is it possable to add it to wc3ft :?: as a have a few fun maps i.e awp and the critical nade is driving people mad :wink:

Posted: Sat Nov 12, 2005 10:27 am
by Geesu
This has been discussed before (on the old forums though)... And there is no way I will add this feature

Posted: Sun Nov 13, 2005 4:02 am
by *ZhG*RasterMan
In the wc3ft config you have this:

FT_no_orcnades 1 // Prevent orc nades on ka_ maps, fy_ maps and jail_riot (default is 0)

Would it be possible to show me where to add in to the sma to add in other maps like you have done for the maps above?

Posted: Sun Nov 13, 2005 9:21 am
by Geesu
open others.inl w/in war3ft directory...

First function at the top of the file:
[small]public checkmap(){[/small]

To make the CVAR disable for all maps, you could just change

[small] if(iCvar[FT_NO_ORCNADES]){
if (containi(mapname,"ka_")!=-1 || containi(mapname,"jail_riot")!=-1 || containi(mapname,"fy_")!=-1)
g_notAllowHE=true
else
g_notAllowHE=false
}[/small]

to

[small] if(iCvar[FT_NO_ORCNADES])
{
g_notAllowHE=true
}
else
{
g_notAllowHE=false
}[/small]

Posted: Mon Nov 14, 2005 3:18 pm
by *ZhG*RasterMan
Thx for the help :wink:

Posted: Mon Nov 14, 2005 3:28 pm
by Geesu
np, shhhh... don't tell ne1 :P

Posted: Wed Nov 16, 2005 10:22 am
by eM-Viper
hehe i did that a while ago :P. i been goin over your code and modding it :)

Posted: Wed Nov 16, 2005 10:30 am
by Marticus
This is a perfect example where the idea of using a front end method (like a cvar or admin menu or admin command) to disable any number of skills would be beneficial. However, we all understand that you don't like the idea. Although I'm not clear as to why, but that isn't my business if you don't want us to know. :) Of course, this is just generally speaking. We know FT is closed to everything but bug fixes, not that there are any bugs.

Posted: Wed Nov 16, 2005 10:34 am
by eM-Viper
he is training us to become better scripters :-p, its his secret plot

Posted: Wed Nov 16, 2005 10:42 am
by Marticus
I don't want to be a better scripter. To hell with your secret plots! For hate's sake I spit my last breath at thee!

Posted: Mon Apr 24, 2006 1:28 pm
by DeadEyeSavage
What if i do this:

Code: Select all

if(iCvar[FT_NO_ORCNADES])
{
                g_notAllowHE=true
} 

It would basicly say no orc nades period no matter true or false? If teh cvar is set to one? Correct?

Meaning no "else" satement.