Page 2 of 2

Re: Functions in GPC Code

PostPosted: Sun Aug 28, 2016 11:57 pm
by antithesis
Thanks Rabid! I was wondering if toggles could be condensed as there's typically a lot of duplication. The code is doing my head in, gimme a couple of hours to wrap my head around it :shocked:

Any thoughts on how to condense RumbleNotifier and DoubleRumbleNotifier (and potentially more) into one combo or function?

I'm thinking bit operations could be used, or pulling the rumble loop into a separate combo, then using combo_stop, wait (RumbleTimer), combo_stop.

A toggle (or flags) could use e.g RumbleTimer = 1000 for TRUE and RumbleTimer = 2000 for FALSE. Or RumbleTimer = 1000, 2000, 3000 etc to correspond with bit flags.

Looking forward to your rapid fire magic!

Re: Functions in GPC Code

PostPosted: Fri Sep 02, 2016 1:14 am
by antithesis
I've written a very simple rapid-fire function that integrates with the standard rapid-fire combo and GunFlags bit operations.

More info here - viewtopic.php?f=6&t=4567