recombinant Posted April 25, 2003 Posted April 25, 2003 Does anyone here know if it's possible to modify the bryar pistol's ALT-Fire behavior - specifically, to remove the shaking and charge-up? I'd like the alt-fire to behave basically just like a high powered primary fire, without the charging. Where in the JK2MP code can I accomplish this? Sorry... I'm just a bit rusty after not digging around in the code for a few months.
RenegadeOfPhunk Posted April 25, 2003 Posted April 25, 2003 g_weapon.c -> WP_FireBryarPistol() (there is an if block which checks the altFire param. This is the stuff you'll specifically need to change in this function) probably other areas of code you'll need to change, but there's a starting point for ya
recombinant Posted April 25, 2003 Author Posted April 25, 2003 i also found a PM_DoChargedWeapons as well... that might be helpful. I'll try it out.
recombinant Posted April 25, 2003 Author Posted April 25, 2003 Done. The code in PM_DoChargedWeapons (in bg_pmove.c) seemed to have the biggest effect, since it governs which weapons have the charging effect and which don't. Also CG_AddPlayerWeapon() had some stuff that included the bryar pistol's charging, so I commented that out as well, and... no charging! Thanks for your help!
Wudan Posted April 26, 2003 Posted April 26, 2003 Damn, I was planning a memorial mod. Jedi Stone: Pain from Beyond
recombinant Posted April 28, 2003 Author Posted April 28, 2003 Man, you guys are BRUTAL!!! As Rodney Dangerfield would say, "Huh, I tell ya - I get no respect, no respect at all..."
Recommended Posts
Archived
This topic is now archived and is closed to further replies.