Author Topic: i want ammo for weapons that do not have built in ammo support.  (Read 4199 times)

Rotondo's zombie mod had universal ammo.

If all I have to do is copy and paste 3 or 4 lines of code in all my weapons then I don't see that as an issue.
It's not 3 or 4 lines of code. You have to rewrite each weapon's state system to take ammo into account, which could mean 80-90 lines of code

It's not 3 or 4 lines of code. You have to rewrite each weapon's state system to take ammo into account, which could mean 80-90 lines of code

I seriously doubt this.

I seriously doubt this.
How many weapons have you made with ammo systems because i've made 3 so far and about 30 without and i can safely say that you have to add more than 3 to 4 lines of code to change the state system

You could make a hacky version where the projectile fails to spawn when you dont have enough ammo, but you'll still be required to play the firing animation and particle effects

How many weapons have you made with ammo systems because i've made 3 so far and about 30 without and i can safely say that you have to add more than 3 to 4 lines of code to change the state system

So you have so much experience and you don't think you can make a more universal type of system?

k

So aside from the fact that you believe it's not possible and it breaks T+T.

Is there any reason to not even attempt doing it?

So aside from the fact that you believe it's not possible and it breaks T+T.

Is there any reason to not even attempt doing it?

It breaks everything, even weapons without ammo systems. Its possible to do if you're willing to set aside time to fix every single weapon in existence, but nobody will do that.

That's the only reason to not ever attempt doing it - it takes too much time. If you want to fix every state system then feel free to, but im sure nobody else wants to do that

Its possible to do if you're willing to set aside time to fix every single weapon in existence, but nobody will do that.

All rotondo did was give people a line of codes and told them to edit it themselves.

So you're saying no one is going to do that with the add ons they enable on their server?

k

So you're speaking for me when you say that I probably wouldn't individually edit about 10 add ons in my folder to add a few lines of code in.

k

So you're saying no one is going to do that with the add ons they enable on their server?
Hell no. if you're making a universal system you want the interface to require as minimal coding possible on the client's side. If you want a system where all add-ons have ammo, you're out of luck. If you want a support file that allows you to add ammo to your items, look no further than Support_AmmoGuns.cs

k

you want the interface to require as minimal coding possible on the client's side.

k

So design one.

What's the issue?

k

So design one.

What's the issue?
It's not possible to design a simple interface if you have to rewrite every weapon's state system

Support_AmmoGuns.cs

is old as forget, we need something new.

It's not possible to design a simple interface if you have to rewrite every weapon's state system

Humor me.

yeah no lord tony ammo is a lot more work than just writing some functions and makin some models and items. each of those default style weapons you listed have different state setups, and simply packaging functions or setting image ammo wont work for most of them.

this is one of those things where if you want it, you gotta do it yourself, or accept the limitations other people put on it. arguing with them will make any willing coder not want to help you anymore.

Well I don't know what to do then because I really need ammo support.