odessa
Well-known member
- Joined
- Oct 20, 2005
- RedCents
- 220¢
Use Advanced Lighting has to be ON
This requires DSurface0.127.zip
and to compile (DSurface.h) DSurface0.127Header.zip
Command /wireframe on/off/bg
This will wireframe everything including UI and text so beware. I did it for fun but I guess in theory this should help you out with AFK multiboxing
/wireframe bg will toggle "wireframe while in background" mode
I also made it so F5 (don't ask why, I just picked it) toggles wireframe
Added dll for the special kids...
This requires DSurface0.127.zip
and to compile (DSurface.h) DSurface0.127Header.zip
Command /wireframe on/off/bg
This will wireframe everything including UI and text so beware. I did it for fun but I guess in theory this should help you out with AFK multiboxing

/wireframe bg will toggle "wireframe while in background" mode
I also made it so F5 (don't ask why, I just picked it) toggles wireframe
Added dll for the special kids...
Rich (BB code):
#include "../MQ2Plugin.h"
#include "DSurface.h"
PreSetup("MQ2WireFrame");
int igRadarButton = VK_F5;
bool bgWF = false;
bool bgBGWF = false;
bool bgWireframe = false;
bool bgKeyPressed = false;
VOID WireFrameSet(bool set) {
if (set) {
DSWireFrame(true);
bgWireframe = true;
WriteChatColor("WireFrame Mode is On",USERCOLOR_DEFAULT);
} else {
DSWireFrame(false);
bgWireframe = false;
WriteChatColor("WireFrame Mode is Off",USERCOLOR_DEFAULT);
}
}
VOID WireFrameToggle() {
if (bgWireframe) {
WireFrameSet(false);
bgKeyPressed = true;
} else {
WireFrameSet(true);
bgKeyPressed = true;
}
}
VOID BGWireFrameToggle() {
if (bgWF) {
bgWF = false;
WriteChatColor("WireFrame Mode in Background is Off",USERCOLOR_DEFAULT);
} else {
bgWF = true;
WriteChatColor("WireFrame Mode in Background is On",USERCOLOR_DEFAULT);
}
}
VOID WireFrame(PSPAWNINFO pChar, PCHAR szLine) {
if(!strcmpi(szLine,"on"))
WireFrameSet(true);
else if(!strcmpi(szLine,"off"))
WireFrameSet(false);
else if(!strcmpi(szLine,"bg"))
BGWireFrameToggle();
}
PLUGIN_API VOID OnPulse(VOID)
{
HWND EQhWnd = *(HWND*)EQADDR_HWND;
if (GetForegroundWindow()==EQhWnd) {
if (bgBGWF) {
bgBGWF = false;
WireFrameSet(false);
}
if (GetKeyState(igRadarButton) & 0x80) {
if (!bgKeyPressed) WireFrameToggle();
} else {
bgKeyPressed = false;
}
} else if (bgWF) {
if (!bgWireframe) {
bgBGWF = true;
WireFrameSet(true);
}
}
}
PLUGIN_API VOID InitializePlugin(VOID)
{
if (InitializeDS()) {
WriteChatColor("MQ2WireFrame",CONCOLOR_YELLOW);
if (atof(DSGetVersion())>=0.127) {
AddCommand("/wireframe",WireFrame);
}
else {
WriteChatColor("MQ2WireFrame requires DirectSurface 0.127 or higher",CONCOLOR_RED);
}
} else {
WriteChatColor("MQ2WireFrame requires DirectSurface 0.127 or higher",CONCOLOR_RED);
}
}
PLUGIN_API VOID ShutdownPlugin(VOID)
{
RemoveCommand("/wireframe");
}
Last edited:

