mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 16:50:48 +00:00
CVAR_FIXME cleanup
This commit is contained in:
parent
6168fcebcc
commit
df980b44a1
13 changed files with 2 additions and 495 deletions
|
@ -1188,11 +1188,6 @@ Pick a vector for the player to shoot along
|
|||
vector aim(entity, missilespeed)
|
||||
=============
|
||||
*/
|
||||
/* //cvar_t sv_aim = {"sv_aim", "0.93"};
|
||||
CVAR_FIXME */
|
||||
//cvar_t *sv_aim;
|
||||
/* cvar_t sv_aim = {"sv_aim", "2"};
|
||||
CVAR_FIXME */
|
||||
cvar_t *sv_aim;
|
||||
void PF_aim (void)
|
||||
{
|
||||
|
@ -1227,8 +1222,6 @@ void PF_aim (void)
|
|||
VectorMA (start, 2048, dir, end);
|
||||
tr = SV_Move (start, vec3_origin, vec3_origin, end, false, ent);
|
||||
if (tr.ent && tr.ent->v.takedamage == DAMAGE_AIM
|
||||
/* && (!teamplay.value || ent->v.team <=0 || ent->v.team != tr.ent->v.team) )
|
||||
CVAR_FIXME */
|
||||
&& (!teamplay->value || ent->v.team <=0 || ent->v.team != tr.ent->v.team) )
|
||||
{
|
||||
VectorCopy (pr_global_struct->v_forward, G_VECTOR(OFS_RETURN));
|
||||
|
@ -1238,8 +1231,6 @@ void PF_aim (void)
|
|||
|
||||
// try all possible entities
|
||||
VectorCopy (dir, bestdir);
|
||||
/* bestdist = sv_aim.value;
|
||||
CVAR_FIXME */
|
||||
bestdist = sv_aim->value;
|
||||
bestent = NULL;
|
||||
|
||||
|
@ -1250,8 +1241,6 @@ void PF_aim (void)
|
|||
continue;
|
||||
if (check == ent)
|
||||
continue;
|
||||
/* if (teamplay.value && ent->v.team > 0 && ent->v.team == check->v.team)
|
||||
CVAR_FIXME */
|
||||
if (teamplay->value && ent->v.team > 0 && ent->v.team == check->v.team)
|
||||
continue; // don't aim at teammate
|
||||
for (j=0 ; j<3 ; j++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue