Author |
Message |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 02/24/2006 17:50:22
|
Anonymous
|
I wanted to redo Resupply, because I don't like skippy regeneration (eg: 1 health 5 times/sec, not 5 health 1 time/sec), however, I ran into a road block; every weapon has different amounts of ammo. Resupply normally regenerates (in one regenerate tick) 1+(MaxAmmo/100) ammo. I'm doing it differently, but even so, I don't know how I would make multiple timers for the different ammo amounts. By the way, the formula I want to change it to is StartingAmmo/60, so you get a clip's worth in a minute, per level. So yeah, anyone got any ideas on the timer issue?
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 02/25/2006 12:28:11
|
Kohan
Killing Spree
Joined: 01/21/2006 18:53:41
Messages: 88
Offline
|
^me
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 04/28/2006 11:28:00
|
count d'money
Killing Spree
Joined: 02/05/2006 20:46:54
Messages: 48
Location: NJ
Offline
|
Anonymous wrote:
I wanted to redo Resupply, because I don't like skippy regeneration (eg: 1 health 5 times/sec, not 5 health 1 time/sec), however, I ran into a road block; every weapon has different amounts of ammo. Resupply normally regenerates (in one regenerate tick) 1+(MaxAmmo/100) ammo. I'm doing it differently, but even so, I don't know how I would make multiple timers for the different ammo amounts. By the way, the formula I want to change it to is StartingAmmo/60, so you get a clip's worth in a minute, per level. So yeah, anyone got any ideas on the timer issue?
Yes, the easiest way to deal with the problem of using multiple timers is to forget about using them altogether and stick with the one you have. If normal resupply generates in 1 tick 1+(MaxAmmo/100) ammo then you could express the rate as :
ticks * ( 1+(MaxAmmo/100) where ticks is currently = 1. To get twice as ammo (two resupplies per time period) bump ticks up to 2. Your calculation then resloves to 2 * ( 1+(MaxAmmo/100). You can use any number as the tick multiplier; 2, 3, 4.5, .75. This will have the effect of simulating different time periods for ammo resupply. Get the drift?
Cheers,
The Count
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 04/28/2006 20:19:01
|
v0rTeX
Wicked Sick!
![[Avatar]](/dcforum/images/avatar/c9f0f895fb98ab9159f51fd0297e236d.jpg)
Joined: 12/19/2004 20:59:52
Messages: 562
Offline
|
I don't think you can smooth out resupply in the case of guns that are granted 1 ammo per tick per level without unbalancing them since they would get 1 ammo several times per second.
|
|
 |
![[Post New]](/dcforum/templates/default/images/icon_minipost_new.gif) 05/18/2006 21:00:08
|
Kohan
Killing Spree
Joined: 01/21/2006 18:53:41
Messages: 88
Offline
|
Poopie. Well, I long ago abandoned this project (the computer the files were on was formatted, god it hurt when I realized that). But it doesn't matter, I suppose. Thanks for the replies, though .
|
|
 |
|
|
|