Page 1 of 1

Navy Seals: centralizing bullets?

Posted: Fri Apr 26, 2013 3:06 am
by JasonX
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?

Posted: Fri Apr 26, 2013 12:14 pm
by ceriux
if its like normal quake, its in the fire function

Re: Navy Seals: centralizing bullets?

Posted: Sat Apr 27, 2013 8:23 pm
by JasonX
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?

Posted: Sun Apr 28, 2013 4:30 am
by ceriux
im pretty sure, that its handled individually, in each of the fire functions.

Re: Navy Seals: centralizing bullets?

Posted: Sun May 05, 2013 3:11 am
by Supa
You'll want to dike out the lines that play with the traceline sources in things like W_FireM16:

Code: Select all

   src_z = (self.absmin_z + (self.size_z * 0.800));
   src_y = (self.absmin_y + (self.size_y * 0.400));
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:

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));
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 :)