Added some init messages.

This commit is contained in:
Marco Cawthorne 2020-04-19 12:02:05 +02:00
parent e578ffc808
commit 51cce26fd8
6 changed files with 20 additions and 4 deletions

View File

@ -9,6 +9,7 @@ all:
menu:
mkdir -p ../platform/data.pk3dir
$(CC) menu-fn/progs.src
$(CC) menu-vgui/progs.src
games:
mkdir -p ../valve/data.pk3dir

View File

@ -86,11 +86,13 @@ void PlayerPostThink(void)
void SetNewParms(void)
{
iprint("Setting New Level Parameters");
g_grMode.LevelNewParms();
}
void SetChangeParms(void)
{
iprint("Setting Level-Change Parameters");
player pl = (player)self;
g_grMode.LevelChangeParms(pl);
}
@ -111,11 +113,13 @@ void SV_ParseClientCommand(string cmd)
void init(float prevprogs)
{
iprint("Initializing Server-Module");
Plugin_Init();
}
void init_respawn(void)
{
iprint("Respawning Entities");
g_grMode.InitPostEnts();
for (entity a = world; (a = findfloat(a, ::gflags, GF_CANRESPAWN));) {
@ -127,8 +131,8 @@ void init_respawn(void)
void initents(void)
{
string sTemp;
iprint("Initializing Entities");
Sound_Init();
// Let's load materials.txt because someone thought this was the best idea
@ -137,6 +141,7 @@ void initents(void)
hashMaterials = hash_createtab(2, HASH_ADD);
if (fileMaterial >= 0) {
string sTemp;
while ((sTemp = fgets(fileMaterial))) {
// Tokenize and just parse this stuff in
if (tokenize_console(sTemp) == 2) {
@ -230,6 +235,7 @@ void initents(void)
void worldspawn(void)
{
iprint("Initializing World");
lightstyle(0, "m");
lightstyle(1, "mmnmmommommnonmmonqnmmo");
lightstyle(2, "abcdefghijklmnopqrstuvwxyzyxwvutsrqponmlkjihgfedcba");

View File

@ -173,6 +173,7 @@ Node_AutoLink(node_t *new)
void
Nodes_Init(void)
{
iprint("Initializing Nodes-Subsystem");
g_nodes_present = FALSE;
/* skip if present. TODO: check if they're out of date? */

View File

@ -20,10 +20,9 @@ var int autocvar_sv_plugins = 1;
void Plugin_Init(void)
{
if (autocvar_sv_plugins) {
print("Initializing plugins...\n");
iprint("Initializing Plugins");
g_plugins_enabled = 1;
} else {
print("Initializing plugins...\n");
g_plugins_enabled = 0;
}
}

View File

@ -41,6 +41,8 @@ Sentences_Init(void)
string temp;
int c;
iprint("Initializing Sentences-Subsystem");
if (g_sentences_count > 0) {
g_sentences_count = 0;
#ifndef DYNAMIC_SENTENCES

View File

@ -82,3 +82,10 @@ __wrap void dprint(string m)
if (cvar("developer") == 1)
return prior(m);
}
/* info print */
void
iprint(string m)
{
print(sprintf("^Ue080^Ue081^Ue081^Ue081^Ue081^Ue081^Ue081 %s ^Ue081^Ue081^Ue081^Ue081^Ue081^Ue081^Ue082\n", m));
}