PDA

View Full Version : knife range


mazdaplz
23rd April 2007, 21:36
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
23rd April 2007, 21:38
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
23rd April 2007, 21:40
look at Weapon_Knife in g_weapon.c

mazdaplz
25th April 2007, 02:01
tx a lot :D