How do you calculate ticks between shots?

Started by Deimos Rast, September 09, 2016, 02:07:53 AM

Previous topic - Next topic

Deimos Rast

How do you calculate ticks between shots?
Take the Machine Pistol as an example. Does the RangedWeapon_Cooldown get added after each shot in a burst, or at the end of a burst of shots?
RangedWeapon_Cooldown is defined by the game as "How long it takes to recover after firing this weapon."

I came up with two versions. I'm leaning toward number one, but I really don't know. This is important because of reasons. ;D

==== VERSION 1 ====
--Combat Round Begins--
warmupTicks +45
*Shot 1 of 3 Fired*
RangedWeapon_Cooldown +0.66
ticksBetweenBurstShots +7
*Shot 2 of 3 Fired*
RangedWeapon_Cooldown +0.66
ticksBetweenBurstShots +7
*Shot 3 of 3 Fired*
RangedWeapon_Cooldown +0.66
ticksBetweenBurstShots +7
--Combat Round Ceases--


==== VERSION 2 ====
--Combat Round Begins--
warmupTicks +45
*Shot 1 of 3 Fired*
ticksBetweenBurstShots +7
*Shot 2 of 3 Fired*
ticksBetweenBurstShots +7
*Shot 3 of 3 Fired*
ticksBetweenBurstShots +7
RangedWeapon_Cooldown +0.66
--Combat Round Ceases--
#StopPluginAbuse

PieTau

the cooldown is only for the last bullet you fire

==== VERSION 2 (in ticks)====
--Combat Round Begins--
warmupTicks +45
*Shot 1 of 3 Fired*
ticksBetweenBurstShots +7
*Shot 2 of 3 Fired*
ticksBetweenBurstShots +7
*Shot 3 of 3 Fired*
ticksBetweenBurstShots +7
RangedWeapon_Cooldown +40
--Combat Round Ceases--

Deimos Rast

Quote from: ninosegers on September 09, 2016, 02:49:16 AM
snip

Thanks! Thinking about it now, I suppose I could have made a dummy gun and jacked up the values to test it.
#StopPluginAbuse