Author Topic: Health & ammunition resupply system  (Read 4560 times)

Gah. Okay, these ammo crates should refill respectable amounts of ammo to every ammo type that exists in a server.

Say, if one crate fills 50% of the max ammo of a certain weapon type, and that weapon's max ammo is 32, and it currently has 0, it will get 16/32.
If it had 3 while getting that 50% ammo, it would have 19/32.
There should be rounding to the nearest one for weapons that have uneven numbers for max ammo.
Of course. That's how the health kits work too.

If your talking about all weapons in general, this would be extremely hard to do, because you have to enter code for every single weapon.

If your talking about all weapons in general, this would be extremely hard to do, because you have to enter code for every single weapon.
Yes I am talking about all the TF2 weapons. Yes it is going to be hard work.

Yes I am talking about all the TF2 weapons. Yes it is going to be hard work.

Oh, I though you ment every BL weapon. But yeah it wil be. The Zombie mod has an ammo script, but is hacky and not very good. It might happen to this too.

Also. I'm going to be releasing these tomorrow. The health kits that is.

Also. I'm going to be releasing these tomorrow. The health kits that is.

Cools.

When will your TDM be public?

argh, my creations are melting in my fingers

Yes I am talking about all the TF2 weapons. Yes it is going to be hard work.
No, me. >:C

Cools.

When will your TDM be public?
Don't hold your breath. It will take at least a month. I need loads of balanced TF2 weapons.

Don't hold your breath. It will take at least a month. I need loads of balanced TF2 weapons.

Next winter turns into a few days. A few days turns into a month. Now it will turn into 10 years.  :cookieMonster:

The release of this thing depends entirely on how fast Ephialtes responds to my PM.

The release of this thing depends entirely on how fast Ephialtes responds to my PM.

Aka never


i exist you know
Yes and you can do the hard work of the ammunition system.

Thanks. This is great.
Demian, should I stop? You seem fine already.
I have a question.
Should TF2 weapons have ammo that doesn't all spawn all around the player as he dies but when the player dies, they spawn the ammo type of the weapon they're holding, and that ammo uses the same shape as the weapon itself?
Should that dropped ammo refill all types of ammo?
I think it should.
Should they fill a fixed percentage of ammo for each weapon type (each weapon type available?) or should it be RTB prefs
Should these things be prefs? How should that work?

Should they refill other ammo using weapons?
I think that might be next to impossible.

It sounds complicated.
I guess I'd have to live with it.
Thoughts?
I'm not fine by any means, I really do need this ammo system. The ammo should fit all weapons. The ammo is dropped when the player dies. I can do the model for it. Ammo dropped by dead players refill 50% of the player's current weapon's maximum ammo capacity. The ammo boxes refill 20%, 50% and 100% of the player's current weapon's maximum ammo capacity, but you need not worry about that.