Drop weapon glitch for ammo
Moderator: GZDoom Developers
-
- Posts: 2529
- Joined: Mon Mar 22, 2004 7:00 pm
- Preferred Pronouns: He/Him
- Location: California, USA. Previously known as "Agent ME".
Drop weapon glitch for ammo
This has probably been known since forever, but, in cooperative mode, if you pick up a gun such as a rocketlauncher, drop the gun with the "drop rocketlauncher" console command, and then re-grab the rocketlauncher (not the one dropped), you get 2 extra rockets. And this can be repeated to build up ammo.
This glitch can also be used in deathmatch mode if "weapons stay" is turned on.
Maybe it could be changed so if you drop a weapon, you drop the original ammo amount (if you have that much in your inventory). That would at most allow you to regain the original given amount of ammo, which I'd think is not a bad thing for the game to do.
This glitch can also be used in deathmatch mode if "weapons stay" is turned on.
Maybe it could be changed so if you drop a weapon, you drop the original ammo amount (if you have that much in your inventory). That would at most allow you to regain the original given amount of ammo, which I'd think is not a bad thing for the game to do.
-
- Posts: 2561
- Joined: Sun Dec 23, 2007 3:53 am
- Graphics Processor: nVidia with Vulkan support
- Location: My house
-
- Posts: 9369
- Joined: Thu Jul 14, 2005 8:33 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: Blacksburg, SC USA
Re: Drop weapon glitch for ammo
No, it's not. This one references the DROP command in the console. Confirmed.
-
- Site Admin
- Posts: 7749
- Joined: Wed Jul 09, 2003 10:30 pm
Re: Drop weapon glitch for ammo
I'm not really sure what to do here besides disallow the dropping of weapons entirely, which I'd rather avoid. (Weaponstay can be toggled on and off with immediate effects, so it wouldn't be enough to just prevent dropping when weaponstay is on.)
-
- Posts: 10002
- Joined: Fri Jul 18, 2003 6:18 pm
- Location: Idaho Falls, ID
Re: Drop weapon glitch for ammo
Do you currently drop any ammo with the dropped weapon? What happens when other people pick it up, do they get ammo?
I would think, if possible, the best solution would be to do as Agent ME suggests and drop the weapon along with the amount of ammo you normally start with (or whatever ammo you have for the weapon, whichever is less). Then the worst you could do is drop a weapon you have no ammo for and pick up another copy of it to get back up to the starting ammo. Admittedly, that's still an issue, but it's a lesser one...
Or, given that dropping a weapon is presumably to help out a teammate, maybe you could refuse to drop the weapon if the player's ammo is empty, since that shouldn't be useful to anyone anyway....
I would think, if possible, the best solution would be to do as Agent ME suggests and drop the weapon along with the amount of ammo you normally start with (or whatever ammo you have for the weapon, whichever is less). Then the worst you could do is drop a weapon you have no ammo for and pick up another copy of it to get back up to the starting ammo. Admittedly, that's still an issue, but it's a lesser one...
Or, given that dropping a weapon is presumably to help out a teammate, maybe you could refuse to drop the weapon if the player's ammo is empty, since that shouldn't be useful to anyone anyway....
-
- Posts: 9369
- Joined: Thu Jul 14, 2005 8:33 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: Blacksburg, SC USA
Re: Drop weapon glitch for ammo
No.HotWax wrote:Do you currently drop any ammo with the dropped weapon?
That specific weapon you dropped has zero ammo. I'm not sure why it's a special case.What happens when other people pick it up, do they get ammo?
ED: A suggestion is to flag weapons as picked up even when they're dropped. The only way they can recover the weapon is through another dropped weapon, whether by death, or here.
-
- Lead GZDoom+Raze Developer
- Posts: 49188
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Drop weapon glitch for ammo
All suggestions being done here are hacks. I think the only solution is to flag a weapon as being picked up so that each player can only get ammo once from it. Everything else is just doctoring at the symptoms without a cure.
-
- Posts: 9369
- Joined: Thu Jul 14, 2005 8:33 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: Blacksburg, SC USA
Re: Drop weapon glitch for ammo
Yay, I feel smart. <3
-
- Lead GZDoom+Raze Developer
- Posts: 49188
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Drop weapon glitch for ammo
No, your suggestion doesn't help. The handling for dropped weapons is ok. It's the handling for placed weapons that isn't.
-
- Posts: 9369
- Joined: Thu Jul 14, 2005 8:33 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: Blacksburg, SC USA
Re: Drop weapon glitch for ammo
Killjoy.
-
- Posts: 2529
- Joined: Mon Mar 22, 2004 7:00 pm
- Preferred Pronouns: He/Him
- Location: California, USA. Previously known as "Agent ME".
Re: Drop weapon glitch for ammo
That sounds like the perfect solution. Could this be implemented?Graf Zahl wrote:I think the only solution is to flag a weapon as being picked up so that each player can only get ammo once from it.
-
- Posts: 497
- Joined: Fri Nov 28, 2008 7:07 pm
Re: Drop weapon glitch for ammo
So basically, each weapon would have a flag for every player. Sounds like a lot.Graf Zahl wrote:All suggestions being done here are hacks. I think the only solution is to flag a weapon as being picked up so that each player can only get ammo once from it. Everything else is just doctoring at the symptoms without a cure.
It seems simpler to flag a player, whether they picked up a certain kind of weapon at some point, or even started with it. For example, Bob can only get ammo from shotguns once, even if he drops a shotgun and tries to pick up another one. This would be exactly the same behavior as disabling dropping weapons in terms of ammo (each player can get ammo from each weapon type once), but it would allow players to drop weapons in order to give them to other players.
I'd be willing to work on this, but I wish to clarify the best solution first.
Not necessarily. How about giving someone a chaingun? They might have bullets from their pistol already.HotWax wrote:Or, given that dropping a weapon is presumably to help out a teammate, maybe you could refuse to drop the weapon if the player's ammo is empty, since that shouldn't be useful to anyone anyway....
-
- Lead GZDoom+Raze Developer
- Posts: 49188
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Drop weapon glitch for ammo
Spleen wrote:
It seems simpler to flag a player, whether they picked up a certain kind of weapon at some point, or even started with it. For example, Bob can only get ammo from shotguns once, even if he drops a shotgun and tries to pick up another one.
And that would whack the balance of how many existing multiplayer WADs?
-
- Posts: 497
- Joined: Fri Nov 28, 2008 7:07 pm
Re: Drop weapon glitch for ammo
Not many I would think, since the amount of ammo players get would be exactly the same as playing with weapon stay right now, without abusing the drop glitch. With weapon stay off, Bob would still be able to get ammo from every shotgun. This is just for weapon stay on.Graf Zahl wrote:Spleen wrote:
It seems simpler to flag a player, whether they picked up a certain kind of weapon at some point, or even started with it. For example, Bob can only get ammo from shotguns once, even if he drops a shotgun and tries to pick up another one.
And that would whack the balance of how many existing multiplayer WADs?
-
- Lead GZDoom+Raze Developer
- Posts: 49188
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Drop weapon glitch for ammo
Not many I would think, since the amount of ammo players get would be exactly the same as playing with weapon stay right now, without abusing the drop glitch. With weapon stay off, Bob would still be able to get ammo from every shotgun. This is just for weapon stay on.[/quote]Spleen wrote: And that would whack the balance of how many existing multiplayer WADs?
This change won't be implemented because it's not a fix! It's replacing one problem with a much more serious one. Better forget it immediately.