Jump to content
Bruce Conway

Finding the bool value if bipod is deployed

Recommended Posts

Hi,

I was wanting to create two different hand anims one for holding the weapon for standing up and another one for when the weapon is deployed. I was thinking of using this

if (bipoddeployed = 1 or weapondeployed = 1){

     handanim = "deployed";

}; 

else{

     handanim = "undeployed"

};

Share this post


Link to post
Share on other sites

Ok so I found an answer for this, I can use either isWeaponDeployed or bipod_legs both of which return a boolean value. Is there any way to change an animation like in the model.cgf for example:

class Change_Grip{
     type = "animation";
     source = "bipod_legs";

     selection = "handanim";

     target = "\folder\data\handanim_Deployed.rtm";
};

 

Share this post


Link to post
Share on other sites

I was fooling around with this a couple of months ago. although i never was able to complete it. this would be a script added to whatever unit(s) you wanted this to work on, as far as im aware, theres no built in model config or config.cpp support for it

 

1. add WeaponDeployed eventhandler to unit 

2. make sure the unit has a bipod (either attachment or integrated), because the eventhandler will trigger when the weapon is "rested" without a bipod as well

3. switch hand to new gesture

Share this post


Link to post
Share on other sites

So by unit do you mean Rifleman, AT ect.? I've been trying to make a lewis machine gun as an addon for the IFa3 mod

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

×