I'm sure this is an ignorant question, but I'll risk asking anyway. Is there a place pre-compile that I can change the default values of the above options?
Yes, I know how to use the /mapfilter tool in game and it's very simple. However, I'm trying to teach myself more about this programming language and doing so by editing and learning the script.
Back to the topic. I was looking under MQ2Map.cpp and noticed a listing of given commands. However, there are are 3 values each and I'm assuming that two are IF circumstances, and the other possibly default settings.
Code: Select all
CHAR MapNameString[MAX_STRING]={"%N"};
CHAR MapTargetNameString[MAX_STRING]={"%N"};
SEARCHSPAWN MapFilterCustom = {0};
MAPFILTER MapFilterOptions[] = {
{"All", TRUE,-1, TRUE,MAPFILTER_Invalid,TRUE, "Enables/disables map functions"},
{"PC", FALSE,0xFF00FF, TRUE,MAPFILTER_All,TRUE, "Displays PCs"},
{"PCConColor", FALSE,-1, TRUE,MAPFILTER_PC,FALSE, "Displays PCs in consider colors"},
{"Group", FALSE,0x0080C0, TRUE,MAPFILTER_PC,FALSE, "Displays group members in a specific color"},
{"Mount", FALSE,0x707070, TRUE,MAPFILTER_All,TRUE, "Displays mounts"},
{"NPC", FALSE,0x404040, TRUE,MAPFILTER_All,TRUE, "Displays NPCs"},
{"NPCConColor", FALSE,-1, TRUE,MAPFILTER_NPC,FALSE, "Displays NPCs in consider colors"},
{"Untargetable", FALSE,0x404040, TRUE,MAPFILTER_All,TRUE, "Displays Untargetable NPCs"},
{"Pet", FALSE,0x707070, TRUE,MAPFILTER_All,TRUE, "Displays pets"},
{"Corpse", FALSE,0x00C000, TRUE,MAPFILTER_All,TRUE, "Displays corpses"},
{"Chest", FALSE,0xC08000, TRUE,MAPFILTER_All,TRUE, "Displays chestesses"},
{"Trigger", FALSE,0xC08000, TRUE,MAPFILTER_All,TRUE, "Displays hidden triggers"},
{"Trap", FALSE,0xC08000, TRUE,MAPFILTER_All,TRUE, "Displays hidden traps"},
{"Timer", FALSE,0xC08000, TRUE,MAPFILTER_All,TRUE, "Displays hidden timers"},
{"Ground", FALSE,0xC0C0C0, TRUE,MAPFILTER_All,TRUE, "Displays ground items"},
{"Target", FALSE,0xC00000, TRUE,MAPFILTER_All,FALSE, "Displays your target"},
{"TargetLine", FALSE,0x808080, TRUE,MAPFILTER_Target,FALSE, "Displays a line to your target"},
{"TargetRadius", FALSE,0x808080, FALSE,MAPFILTER_Target,FALSE, "Sets radius of a circle around your target to # (omit or set to 0 to disable)"},
{"TargetMelee", FALSE,0xFF8080, FALSE,MAPFILTER_Target,FALSE, "Draws a melee-range circle around your target"},
{"Vector", FALSE,-1, TRUE,MAPFILTER_All,TRUE, "Displays heading vectors"},
{"Custom", FALSE,-1, FALSE,MAPFILTER_All,TRUE, "Sets custom filter (omit to disable)"},
{"CastRadius", FALSE,0x808080, FALSE,MAPFILTER_All,FALSE, "Sets radius of casting circle to # (omit or set to 0 to disable)"},
{"NormalLabels", 0,-1, TRUE,MAPFILTER_Invalid,FALSE, "Toggles non-MQ2 label display"},
{"Menu", FALSE,-1, TRUE,MAPFILTER_Invalid,FALSE, "Allows display of right-click context menu"},
{NULL, FALSE,-1, FALSE,MAPFILTER_Invalid,FALSE, NULL}
If this makes sense, and someone could explain the 3 values(true/false) per command I'd appreciate it.