mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-24 05:01:48 +00:00
Start initializing things. Should work, but causes trouble, so the
offending code is commented out.
This commit is contained in:
parent
33ac007d15
commit
89102c17c7
4 changed files with 26 additions and 0 deletions
|
@ -3065,6 +3065,8 @@ void() ClientConnect =
|
|||
{
|
||||
local string st;
|
||||
|
||||
initentity (self);
|
||||
|
||||
bprint (PRINT_HIGH, self.netname);
|
||||
bprint (PRINT_HIGH, " has joined the server\n");
|
||||
|
||||
|
|
21
spawn.qc
21
spawn.qc
|
@ -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 = "";
|
||||
};
|
||||
|
|
1
spawn.qh
1
spawn.qh
|
@ -1 +1,2 @@
|
|||
entity () spawn;
|
||||
void (entity ent) initentity;
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue