Ammunition Limits -1 reply

Please wait...

Guest

I didn't make it!

0 XP

 
#1 7 years ago

Hi everyone. I was wondering if it is possible to have a particular hardpoint fire a finite number of times in a single tactical battle, to give the impression of an ammo count. For example, allowing the B-wing a limit of, say, twelve (12) torpedoes in one battle. Any help with this would be greatly appreciated. Thanks.




Geroenimo

Dread thinks I'm a special person

50 XP

11th April 2010

0 Uploads

326 Posts

0 Threads

#2 7 years ago

Only way to do that: Firepulsecount: 12 Pulsedelay: 3 reload time: 99999999999999999999999999999999999999999999999999999999999999999 That way it'll only fire off 12, with a reasonable delay so they don't waste em on one hardpoint.




Guest

I didn't make it!

0 XP

 
#3 7 years ago

Thanks Geroenimo, it's always the simplest solutions that are the best. :)




Geroenimo

Dread thinks I'm a special person

50 XP

11th April 2010

0 Uploads

326 Posts

0 Threads

#4 7 years ago

"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." -Albert Einstein

Been thinking about the concept for quite some time, just that I don't wish to use it so I thought I'd throw it in as someone needed it ;)




DragonShadow

shady dragon-person

50 XP

16th April 2006

0 Uploads

444 Posts

0 Threads

#5 7 years ago

hehe, pretty clever geroenimo




Guest

I didn't make it!

0 XP

 
#6 7 years ago

Sorry Geroenimo, but I'm having trouble making this work properly. If I have it set up like it is below, it should fire of 4 torpedoes, with 5 seconds inbetween each one and then not fire off any more. (I think) But it does not stop at 4 torpedoes. Can you tell me what I have done Wrong? MuzzleA_00MuzzleA_0030.030.0Proj_Ship_Proton_Torpedo_Light45.09999999999999999999999.0700.0Unit_Torpedo_Fire




Geroenimo

Dread thinks I'm a special person

50 XP

11th April 2010

0 Uploads

326 Posts

0 Threads

#7 7 years ago
AUS_Doug;5585855Sorry Geroenimo, but I'm having trouble making this work properly. If I have it set up like it is below, it should fire of 4 torpedoes, with 5 seconds inbetween each one and then not fire off any more. (I think) But it does not stop at 4 torpedoes. Can you tell me what I have done Wrong? MuzzleA_00MuzzleA_0030.030.0Proj_Ship_Proton_Torpedo_Light45.09999999999999999999999.0700.0Unit_Torpedo_Fire

Try:

MuzzleA_00MuzzleA_0030.030.0Proj_Ship_Proton_Torpedo_Light45.09999999999999999.0700.0Unit_Torpedo_Fire

with some less 9s




Guest

I didn't make it!

0 XP

 
#8 7 years ago

Hi Geroenimo. Still cannot get it to work, I changed the recharge to 1000 seconds, which is still plenty of time to end a tactical battle (it's about 16 minutes I think) but it just keeps firing after 4 torpedoes. As far as I can see this should work fine. I just cannot think of where the issue is. MuzzleA_00MuzzleA_0030.030.0Proj_Ship_Proton_Torpedo_Light45.01000.0700.0Unit_Torpedo_Fire If it would help I can send you any of the files I'm using.




Guest

I didn't make it!

0 XP

 
#9 7 years ago

Ive decided to leave this out of my mod, as I still cannot get it to work. However if anyone figures out the code to make this work, please post it up here as I think it would make a brilliant addition to many mods, not just my own.