Orc nade cvar
Moderator: Forum Moderator
- *ZhG*RasterMan
- Militia
- Posts: 66
- Joined: Fri Sep 23, 2005 7:58 am
- Location: Luton, UK
- Contact:
Orc nade cvar
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
- *ZhG*RasterMan
- Militia
- Posts: 66
- Joined: Fri Sep 23, 2005 7:58 am
- Location: Luton, UK
- Contact:
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]
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
- *ZhG*RasterMan
- Militia
- Posts: 66
- Joined: Fri Sep 23, 2005 7:58 am
- Location: Luton, UK
- Contact:
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.
-
- Peon
- Posts: 38
- Joined: Fri Jul 08, 2005 7:20 pm
What if i do this:
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.
Code: Select all
if(iCvar[FT_NO_ORCNADES])
{
g_notAllowHE=true
}
Meaning no "else" satement.