2001-10-18 04:44:58 +00:00
|
|
|
/*
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
net_svc_qw.h
|
2001-10-18 04:44:58 +00:00
|
|
|
|
|
|
|
(description)
|
|
|
|
|
|
|
|
Copyright (C) 1996-1997 Id Software, Inc.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to:
|
|
|
|
|
|
|
|
Free Software Foundation, Inc.
|
|
|
|
59 Temple Place - Suite 330
|
|
|
|
Boston, MA 02111-1307, USA
|
|
|
|
|
|
|
|
$Id$
|
|
|
|
*/
|
|
|
|
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
#ifndef NET_SVC_QW_H
|
|
|
|
#define NET_SVC_QW_H
|
2001-10-18 04:44:58 +00:00
|
|
|
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
#include "QF/net_protocol.h"
|
|
|
|
#include "QF/net_svc.h"
|
2001-10-18 04:44:58 +00:00
|
|
|
|
|
|
|
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
// FIXME: duplicate definition from pmove.h
|
|
|
|
typedef struct {
|
|
|
|
float gravity;
|
|
|
|
float stopspeed;
|
|
|
|
float maxspeed;
|
|
|
|
float spectatormaxspeed;
|
|
|
|
float accelerate;
|
|
|
|
float airaccelerate;
|
|
|
|
float wateraccelerate;
|
|
|
|
float friction;
|
|
|
|
float waterfriction;
|
|
|
|
float entgravity;
|
|
|
|
} movevars_t;
|
2001-11-02 06:00:21 +00:00
|
|
|
|
2001-11-05 20:13:27 +00:00
|
|
|
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
typedef struct net_svc_qwupdatestat_s
|
2001-11-05 20:13:27 +00:00
|
|
|
{
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
byte stat;
|
|
|
|
int value;
|
|
|
|
} net_svc_qwupdatestat_t;
|
2001-11-05 20:13:27 +00:00
|
|
|
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
typedef struct net_svc_qwsound_s
|
2001-11-05 20:13:27 +00:00
|
|
|
{
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
short channel;
|
|
|
|
float volume;
|
|
|
|
float attenuation;
|
|
|
|
byte sound_num;
|
|
|
|
vec3_t position;
|
|
|
|
int entity;
|
|
|
|
} net_svc_qwsound_t;
|
2001-11-05 20:13:27 +00:00
|
|
|
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
typedef struct net_svc_qwprint_s
|
2001-10-18 06:35:28 +00:00
|
|
|
{
|
|
|
|
byte level;
|
|
|
|
const char *message;
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
} net_svc_qwprint_t;
|
2001-10-18 08:57:03 +00:00
|
|
|
|
|
|
|
typedef struct net_svc_serverdata_s
|
|
|
|
{
|
|
|
|
int protocolversion;
|
2001-11-02 08:10:41 +00:00
|
|
|
int servercount; // FIXME: rename this
|
2001-10-18 08:57:03 +00:00
|
|
|
const char *gamedir;
|
|
|
|
byte playernum;
|
|
|
|
qboolean spectator;
|
|
|
|
const char *levelname;
|
|
|
|
movevars_t movevars;
|
|
|
|
} net_svc_serverdata_t;
|
|
|
|
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
typedef struct net_svc_qwtempentity_s
|
2001-10-18 18:48:49 +00:00
|
|
|
{
|
|
|
|
byte type;
|
|
|
|
vec3_t position;
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
int gunshotcount; // gunshot sparks
|
2001-10-18 18:48:49 +00:00
|
|
|
byte colorstart; // palette start (I think?)
|
|
|
|
byte colorlength; // palette length
|
|
|
|
vec3_t beamend; // beam endpos
|
|
|
|
short beamentity; // beam entity
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
} net_svc_qwtempentity_t;
|
- add some missing boundschecking to CDAudio_Play's track remap (in
specific plugins only)
- convert updateping, updatepl, updateentertime, updatestat,
updatestatlong, cdtrack intermission, finale, muzzleflashchokecount,
maxspeed, entgravity, and setpause on the client. Can you say all
that in one breath? :)
2001-11-05 16:17:45 +00:00
|
|
|
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
typedef struct net_svc_qwintermission_s
|
- add some missing boundschecking to CDAudio_Play's track remap (in
specific plugins only)
- convert updateping, updatepl, updateentertime, updatestat,
updatestatlong, cdtrack intermission, finale, muzzleflashchokecount,
maxspeed, entgravity, and setpause on the client. Can you say all
that in one breath? :)
2001-11-05 16:17:45 +00:00
|
|
|
{
|
|
|
|
vec3_t origin;
|
|
|
|
vec3_t angles;
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
} net_svc_qwintermission_t;
|
- add some missing boundschecking to CDAudio_Play's track remap (in
specific plugins only)
- convert updateping, updatepl, updateentertime, updatestat,
updatestatlong, cdtrack intermission, finale, muzzleflashchokecount,
maxspeed, entgravity, and setpause on the client. Can you say all
that in one breath? :)
2001-11-05 16:17:45 +00:00
|
|
|
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
typedef struct net_svc_qwcdtrack_s
|
2001-11-05 20:13:27 +00:00
|
|
|
{
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
byte cdtrack;
|
|
|
|
} net_svc_qwcdtrack_t;
|
2001-11-05 20:13:27 +00:00
|
|
|
|
|
|
|
typedef struct net_svc_smallkick_s
|
|
|
|
{
|
|
|
|
} net_svc_smallkick_t;
|
|
|
|
|
|
|
|
typedef struct net_svc_bigkick_s
|
|
|
|
{
|
|
|
|
} net_svc_bigkick_t;
|
|
|
|
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
typedef struct net_svc_updateping_s
|
|
|
|
{
|
|
|
|
byte player;
|
|
|
|
short ping;
|
|
|
|
} net_svc_updateping_t;
|
|
|
|
|
|
|
|
typedef struct net_svc_updateentertime_s
|
|
|
|
{
|
|
|
|
byte player;
|
|
|
|
float secondsago;
|
|
|
|
} net_svc_updateentertime_t;
|
|
|
|
|
- add some missing boundschecking to CDAudio_Play's track remap (in
specific plugins only)
- convert updateping, updatepl, updateentertime, updatestat,
updatestatlong, cdtrack intermission, finale, muzzleflashchokecount,
maxspeed, entgravity, and setpause on the client. Can you say all
that in one breath? :)
2001-11-05 16:17:45 +00:00
|
|
|
typedef struct net_svc_muzzleflash_s
|
|
|
|
{
|
|
|
|
short player;
|
|
|
|
} net_svc_muzzleflash_t;
|
|
|
|
|
2001-10-18 07:01:40 +00:00
|
|
|
typedef struct net_svc_updateuserinfo_s
|
|
|
|
{
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
byte slot; // FIXME: rename to player
|
2001-10-18 07:01:40 +00:00
|
|
|
int userid;
|
|
|
|
const char *userinfo;
|
|
|
|
} net_svc_updateuserinfo_t;
|
|
|
|
|
2001-10-18 06:35:28 +00:00
|
|
|
typedef struct net_svc_download_s
|
|
|
|
{
|
|
|
|
short size;
|
|
|
|
byte percent;
|
|
|
|
const char *name; // only one of name or data will be set
|
|
|
|
const byte *data;
|
|
|
|
} net_svc_download_t;
|
|
|
|
|
2001-10-19 21:20:49 +00:00
|
|
|
typedef struct net_svc_playerinfo_s
|
|
|
|
{
|
|
|
|
byte playernum;
|
|
|
|
int flags;
|
|
|
|
vec3_t origin;
|
|
|
|
byte frame;
|
|
|
|
byte msec;
|
|
|
|
usercmd_t usercmd;
|
|
|
|
vec3_t velocity;
|
|
|
|
byte modelindex;
|
|
|
|
byte skinnum;
|
|
|
|
byte effects;
|
|
|
|
byte weaponframe;
|
|
|
|
} net_svc_playerinfo_t;
|
|
|
|
|
2001-10-20 08:10:25 +00:00
|
|
|
typedef struct net_svc_nails_s
|
|
|
|
{
|
|
|
|
byte numnails;
|
|
|
|
struct {
|
|
|
|
vec3_t origin;
|
|
|
|
vec3_t angles;
|
|
|
|
} nails[MAX_PROJECTILES];
|
|
|
|
} net_svc_nails_t;
|
|
|
|
|
- add some missing boundschecking to CDAudio_Play's track remap (in
specific plugins only)
- convert updateping, updatepl, updateentertime, updatestat,
updatestatlong, cdtrack intermission, finale, muzzleflashchokecount,
maxspeed, entgravity, and setpause on the client. Can you say all
that in one breath? :)
2001-11-05 16:17:45 +00:00
|
|
|
typedef struct net_svc_chokecount_s
|
|
|
|
{
|
|
|
|
byte count;
|
|
|
|
} net_svc_chokecount_t;
|
|
|
|
|
2001-10-21 14:21:30 +00:00
|
|
|
typedef struct net_svc_modellist_s
|
|
|
|
{
|
|
|
|
byte startmodel;
|
|
|
|
const char *models[MAX_MODELS + 1]; // space left for terminating
|
|
|
|
// empty string
|
|
|
|
byte nextmodel;
|
|
|
|
} net_svc_modellist_t;
|
|
|
|
|
2001-10-18 04:44:58 +00:00
|
|
|
typedef struct net_svc_soundlist_s
|
|
|
|
{
|
|
|
|
byte startsound;
|
2001-10-21 14:21:30 +00:00
|
|
|
const char *sounds[MAX_SOUNDS + 1]; // space left for terminating
|
|
|
|
// empty string
|
2001-10-18 04:44:58 +00:00
|
|
|
byte nextsound;
|
|
|
|
} net_svc_soundlist_t;
|
|
|
|
|
2001-10-21 14:21:30 +00:00
|
|
|
typedef struct net_svc_packetentities_s
|
2001-10-18 04:44:58 +00:00
|
|
|
{
|
2001-10-29 00:32:16 +00:00
|
|
|
int numwords, numdeltas;
|
2001-10-29 21:46:00 +00:00
|
|
|
unsigned int words[MAX_PACKET_ENTITIES * 2 + 1];
|
2001-10-29 00:32:16 +00:00
|
|
|
entity_state_t deltas[MAX_PACKET_ENTITIES];
|
2001-10-21 14:21:30 +00:00
|
|
|
} net_svc_packetentities_t;
|
2001-10-18 04:44:58 +00:00
|
|
|
|
2001-10-24 15:23:02 +00:00
|
|
|
typedef struct net_svc_deltapacketentities_s
|
|
|
|
{
|
2001-10-29 00:32:16 +00:00
|
|
|
int numwords, numdeltas;
|
|
|
|
byte from;
|
2001-10-29 21:46:00 +00:00
|
|
|
unsigned int words[MAX_PACKET_ENTITIES * 2 + 1];
|
2001-10-29 00:32:16 +00:00
|
|
|
entity_state_t deltas[MAX_PACKET_ENTITIES];
|
2001-10-24 15:23:02 +00:00
|
|
|
} net_svc_deltapacketentities_t;
|
|
|
|
|
- add some missing boundschecking to CDAudio_Play's track remap (in
specific plugins only)
- convert updateping, updatepl, updateentertime, updatestat,
updatestatlong, cdtrack intermission, finale, muzzleflashchokecount,
maxspeed, entgravity, and setpause on the client. Can you say all
that in one breath? :)
2001-11-05 16:17:45 +00:00
|
|
|
typedef struct net_svc_maxspeed_s
|
|
|
|
{
|
|
|
|
float maxspeed;
|
|
|
|
} net_svc_maxspeed_t;
|
|
|
|
|
|
|
|
typedef struct net_svc_entgravity_s
|
|
|
|
{
|
|
|
|
float gravity;
|
|
|
|
} net_svc_entgravity_t;
|
|
|
|
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
typedef struct net_svc_setinfo_s
|
- add some missing boundschecking to CDAudio_Play's track remap (in
specific plugins only)
- convert updateping, updatepl, updateentertime, updatestat,
updatestatlong, cdtrack intermission, finale, muzzleflashchokecount,
maxspeed, entgravity, and setpause on the client. Can you say all
that in one breath? :)
2001-11-05 16:17:45 +00:00
|
|
|
{
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
byte slot;
|
|
|
|
const char *key;
|
|
|
|
const char *value;
|
|
|
|
} net_svc_setinfo_t;
|
|
|
|
|
|
|
|
typedef struct net_svc_qwserverinfo_s
|
|
|
|
{
|
|
|
|
const char *key;
|
|
|
|
const char *value;
|
|
|
|
} net_svc_qwserverinfo_t;
|
|
|
|
|
|
|
|
typedef struct net_svc_updatepl_s
|
|
|
|
{
|
|
|
|
byte player;
|
|
|
|
byte packetloss;
|
|
|
|
} net_svc_updatepl_t;
|
|
|
|
|
2001-11-18 11:39:12 +00:00
|
|
|
typedef union net_svc_qw_any_u
|
|
|
|
{
|
|
|
|
net_svc_any_t common;
|
|
|
|
net_svc_qwupdatestat_t qwupdatestat;
|
|
|
|
net_svc_qwsound_t qwsound;
|
|
|
|
net_svc_qwprint_t qwprint;
|
|
|
|
net_svc_serverdata_t serverdata;
|
|
|
|
net_svc_qwtempentity_t qwtempentity;
|
|
|
|
net_svc_qwintermission_t qwintermission;
|
|
|
|
net_svc_qwcdtrack_t qwcdtrack;
|
|
|
|
net_svc_smallkick_t smallkick;
|
|
|
|
net_svc_bigkick_t bigkick;
|
|
|
|
net_svc_updateping_t updateping;
|
|
|
|
net_svc_updateentertime_t updateentertime;
|
|
|
|
net_svc_updatestatlong_t updatestatlong;
|
|
|
|
net_svc_muzzleflash_t muzzleflash;
|
|
|
|
net_svc_updateuserinfo_t updateuserinfo;
|
|
|
|
net_svc_download_t download;
|
|
|
|
net_svc_playerinfo_t playerinfo;
|
|
|
|
net_svc_nails_t nails;
|
|
|
|
net_svc_chokecount_t chokecount;
|
|
|
|
net_svc_modellist_t modellist;
|
|
|
|
net_svc_soundlist_t soundlist;
|
|
|
|
net_svc_packetentities_t packetentities;
|
|
|
|
net_svc_deltapacketentities_t deltapacketentities;
|
|
|
|
net_svc_maxspeed_t maxspeed;
|
|
|
|
net_svc_entgravity_t entgravity;
|
|
|
|
net_svc_setinfo_t setinfo;
|
|
|
|
net_svc_qwserverinfo_t qwserverinfo;
|
|
|
|
net_svc_updatepl_t updatepl;
|
|
|
|
} net_svc_qw_any_t;
|
|
|
|
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
extern net_svc_emit_t net_svc_qw_emit_jumptable[];
|
|
|
|
extern int net_svc_qw_emit_count;
|
|
|
|
extern net_svc_parse_t net_svc_qw_parse_jumptable[];
|
|
|
|
extern int net_svc_qw_parse_count;
|
- add some missing boundschecking to CDAudio_Play's track remap (in
specific plugins only)
- convert updateping, updatepl, updateentertime, updatestat,
updatestatlong, cdtrack intermission, finale, muzzleflashchokecount,
maxspeed, entgravity, and setpause on the client. Can you say all
that in one breath? :)
2001-11-05 16:17:45 +00:00
|
|
|
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
|
|
|
|
net_status_t NET_SVC_QWUpdateStat_Emit (net_svc_qwupdatestat_t *block,
|
2001-11-05 20:13:27 +00:00
|
|
|
sizebuf_t *buf);
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
net_status_t NET_SVC_QWUpdateStat_Parse (net_svc_qwupdatestat_t *block, msg_t *msg);
|
|
|
|
net_status_t NET_SVC_QWSound_Emit (net_svc_qwsound_t *block, sizebuf_t *buf);
|
|
|
|
net_status_t NET_SVC_QWSound_Parse (net_svc_qwsound_t *block, msg_t *msg);
|
|
|
|
net_status_t NET_SVC_QWPrint_Emit (net_svc_qwprint_t *block, sizebuf_t *buf);
|
|
|
|
net_status_t NET_SVC_QWPrint_Parse (net_svc_qwprint_t *block, msg_t *msg);
|
2001-11-02 08:10:41 +00:00
|
|
|
net_status_t NET_SVC_ServerData_Emit (net_svc_serverdata_t *block,
|
|
|
|
sizebuf_t *buf);
|
2001-11-02 06:00:21 +00:00
|
|
|
net_status_t NET_SVC_ServerData_Parse (net_svc_serverdata_t *block, msg_t *msg);
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
net_status_t NET_SVC_QWTempEntity_Emit (net_svc_qwtempentity_t *block,
|
|
|
|
sizebuf_t *buf);
|
|
|
|
net_status_t NET_SVC_QWTempEntity_Parse (net_svc_qwtempentity_t *block,
|
|
|
|
msg_t *msg);
|
|
|
|
net_status_t NET_SVC_QWIntermission_Emit (net_svc_qwintermission_t *block,
|
|
|
|
sizebuf_t *buf);
|
|
|
|
net_status_t NET_SVC_QWIntermission_Parse (net_svc_qwintermission_t *block,
|
|
|
|
msg_t *msg);
|
|
|
|
net_status_t NET_SVC_QWCDTrack_Emit (net_svc_qwcdtrack_t *block,
|
2001-11-05 20:13:27 +00:00
|
|
|
sizebuf_t *buf);
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
net_status_t NET_SVC_QWCDTrack_Parse (net_svc_qwcdtrack_t *block, msg_t *msg);
|
|
|
|
net_status_t NET_SVC_SmallKick_Emit (net_svc_smallkick_t *block,
|
|
|
|
sizebuf_t *buf);
|
|
|
|
net_status_t NET_SVC_SmallKick_Parse (net_svc_smallkick_t *block, msg_t *msg);
|
|
|
|
net_status_t NET_SVC_BigKick_Emit (net_svc_bigkick_t *block, sizebuf_t *buf);
|
|
|
|
net_status_t NET_SVC_BigKick_Parse (net_svc_bigkick_t *block, msg_t *msg);
|
- add some missing boundschecking to CDAudio_Play's track remap (in
specific plugins only)
- convert updateping, updatepl, updateentertime, updatestat,
updatestatlong, cdtrack intermission, finale, muzzleflashchokecount,
maxspeed, entgravity, and setpause on the client. Can you say all
that in one breath? :)
2001-11-05 16:17:45 +00:00
|
|
|
net_status_t NET_SVC_UpdatePing_Emit (net_svc_updateping_t *block,
|
|
|
|
sizebuf_t *buf);
|
|
|
|
net_status_t NET_SVC_UpdatePing_Parse (net_svc_updateping_t *block, msg_t *msg);
|
|
|
|
net_status_t NET_SVC_UpdateEnterTime_Emit (net_svc_updateentertime_t *block,
|
|
|
|
sizebuf_t *buf);
|
|
|
|
net_status_t NET_SVC_UpdateEnterTime_Parse (net_svc_updateentertime_t *block,
|
|
|
|
msg_t *msg);
|
|
|
|
net_status_t NET_SVC_UpdateStatLong_Emit (net_svc_updatestatlong_t *block,
|
|
|
|
sizebuf_t *buf);
|
|
|
|
net_status_t NET_SVC_UpdateStatLong_Parse (net_svc_updatestatlong_t *block,
|
|
|
|
msg_t *msg);
|
|
|
|
net_status_t NET_SVC_MuzzleFlash_Emit (net_svc_muzzleflash_t *block,
|
|
|
|
sizebuf_t *buf);
|
|
|
|
net_status_t NET_SVC_MuzzleFlash_Parse (net_svc_muzzleflash_t *block,
|
|
|
|
msg_t *msg);
|
2001-11-02 14:52:29 +00:00
|
|
|
net_status_t NET_SVC_UpdateUserInfo_Emit (net_svc_updateuserinfo_t *block,
|
|
|
|
sizebuf_t *buf);
|
2001-11-02 06:00:21 +00:00
|
|
|
net_status_t NET_SVC_UpdateUserInfo_Parse (net_svc_updateuserinfo_t *block,
|
2001-10-19 21:20:49 +00:00
|
|
|
msg_t *msg);
|
2001-11-02 14:52:29 +00:00
|
|
|
net_status_t NET_SVC_Download_Emit (net_svc_download_t *block, sizebuf_t *buf);
|
2001-11-02 06:00:21 +00:00
|
|
|
net_status_t NET_SVC_Download_Parse (net_svc_download_t *block, msg_t *msg);
|
2001-11-03 10:48:55 +00:00
|
|
|
net_status_t NET_SVC_Playerinfo_Emit (net_svc_playerinfo_t *block,
|
|
|
|
sizebuf_t *buf);
|
2001-11-02 06:00:21 +00:00
|
|
|
net_status_t NET_SVC_Playerinfo_Parse (net_svc_playerinfo_t *block, msg_t *msg);
|
2001-11-03 10:48:55 +00:00
|
|
|
net_status_t NET_SVC_Nails_Emit (net_svc_nails_t *block, sizebuf_t *buf);
|
2001-11-02 06:00:21 +00:00
|
|
|
net_status_t NET_SVC_Nails_Parse (net_svc_nails_t *block, msg_t *msg);
|
- add some missing boundschecking to CDAudio_Play's track remap (in
specific plugins only)
- convert updateping, updatepl, updateentertime, updatestat,
updatestatlong, cdtrack intermission, finale, muzzleflashchokecount,
maxspeed, entgravity, and setpause on the client. Can you say all
that in one breath? :)
2001-11-05 16:17:45 +00:00
|
|
|
net_status_t NET_SVC_ChokeCount_Emit (net_svc_chokecount_t *block,
|
|
|
|
sizebuf_t *buf);
|
|
|
|
net_status_t NET_SVC_ChokeCount_Parse (net_svc_chokecount_t *block, msg_t *msg);
|
2001-11-03 10:48:55 +00:00
|
|
|
net_status_t NET_SVC_Modellist_Emit (net_svc_modellist_t *block,
|
|
|
|
sizebuf_t *buf);
|
2001-11-02 06:00:21 +00:00
|
|
|
net_status_t NET_SVC_Modellist_Parse (net_svc_modellist_t *block, msg_t *msg);
|
2001-11-03 10:48:55 +00:00
|
|
|
net_status_t NET_SVC_Soundlist_Emit (net_svc_soundlist_t *block,
|
|
|
|
sizebuf_t *buf);
|
2001-11-02 06:00:21 +00:00
|
|
|
net_status_t NET_SVC_Soundlist_Parse (net_svc_soundlist_t *block, msg_t *msg);
|
2001-11-04 21:23:22 +00:00
|
|
|
net_status_t NET_SVC_PacketEntities_Emit (net_svc_packetentities_t *block,
|
|
|
|
sizebuf_t *buf);
|
2001-11-02 06:00:21 +00:00
|
|
|
net_status_t NET_SVC_PacketEntities_Parse (net_svc_packetentities_t *block,
|
2001-11-04 21:23:22 +00:00
|
|
|
msg_t *msg);
|
|
|
|
net_status_t NET_SVC_DeltaPacketEntities_Emit (net_svc_deltapacketentities_t *block,
|
|
|
|
sizebuf_t *buf);
|
2001-11-02 06:00:21 +00:00
|
|
|
net_status_t NET_SVC_DeltaPacketEntities_Parse (net_svc_deltapacketentities_t *block,
|
2001-11-04 21:23:22 +00:00
|
|
|
msg_t *msg);
|
- add some missing boundschecking to CDAudio_Play's track remap (in
specific plugins only)
- convert updateping, updatepl, updateentertime, updatestat,
updatestatlong, cdtrack intermission, finale, muzzleflashchokecount,
maxspeed, entgravity, and setpause on the client. Can you say all
that in one breath? :)
2001-11-05 16:17:45 +00:00
|
|
|
net_status_t NET_SVC_MaxSpeed_Emit (net_svc_maxspeed_t *block, sizebuf_t *buf);
|
|
|
|
net_status_t NET_SVC_MaxSpeed_Parse (net_svc_maxspeed_t *block, msg_t *msg);
|
|
|
|
net_status_t NET_SVC_EntGravity_Emit (net_svc_entgravity_t *block,
|
|
|
|
sizebuf_t *buf);
|
|
|
|
net_status_t NET_SVC_EntGravity_Parse (net_svc_entgravity_t *block, msg_t *msg);
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
net_status_t NET_SVC_SetInfo_Emit (net_svc_setinfo_t *block, sizebuf_t *buf);
|
|
|
|
net_status_t NET_SVC_SetInfo_Parse (net_svc_setinfo_t *block, msg_t *msg);
|
|
|
|
net_status_t NET_SVC_QWServerInfo_Emit (net_svc_qwserverinfo_t *block,
|
|
|
|
sizebuf_t *buf);
|
|
|
|
net_status_t NET_SVC_QWServerInfo_Parse (net_svc_qwserverinfo_t *block, msg_t *msg);
|
|
|
|
net_status_t NET_SVC_UpdatePL_Emit (net_svc_updatepl_t *block, sizebuf_t *buf);
|
|
|
|
net_status_t NET_SVC_UpdatePL_Parse (net_svc_updatepl_t *block, msg_t *msg);
|
2001-10-18 04:44:58 +00:00
|
|
|
|
- convert MSG_Write to the same overflow checking MSG_Read uses, so
errors can be handled
- add a MSG_ReadBlock and MSG_WriteBlock, which write arbitrary
- add a MSG_PeekByte, although I never actually used it..
- canonicalize the svc's, so that if qw and nq have a svc with the
same name but different contents, they get different names
- add all the nq stuff to svc_t, so it has both nq and qw. fun enum
that :)
- fix all the sizebuf_t usages so they init all the fields properly
- move qw's net_svc.c, net_clc.c, net_packetlog.c, and msg_ucmd.c
(renamed to net_ucmd.c) into libs/net
- move headers for the above in include/QF
- convert remaining clc bits to NET_CLC (I think I got them all)
- I split net_svc into net_svc_common and net_svc_qw too, in
preperation for adding nq
- moved movevars_t into "QF/net_svc_qw.h", from pmove.h
- made the CL_Parse* functions in qw get the net_svc_*_t as a param,
instead of parsing themselves
- use a jumptable for CL_Parse*
- probably other machinates I've forgotten
- and of course, probably added numerous bugs :)
2001-11-10 23:52:35 +00:00
|
|
|
#endif // NET_SVC_QW_H
|