knife range


(mazdaplz) #1

ok i made a couple of adjustments to et, i managed to change models, damage and some other stuff, im kinda stuck now tho:
i havent been able to find where the code that sets the range of the knife or other weapons is. i want to make the knife have more range, like a sword. i appreciate the help


(jaybird) #2

Look in g_weapons.c. I forget the exact function name, but look for something like “weapon_knife”. There’s a vector scale call there with a constant number - that’s the range. Increase that number.


(SCDS_reyalP) #3

look at Weapon_Knife in g_weapon.c


(mazdaplz) #4

tx a lot :smiley: