mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 06:31:56 +00:00
flymode WORKS! I'm also poking around a few other qw_server files..
This commit is contained in:
parent
3b6fa457e8
commit
018ca24c62
5 changed files with 5 additions and 13 deletions
|
@ -758,7 +758,7 @@ V_CalcRefdef ( void )
|
|||
static float oldz = 0;
|
||||
|
||||
#ifdef QUAKEWORLD
|
||||
h = cl.qfserver ? cl.stats[STAT_VIEWHEIGHT] : 22;
|
||||
h = cl.stats[STAT_VIEWHEIGHT] + 22;
|
||||
#endif
|
||||
V_DriftPitch ();
|
||||
|
||||
|
|
|
@ -50,27 +50,18 @@ netadr_t master_adr[MAX_MASTERS]; // address of group servers
|
|||
|
||||
client_t *host_client; // current client
|
||||
|
||||
//cvar_t sv_maxrate = {"sv_maxrate","0"}; // server maximum rate
|
||||
cvar_t *sv_maxrate;
|
||||
//cvar_t sv_mintic = {"sv_mintic","0.03"}; // bound the size of the
|
||||
cvar_t *sv_mintic;
|
||||
//cvar_t sv_maxtic = {"sv_maxtic","0.1"}; // physics time tic
|
||||
cvar_t *sv_maxtic;
|
||||
|
||||
//cvar_t developer = {"developer","0"}; // show extra messages
|
||||
cvar_t *developer;
|
||||
|
||||
//cvar_t timeout = {"timeout","65"}; // seconds without any message
|
||||
cvar_t *timeout;
|
||||
//cvar_t zombietime = {"zombietime", "2"}; // seconds to sink messages
|
||||
cvar_t *zombietime;
|
||||
// after disconnect
|
||||
|
||||
//cvar_t rcon_password = {"rcon_password", ""}; // password for remote server commands
|
||||
cvar_t *rcon_password;
|
||||
//cvar_t password = {"password", ""}; // password for entering the game
|
||||
cvar_t *password;
|
||||
//cvar_t spectator_password = {"spectator_password", ""}; // password for entering as a sepctator
|
||||
cvar_t *spectator_password;
|
||||
|
||||
cvar_t *allow_download;
|
||||
|
@ -104,7 +95,6 @@ cvar_t *watervis;
|
|||
|
||||
int current_skill;
|
||||
|
||||
//cvar_t hostname = {"hostname","unnamed", CVAR_USERINFO|CVAR_SERVERINFO};
|
||||
cvar_t *hostname;
|
||||
extern cvar_t *cl_warncmd;
|
||||
|
||||
|
|
|
@ -805,7 +805,7 @@ void SV_Physics_Step (edict_t *ent)
|
|||
{
|
||||
qboolean hitsound;
|
||||
|
||||
// frefall if not onground
|
||||
// freefall if not onground
|
||||
if ( ! ((int)ent->v.flags & (FL_ONGROUND | FL_FLY | FL_SWIM) ) )
|
||||
{
|
||||
if (ent->v.velocity[2] < movevars.gravity*-0.1)
|
||||
|
@ -856,6 +856,7 @@ void SV_RunEntity (edict_t *ent)
|
|||
|
||||
switch ( (int)ent->v.movetype)
|
||||
{
|
||||
case MOVETYPE_WALK:
|
||||
case MOVETYPE_PUSH:
|
||||
SV_Physics_Pusher (ent);
|
||||
break;
|
||||
|
|
|
@ -556,7 +556,7 @@ void SV_UpdateClientStats (client_t *client)
|
|||
stats[STAT_ITEMS] = (int)ent->v.items | ((int)pr_global_struct->serverflags << 28);
|
||||
|
||||
// Extensions to the QW 2.40 protocol for MegaTF
|
||||
stats[STAT_VIEWHEIGHT] = (int)ent->v.view_ofs[2];
|
||||
stats[STAT_VIEWHEIGHT] = (int)ent->v.view_ofs[2] - 22;
|
||||
stats[STAT_FLYMODE] = (ent->v.movetype == MOVETYPE_FLY);
|
||||
|
||||
for (i=0 ; i<MAX_CL_STATS ; i++)
|
||||
|
|
|
@ -1471,6 +1471,7 @@ void SV_RunCmd (usercmd_t *ucmd, qboolean inside)
|
|||
VectorCopy (sv_player->v.velocity, pmove.velocity);
|
||||
VectorCopy (sv_player->v.v_angle, pmove.angles);
|
||||
|
||||
pmove.flying = sv_player->v.movetype == MOVETYPE_FLY;
|
||||
pmove.spectator = host_client->spectator;
|
||||
pmove.waterjumptime = sv_player->v.teleport_time;
|
||||
pmove.numphysent = 1;
|
||||
|
|
Loading…
Reference in a new issue