Functions in GPC Code
12 posts
• Page 2 of 2 • 1, 2
Re: Functions in GPC Code
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
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!
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!
-
antithesis - Colonel
- Posts: 1912
- Joined: Sat May 28, 2016 10:45 pm
Re: Functions in GPC Code
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
More info here - viewtopic.php?f=6&t=4567
-
antithesis - Colonel
- Posts: 1912
- Joined: Sat May 28, 2016 10:45 pm
12 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 3 guests