cvar_t cl_beams_quakepositionhack feature request from L3gend

qbism Super8 is a gritty software-rendering 3D engine based on Makaqu and other GPL Quake source code.
Post Reply

0
No votes
 
Total votes: 0

User avatar
func_qbism
Posts: 76
Joined: Tue Aug 04, 2015 1:51 pm
Contact:

cvar_t cl_beams_quakepositionhack feature request from L3gend

Post by func_qbism » Wed Dec 30, 2015 2:04 am

From cl_tent.c

// if coming from the player, update the start position
if (b->entity == cl.viewentity)
{
// Manoel Kasimier - begin
// This keeps the angle of the beam identical to the viewangle
if (b->model->name[10] == '2' /*"progs/bolt2.mdl"*/) // bloody hack
{
vec3_t front, right, up;
VectorSubtract (b->start, b->end, dist);
forward = Length(dist);
AngleVectors (r_refdef.viewangles, front, right, up);

VectorCopy (cl_entities[cl.viewentity].origin, b->start);
b->end[0] = b->start[0] + front[0]*forward;
b->end[1] = b->start[1] + front[1]*forward;
b->end[2] = b->start[2] + front[2]*forward;
}
else
// Manoel Kasimier - end
VectorCopy (cl_entities[cl.viewentity].origin, b->start);
}

I'm busy with another project, but will add 'to-do' next time engine is updated:

cvar_t cl_beams_quakepositionhack = {CVAR_SAVE, "cl_beams_quakepositionhack", "1", "makes your lightning gun appear to fire from your waist (as in Quake and QuakeWorld)"};
Welcome to Rivendale, Mister Anderson.

User avatar
func_qbism
Posts: 76
Joined: Tue Aug 04, 2015 1:51 pm
Contact:

Re: cvar_t cl_beams_quakepositionhack feature request from L3gend

Post by func_qbism » Sat Jan 02, 2016 1:19 pm

test build. Please report any issues here or on the quakeone 'Quake 1.5' thread.
qbismS8-test-01-02-16.zip
(283.23 KiB) Downloaded 349 times
Welcome to Rivendale, Mister Anderson.

Post Reply