• Not able to switch to sweps with no ammo
    6 replies, posted
Simply put i need to make it where you can switch to weapons that have no ammo left. I'm using the counter strike base for my sweps.Any help is appreciated.
I don't think you can, although you could edit it to make it so you can't shoot it at 1, and make the 1 on a hud or so look like a 0, it would be a similar system, kind of hacky but it would work I suppose.
I'm thinking that's an engine feature, because of how weapon switching works, so you don't accidentally switch to a weapon with no ammo and die.
hmm thanks for the replies i guess ill have to figure it out somehow.
One thing you can do is a custom weapon selection system. Or a custom way to display custom ammo while the weapon uses none.
If you don't need a secondary fire, here's a useful trick: [lua]SWEP.Secondary.ClipSize = 1 // Size of a clip SWEP.Secondary.DefaultClip = 1 // Default number of bullets in a clip SWEP.Secondary.Automatic = false // Automatic/Semi Auto SWEP.Secondary.Ammo = "Gravity"[/lua]
well the secondary is the iron sights and i guess ill just have to deal with it cause i dont feel like going and making a custom system for this.
Sorry, you need to Log In to post a reply to this thread.