DarkEvilTwin`
23rd July 2005, 21:47
I'm trying to bool the RemoveFog function of Tamimego so I can turn it on and off with his DrawString Menu.
Compiling without errors, but when i'm ingame, and im trying to switch the nofog off, it doesnt work.
Can anyone help me out plz?
bool:bool bRemoveFog = true;
RemoveFog function:void inline RemoveFog ()
{
if (!bRemoveFog) return;
for (TObjectIterator<AZoneInfo> Target; Target; ++Target)
{
AZoneInfo* ZI = *Target;
ZI->bClearToFogColor = false;
ZI->bDistanceFog = false;
}
}
added the function into DrawMySettings function: SetPos(20, Canvas->ClipY / 2 + 50);
appSprintf( StrTemp,TEXT("RemoveFog"));
Canvas->pCanvasUtil->DrawString(Canvas->CurX, Canvas->CurY, StrTemp, Canvas->TinyFont, FColor(9,99,141,255));
OnOff(Canvas, bRemoveFog);
added the function into DrawMySwitches function: case 3:
SetPos(10, PosY+30) // + 10 Y From Last Case (Change To Your Menu Space Y)
if (Toggle)// If Toggle Is On Switch Bool
bRemoveFog = !bRemoveFog; // Bool To Switch
Toggle = false;
break;
I can configurate thru the menu and switch the RemoveFog on and off, but it doesn't Remove my fog :(
Anyone know how to fix the problem?
ScreenShot:
- http://img347.imageshack.us/img347/1453/etbv11139df.png
- I didnt had autoaim on when i was turning left of the enemy then quickly turned on and made screenshot ^^
- kthx.
Compiling without errors, but when i'm ingame, and im trying to switch the nofog off, it doesnt work.
Can anyone help me out plz?
bool:bool bRemoveFog = true;
RemoveFog function:void inline RemoveFog ()
{
if (!bRemoveFog) return;
for (TObjectIterator<AZoneInfo> Target; Target; ++Target)
{
AZoneInfo* ZI = *Target;
ZI->bClearToFogColor = false;
ZI->bDistanceFog = false;
}
}
added the function into DrawMySettings function: SetPos(20, Canvas->ClipY / 2 + 50);
appSprintf( StrTemp,TEXT("RemoveFog"));
Canvas->pCanvasUtil->DrawString(Canvas->CurX, Canvas->CurY, StrTemp, Canvas->TinyFont, FColor(9,99,141,255));
OnOff(Canvas, bRemoveFog);
added the function into DrawMySwitches function: case 3:
SetPos(10, PosY+30) // + 10 Y From Last Case (Change To Your Menu Space Y)
if (Toggle)// If Toggle Is On Switch Bool
bRemoveFog = !bRemoveFog; // Bool To Switch
Toggle = false;
break;
I can configurate thru the menu and switch the RemoveFog on and off, but it doesn't Remove my fog :(
Anyone know how to fix the problem?
ScreenShot:
- http://img347.imageshack.us/img347/1453/etbv11139df.png
- I didnt had autoaim on when i was turning left of the enemy then quickly turned on and made screenshot ^^
- kthx.