[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Weapon Checking  XML
Forum Index -> UnrealScript, Coding, Mapping, and 3rd party Mods
Author Message
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?
Kohan

Killing Spree

Joined: 01/21/2006 18:53:41
Messages: 88
Offline

^me
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



[Email]
v0rTeX

Wicked Sick!
[Avatar]

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.
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 .
 
Forum Index -> UnrealScript, Coding, Mapping, and 3rd party Mods
Go to: