Once again, needing some help to get started on the basics of a mod. What i need is for a gun to be able to run out of ammo and be unusable after a period of time (3 minutes).
I had the idea to have a second projectile that is always firing, but again I have no way of knowing how to do this.
It also needs to be a plasma weapon since the ammo will need to be released one at a time.
Timed ammo depletion
- -Treetoad-
- Posts: 736
- Joined: Sat Jun 03, 2006 7:58 pm
- Contact:
![]() |
![]() |
Timed ammo depletion
Sig over file size limit.
i remember this being discussed a few months ago but i dont think a solution was found

Halo 2 Plugins | Lock-on To Just About Anything | My Sites | Snow Hog
Old Plugins you have, upgrade you must...
Always Maintain a High Quality-To-Crap Ratio.
Re: Timed ammo depletion
Try setting the ammo recharge value in the weap tag to -1.-Treetoad- wrote:Once again, needing some help to get started on the basics of a mod. What i need is for a gun to be able to run out of ammo and be unusable after a period of time (3 minutes).
Halo 2 Prophet - Skin with ease with the simple 3D point and click interface.
Halo 3 Research Thread - Contribute to the research into Halo 3.
Halo 3 Research Thread - Contribute to the research into Halo 3.
- CaptainPoopface
- Posts: 408
- Joined: Mon Jul 23, 2007 7:56 am
![]() |
![]() |
![]() |
Prey's idea is clever. I wonder if that works. If that doesn't work with ammo (can you set an Int16 to a negative number?), try it with overheating. Set the heat loss per second to a negative number, so that the gun overheats and never dissipates the heat. You'll have to tweak it to get the time limit you want.
If neither of those ideas work, you're in for a longer evening. Here's what I'd do:
Use a human gun. The magnum, let's say. Change the trigger to Automatic. Add a second projectile (invisible, no damage) and assign it to the same trigger and magazine as the first projectile. Give the magazine a capacity of 90. For the second projectile, set the rate of fire to 0.5 rounds per second (1 round every 2 seconds), and set the shots per burst to 90. Make your regular projectile deplete no ammo when fired.
The way I hope it works, you are firing an invisible projectile every two seconds that will deplete your ammo after 3 minutes. Once you push the trigger for the first time, the countdown begins. Ideally, you'll be able to pulse the trigger and squeeze in the regular rounds between those shots. I suspect it might not work, however, because in my experience, when two projectiles are mapped to the same trigger, the second projectile does not start firing until the first projectile has depleted its magazine (or you interrupt it by reloading). You also cannot set the R trigger to be semi-automatic for one magazine and automatic for the other, unfortunately.
You might be able to get away with the same method on a plasma weapon (second automatic invisible projectile continuously aging the gun) , since they don't have magazines.
If neither of those ideas work, you're in for a longer evening. Here's what I'd do:
Use a human gun. The magnum, let's say. Change the trigger to Automatic. Add a second projectile (invisible, no damage) and assign it to the same trigger and magazine as the first projectile. Give the magazine a capacity of 90. For the second projectile, set the rate of fire to 0.5 rounds per second (1 round every 2 seconds), and set the shots per burst to 90. Make your regular projectile deplete no ammo when fired.
The way I hope it works, you are firing an invisible projectile every two seconds that will deplete your ammo after 3 minutes. Once you push the trigger for the first time, the countdown begins. Ideally, you'll be able to pulse the trigger and squeeze in the regular rounds between those shots. I suspect it might not work, however, because in my experience, when two projectiles are mapped to the same trigger, the second projectile does not start firing until the first projectile has depleted its magazine (or you interrupt it by reloading). You also cannot set the R trigger to be semi-automatic for one magazine and automatic for the other, unfortunately.
You might be able to get away with the same method on a plasma weapon (second automatic invisible projectile continuously aging the gun) , since they don't have magazines.
Retired. Thank you neodos, DemonicSandwich, DarkShallFall, Dragonfire, foxfanatic2317, GOWO and everyone in the hall of fame.
If you want to know how I did something, take apart my mods.
If you want to know how I did something, take apart my mods.
Yes, as it's a signed data-type. If the value I'm talking about though is unsigned, UInt16, then no :\CaptainPoopface wrote:(can you set an Int16 to a negative number?)
Halo 2 Prophet - Skin with ease with the simple 3D point and click interface.
Halo 3 Research Thread - Contribute to the research into Halo 3.
Halo 3 Research Thread - Contribute to the research into Halo 3.
- -Treetoad-
- Posts: 736
- Joined: Sat Jun 03, 2006 7:58 pm
- Contact:
![]() |
![]() |
I had an idea that was similar to yours, but I need the time that the gun runs out and the time that the ball is destroyed to be at almost the exact second. If prey's idea works, that will save me a ton of effort. I will actually start working on my mod once I know that the entire thing can actually be done
Sig over file size limit.