Navy Seals: centralizing bullets?
Navy Seals: centralizing bullets?
I'm hacking away the old navy seals codebase and started by removing the laser sights. However, i'm not sure where the code for changing the bullets center "target". Does anyone have an idea?
Re: Navy Seals: centralizing bullets?
if its like normal quake, its in the fire function
Re: Navy Seals: centralizing bullets?
There are many different "fire" functions. I was trying to find the piece of code that shifts all bullets a little bit to the left.
Re: Navy Seals: centralizing bullets?
im pretty sure, that its handled individually, in each of the fire functions.
Re: Navy Seals: centralizing bullets?
You'll want to dike out the lines that play with the traceline sources in things like W_FireM16:
Also, from looking at M16.qc itself I'm not really sure just wtf is going on in the NS 3.0 source, just from seeing gems like this:
in M16_TraceAttack I'm pretty sure ns30src is based on decompiled source, but I can't say for certain as I don't know the whole story. Would be interesting to hear it from someone who does, though :)
Code: Select all
src_z = (self.absmin_z + (self.size_z * 0.800));
src_y = (self.absmin_y + (self.size_y * 0.400));
Code: Select all
vel = normalize (((dir + (v_up * crandom ())) + (v_right * crandom ())));
vel = (vel + (FL_SWIM * trace_plane_normal));
vel = (vel * 200.000);
org = (trace_endpos - (dir * MOVETYPE_STEP));
aut viam inveniam aut faciam