Orc nade cvar

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

Moderator: Forum Moderator

Post Reply
User avatar
*ZhG*RasterMan
Militia
Posts: 66
Joined: Fri Sep 23, 2005 7:58 am
Location: Luton, UK
Contact:

Orc nade cvar

Post 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:
User avatar
Geesu
<b>King of the world!</b>
Posts: 3160
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post by Geesu »

This has been discussed before (on the old forums though)... And there is no way I will add this feature
No Support via PM
User avatar
*ZhG*RasterMan
Militia
Posts: 66
Joined: Fri Sep 23, 2005 7:58 am
Location: Luton, UK
Contact:

Post 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?
Image
User avatar
Geesu
<b>King of the world!</b>
Posts: 3160
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post 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]
No Support via PM
User avatar
*ZhG*RasterMan
Militia
Posts: 66
Joined: Fri Sep 23, 2005 7:58 am
Location: Luton, UK
Contact:

Post by *ZhG*RasterMan »

Thx for the help :wink:
Image
User avatar
Geesu
<b>King of the world!</b>
Posts: 3160
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post by Geesu »

np, shhhh... don't tell ne1 :P
No Support via PM
User avatar
eM-Viper
Militia
Posts: 79
Joined: Thu Jul 07, 2005 9:38 am
Contact:

Post by eM-Viper »

hehe i did that a while ago :P. i been goin over your code and modding it :)
Marticus
Lead UWC3 Developer
Posts: 281
Joined: Sat Jul 16, 2005 10:47 am

Post 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.
User avatar
eM-Viper
Militia
Posts: 79
Joined: Thu Jul 07, 2005 9:38 am
Contact:

Post by eM-Viper »

he is training us to become better scripters :-p, its his secret plot
Marticus
Lead UWC3 Developer
Posts: 281
Joined: Sat Jul 16, 2005 10:47 am

Post 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!
DeadEyeSavage
Peon
Posts: 38
Joined: Fri Jul 08, 2005 7:20 pm

Post 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.
Post Reply