Jump to content

Home

Bryar Pistol Alt Fire Behavior


recombinant

Recommended Posts

Posted

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.

 

:rolleyes:

Posted

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

Posted

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!

 

:D

 

Thanks for your help!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...