Functions in GPC Code

Tutorials, How-tos and FAQs for the Titan One device.

Re: Functions in GPC Code

Postby antithesis » Sun Aug 28, 2016 11:57 pm

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!
Official Australian retailer for Titan One, Titan Two and XIM APEX at Mod Squad
User avatar
antithesis
Colonel
Colonel
 
Posts: 1912
Joined: Sat May 28, 2016 10:45 pm

Re: Functions in GPC Code

Postby antithesis » Fri Sep 02, 2016 1:14 am

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
Official Australian retailer for Titan One, Titan Two and XIM APEX at Mod Squad
User avatar
antithesis
Colonel
Colonel
 
Posts: 1912
Joined: Sat May 28, 2016 10:45 pm

Previous

Return to Tutorials and FAQs

Who is online

Users browsing this forum: No registered users and 3 guests