Start initializing things. Should work, but causes trouble, so the

offending code is commented out.
This commit is contained in:
Adam Olsen 2001-08-13 21:25:26 +00:00
parent 33ac007d15
commit 89102c17c7
4 changed files with 26 additions and 0 deletions

View file

@ -3065,6 +3065,8 @@ void() ClientConnect =
{
local string st;
initentity (self);
bprint (PRINT_HIGH, self.netname);
bprint (PRINT_HIGH, " has joined the server\n");

View file

@ -1,10 +1,31 @@
#include "defs.qh"
entity () real_spawn;
void (entity ent) initentity;
entity () spawn =
{
local entity ent;
ent = real_spawn ();
initentity (ent);
return ent;
};
void (entity ent) initentity =
{
ent.classname = "";
ent.netname = "";
ent.targetname = "";
ent.target = "";
ent.team_str_home = "";
ent.flame_id = "";
ent.group = "";
ent.message = "";
// self.solid = SOLID_NOT;
// self.movetype = MOVETYPE_NONE;
// setmodel (self, "");
// ent.model = "";
};

View file

@ -1 +1,2 @@
entity () spawn;
void (entity ent) initentity;

View file

@ -19,6 +19,8 @@ called when a spectator connects to a server
*/
void() SpectatorConnect =
{
initentity (self);
bprint (PRINT_MEDIUM, "Spectator ");
bprint (PRINT_MEDIUM, self.netname);
bprint (PRINT_MEDIUM, " connected\n");