Jump to content
Sign in to follow this  
Mladja-ArmASerbia

Disable magazine from hide on AT

Recommended Posts

So, I got an AT which have CLU(similar to javelin). There is no possibility to put rocket in tube, like in javelin, rocket is already in tube, just CLU need to be attached to tube.

My problem is that when i shot from AT my tube dissapear.

Everything work fine when you deattach tube, which is as magazine on CLU, so when is deattached he dissapear from CLu, its work like magazine on Rifle.

But when shoot the Tube dissapear. After shoot he still need to stay attached on CLU, like magazine on Rifle in A3.

So is there any way to solve this problem and prevent dissapearing of tube after shoot?

The whole launcher work like Javelin, got tube with rocket and CLU.

model.cfg

class Test_WeaponBase: Rifle
{
	skeletonName = "Test_Weapon";
	sectionsInherit = "";
	sections[] = {};
	class Animations
	{
		class no_magazine
		{
			type="hide";
			source="hasMagazine";
			selection="magazine";
			minValue=0.000000;
			maxValue=1.00000;
			hideValue=0.5;
			unhideValue = -1.0;
		};
	};
};
class bumbar_launcher: Test_WeaponBase {};
};

I used hasMagazine to hide tube when is not present as magazine on CLU.

---------- Post added at 15:24 ---------- Previous post was at 15:23 ----------

Ok, I found something like "solution".

This work very well, but only if magazine has count more than 1.

So if I put in magazine count 10, the AT will shoot 10 rockets, and the tube will not dissapear when is empty.

But if i put 1, the tube will dissapear.

So, I need to go more deeper, to try to add some fake magazine or to set reloadtime to 99999999999999999 for AT so it will never load secont rocket.

Any suggestions, come on, this will be awesome.

This also can helo AlexVestin's javelin, so it will be like in real life.

Alex Vestin FGM148, can we fix it?

Edited by mladjaSRB

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×