void main()
{
if(openborvariant("in_titlescreen")){
drawstring(110,10,3,"Version 2.10");
drawstring(110,240,2,"Incomplete Build - TESTING ONLY");
drawstring(110,250,2,"MysticalMist 2024-2026");
void counter = getlocalvar("counter");
void vSpawn;
void counter2 = getlocalvar("counter2");
counter2 = setlocalvar("counter2",0);
while(counter!=1)
{
void subent;
loadmodel("bgfx"); // name of the entity to be loaded
clearspawnentry(); // clean the spawn entry
setspawnentry("name", "bgfx"); // define the entity to be spawn
setspawnentry("coords", 1,0,-2); // set the position of the entity
subent=spawn(); // spawn the entity
changeentityproperty(subent, "position", 1,0,-2); //for safe, set again the position
counter = setlocalvar("counter",1); // turn on the variable, blocking a new spawn to be made
}
}
if(openborvariant("in_system_options"))
{
drawstring( 140, 50,1,"Models: Cached "+openborvariant("models_cached")+" - Loaded: "+openborvariant("models_loaded"));
drawstring( 100, 60,1,"Entities: Enemies - "+openborvariant("count_enemies")+" - NPCs: "+openborvariant("count_npcs")+" - Total: "+openborvariant("count_entities"));
//White Dragon debug. Thanks!
int i = 0, count = 0;
int x = 10, y = 10, font_index = 0, yspace = 10;
int prev_strwidth = 0, cols = 10;
for(i = 0; i < openborvariant("count_entities"); i++) {
void ent = getentity(i);
char name = "", comma = ", ";
int col = count/cols; // current colon
if ( ent == NULL() || !getentityproperty(ent,"exists") ) continue;
name = getentityproperty(ent,"model");
if (i >= openborvariant("count_entities")-1) comma = "";
drawstring(x+prev_strwidth,y+yspace*col,font_index,(name+comma));
prev_strwidth += strwidth((name+comma),font_index); // sum row spaces
++count; // count ents
if (col < count/cols) prev_strwidth = 0; // reset colons
}
}
if(openborvariant("in_level")){
displayContinue();
void counter = getlocalvar("counter");
counter = setlocalvar("counter",0);
void counter2 = getlocalvar("counter2");
counter2 = setlocalvar("counter2",0);
//Announcer
processRushCount();
}
if(openborvariant("in_menuscreen"))
{
drawstring(110,10,3,"Version 2.10");
drawstring(110,240,2,"Incomplete Build - TESTING ONLY");
drawstring(110,250,2,"MysticalMist 2024-2026");
void counter = getlocalvar("counter");
counter = setlocalvar("counter",0);
void vSpawn;
void counter2 = getlocalvar("counter2");
while(counter2!=1)
{
void subent;
loadmodel("menufx"); // name of the entity to be loaded
clearspawnentry(); // clean the spawn entry
setspawnentry("name", "menufx"); // define the entity to be spawn
setspawnentry("coords", 1,0,-1); // set the position of the entity
subent=spawn(); // spawn the entity
changeentityproperty(subent, "position", 1,0,-1); //for safe, set again the position
counter2 = setlocalvar("counter2",1); // turn on the variable, blocking a new spawn to be made
}
}
if(openborvariant("in_halloffamescreen"))
{
drawstring(110,10,3,"Version 2.10");
drawstring(110,240,2,"Incomplete Build - TESTING ONLY");
drawstring(110,250,2,"MysticalMist 2024-2026");
void counter2 = getlocalvar("counter2");
void vSpawn;
void counter = getlocalvar("counter");
counter = setlocalvar("counter",0);
while(counter2!=1)
{
void subent;
loadmodel("menufx"); // name of the entity to be loaded
clearspawnentry(); // clean the spawn entry
setspawnentry("name", "menufx"); // define the entity to be spawn
setspawnentry("coords", 1,0,-1); // set the position of the entity
subent=spawn(); // spawn the entity
counter = setlocalvar("counter",0);
changeentityproperty(subent, "position", 1,0,-1); //for safe, set again the position
counter2 = setlocalvar("counter2",1); // turn on the variable, blocking a new spawn to be made
}
}
if(openborvariant("in_selectscreen")){
void counter = getlocalvar("counter");
void counter2 = getlocalvar("counter2");
clearspawnentry(); // clean the spawn entry
counter2 = setlocalvar("counter2",0);
}
if(openborvariant("in_showcomplete")){
void counter = getlocalvar("counter");
void counter2 = getlocalvar("counter2");
clearspawnentry(); // clean the spawn entry
counter2 = setlocalvar("counter2",0);
counter = setlocalvar("counter",0);
}
if(openborvariant("in_gameoverscreen")){
void counter = getlocalvar("counter");
void counter2 = getlocalvar("counter2");
clearspawnentry(); // clean the spawn entry
counter2 = setlocalvar("counter2",0);
counter = setlocalvar("counter",0);
}
}