Make Tanya reload

Information and discussion for custom maps and mods.
Post Reply
pointbreak
Posts: 44
Joined: Mon Jul 23, 2018 10:54 am

Make Tanya reload

Post by pointbreak »

I want to make Tanya reload every 10 or so shots for about 2 seconds. How to? I tried this

Code: Select all

E7:
	AmmoPool:
		Ammo: 10
		PipCount: 0
		AmmoCondition: ammo
	ReloadAmmoPool:
		Delay: 25
		Count: 10
But it doesn't really seem to work, from what I've seen she still doesn't take a break.

User avatar
Sleipnir
Posts: 797
Joined: Wed Apr 10, 2002 11:52 pm
Contact:

Re: Make Tanya reload

Post by Sleipnir »

You will also need to add PauseOnCondition: !ammo to her Armament traits.

pointbreak
Posts: 44
Joined: Mon Jul 23, 2018 10:54 am

Re: Make Tanya reload

Post by pointbreak »

Thanks!

pointbreak
Posts: 44
Joined: Mon Jul 23, 2018 10:54 am

Re: Make Tanya reload

Post by pointbreak »

Turned it into:

Code: Select all

E7:
	AmmoPool:
		Ammo: 10
		PipCount: 0
		AmmoCondition: ammo
	ReloadAmmoPool:
		Delay: 25
		Count: 10
	Armament@PRIMARY:
		PauseOnCondition: !ammo
	Armament@SECONDARY:
		PauseOnCondition: !ammo
	Armament@GARRISONED:
		PauseOnCondition: !ammo
It didn't work :?

pointbreak
Posts: 44
Joined: Mon Jul 23, 2018 10:54 am

Re: Make Tanya reload

Post by pointbreak »

Or is it meant to be in the weapons?

User avatar
Sleipnir
Posts: 797
Joined: Wed Apr 10, 2002 11:52 pm
Contact:

Re: Make Tanya reload

Post by Sleipnir »

Try adding the traits to show ammo pips and then check that the ammo is actually being expended when the weapon fires. My best guess is that it probably isn't.

pointbreak
Posts: 44
Joined: Mon Jul 23, 2018 10:54 am

Re: Make Tanya reload

Post by pointbreak »

And assuming it isn't, how can it be changed?

Post Reply