Jump to content

Photo
- - - - -

adding recoil to tank cannons?.


  • Please log in to reply
9 replies to this topic
Thread Starter
TristanYockell
TristanYockell

    Sergeant

  • Members
  • 161 posts

#1

Posted 26 January 2012 - 04:43

I find it quite irritating that there is no recoil on tank cannons, how can I add some?.

Not sure what parameters their are available for vehicles if any?.

Is there a rating of 1 out of 10 like the small arms?.

Thanks for any help.

beagle
beagle

    Chief Warrant Officer

  • Members
  • 3699 posts

#2

Posted 26 January 2012 - 05:55

Sorry I don't get the point, there is clearly recoil visible. The whole vehicle shakes in it's suspension and dust is kicked up from ground.

Thread Starter
TristanYockell
TristanYockell

    Sergeant

  • Members
  • 161 posts

#3

Posted 26 January 2012 - 06:51

I just downloaded the new Lobo Iraq war mod, all the tanks don't have any recoil. I'm modding it "for personal use" by changing the sound effects and tank/weapons characteristics ect.

None of the tanks have any recoil so I'm trying to figure out how to give it too them. I'm running combined ops.

I'v also noticed that while I can assign sound effects for many things "soundhit" does not do anything. I wish to make different impact/explosion sounds depending on ammo fired but so far it refuses to play anything but vanilla sounds.

wld427
wld427

    Warrant Officer

  • Members
  • 2460 posts

#4

Posted 27 January 2012 - 22:02

its an animation within the model
Dco 1-502INF 101st Airborne (RET)

http://pracs.rkslstudios.info/

Max Power
Max Power

    Mr. Angry Face

  • Members
  • 12828 posts

#5

Posted 27 January 2012 - 22:08

To create a recoilling main gun effect requires coordinated values in both of the config files and the model.
Posted Image
Posted Image
My inbox is fill and won't be emptied. If your PM is regarding requests to use my work, unfortunately I choose not to grant such permission. My work is for use with CWR2 only.

repro
repro

    Private First Class

  • Members
  • 21 posts

#6

Posted 27 January 2012 - 22:17

To get the recoil of the main gun you need in the model.cfg:

class recoil_BEGIN
{
type="translation";
source=recoil_source;
selection="gun";
sourceAddress="clamp";
axis="osa_gun";
memory=1;
offset0=0;
Offset1 = -0.800000;
minValue=0;
maxValue=0,83;
minPhase=0;
maxPhase=0,83;
begin="usti hlavne";
end="konec hlavne";
};
class recoil_END
{
Type = "translation";
Source = "recoil_source";
Selection = "gun";
axis= "osa_gun";
MinValue = 0.85;
MaxValue = 1.00;
MinPhase = 0.85;
MaxPhase = 1.00;
SourceAddress = "clamp";
Offset0 = 0.000000;
Offset1 = 0.800000;
};

And in the config.cfg

class AnimationSources
{
class recoil_source
{
source = "reload";
weapon = "gun"; //the the gun you use
};
};
Intel I7 2600k 3,40.
Win7 ultimate 64 bit.
8gb ram
Nvidia geforce gtx 470

Arremba San Zorzo
Arremba San Zorzo

    Sergeant

  • Members
  • 148 posts

#7

Posted 02 February 2012 - 19:09

...so if i want to add a cannon never recoil (as a 105mm on a light truck) i will must put minvalue and mustvalue = 0, both in recoil_begin and in recoil_end animation, right? Or there are some other strings that i have not considered?

Arremba San Zorzo
Arremba San Zorzo

    Sergeant

  • Members
  • 148 posts

#8

Posted 09 February 2012 - 13:59

...please, someone can help me on this issue? I have tried to set my weapon on vehicle never recoil, but nothing.
When i fire with the cannon, my vehicle jump more than a kangaroo...and in Italy there aren't kangaroos!:)
Thanks

This is what i have made:
On Config.cpp
class AnimationSources : AnimationSources//referred to other vehicle
{
class recoil_source
{
source = "reload";
weapon = "105mm_NoRecoil_ASZ"; //name of the weapon on class turret
};
};

On Model.cfg
class ASZ_VM90_EIMM_105: ASZ_CAR
{
class Animations: Animations
{
class recoil_BEGIN
{
type="translation";
source=recoil_source;
selection="gun";
sourceAddress="clamp";
axis="osa_gun";
memory=1;
offset0=0;
Offset1 = -0.800000;
minValue=0;
maxValue=0;//0,83
minPhase=0;
maxPhase=0;//0,83
begin="usti hlavne";
end="konec hlavne";
};
class recoil_END
{
Type = "translation";
Source = "recoil_source";
Selection = "gun";
axis= "osa_gun";
MinValue = 0;//0,85
MaxValue = 0;//1
MinPhase = 0;//0,85
MaxPhase = 0;//1
SourceAddress = "clamp";
Offset0 = 0.000000;
Offset1 = 0.800000;
};
};
};

Max Power
Max Power

    Mr. Angry Face

  • Members
  • 12828 posts

#9

Posted 10 February 2012 - 18:10

You'll want to uncomment out the min and max phase and value numbers. You'll probably want to inherit recoil_END from recoil_BEGIN because you're missing a few parameters there. Also you need to set up an animation source in your config.cpp.

        class AnimationSources
        {
            class recoil_source
            {
                source = "reload";
                weapon = "weapon classname";
            };
        };

Posted Image
Posted Image
My inbox is fill and won't be emptied. If your PM is regarding requests to use my work, unfortunately I choose not to grant such permission. My work is for use with CWR2 only.

Arremba San Zorzo
Arremba San Zorzo

    Sergeant

  • Members
  • 148 posts

#10

Posted 17 February 2012 - 16:30

Thanks Max Power for your reply.
So:
1) you say to not change the value of min and max at 0 and re-write the value on side comment? OK but what is the right value to have NO recoil on my cannon?
2) for recoil_end it's better to write class recoil_END:recoil begin (etc...)?
3) i have already written the class animationsources in config file.