Jump to content
Re1deR

Additional setting elevationMode

Recommended Posts

I am making an addon for artillery, the main feature is a real sight unit. A sight with a rotating optics.
But I encountered some difficulty.
If the parameter 'elevationMode = 1' is set in the turret config,the projectiles fly in the direction of the optics.
 

 

Can you add an additional setting so that the projectiles always fly in the direction of the barrel?

 

Share this post


Link to post
Share on other sites
3 hours ago, Re1deR said:

I am making an addon for artillery, the main feature is a real sight unit. A sight with a rotating optics.
But I encountered some difficulty.
If the parameter 'elevationMode = 1' is set in the turret config,the projectiles fly in the direction of the optics.
 

 

Can you add an additional setting so that the projectiles always fly in the direction of the barrel?

 

It looks like some wrong model.cfg setup. I would rather suggest moving this thread to https://forums.bohemia.net/forums/forum/162-arma-3-addons-configs-scripting/

my bet is that whole skeleton is wrongly configured & body/gun parameter is referencing wrong animations

 

Could you share config.cpp & model.cfg perhaps?

Share this post


Link to post
Share on other sites
9 hours ago, reyhard said:

It looks like some wrong model.cfg setup. I would rather suggest moving this thread to https://forums.bohemia.net/forums/forum/162-arma-3-addons-configs-scripting/

my bet is that whole skeleton is wrongly configured & body/gun parameter is referencing wrong animations

 

Could you share config.cpp & model.cfg perhaps?

If I set the parameter 'elevationMode = 0', the projectile will fly along the barrel. but I would like to control the buttons.

Note that the video shows (1: 17) that when I aim at the sky, the projectile flies along the barrel. When the optics looks at the sea, the projectile flies in the direction of the optics.

As far as I can tell, this effect was created to compensate for the roll at the barrels of vanilla mortars, and the shells did not fly away from the target. I would like to be able to disable this feature.


Config

model.cfg

Share this post


Link to post
Share on other sites

Hm, it could be then ammo/weapon config issue or there is some incorrect selection in model itself which is affecting gun memory points. Tried animating gunnerview memory point by 30 degrees to the left and cannon was still firing fine (tried elevationMode = 1 & 3).

 

 

 

obraz.png

Share this post


Link to post
Share on other sites
11 minutes ago, reyhard said:

Hm, it could be then ammo/weapon config issue or there is some incorrect selection in model itself which is affecting gun memory points. Tried animating gunnerview memory point by 30 degrees to the left and cannon was still firing fine (tried elevationMode = 1 & 3).

 

 

 

obraz.png


In the screenshot, you aim at the sky. Have you tried aiming at the ground?

Share this post


Link to post
Share on other sites
2 minutes ago, Re1deR said:


In the screenshot, you aim at the sky. Have you tried aiming at the ground?

Yes, same thing. Notice that shell debug trace is coming out from right place

Share this post


Link to post
Share on other sites
1 hour ago, reyhard said:

Yes, same thing. Notice that shell debug trace is coming out from right place

I tried without mods, and this is what happened.
https://www.youtube.com/watch?v=FTgmqufTvkE

If the parameter 'elevationMode =1', is not to blame , then how do I disable this effect?
I tried disabling the parameter 'ballisticsComputer', but it didn't work.
cfgWeapon

 

Share this post


Link to post
Share on other sites

Ah, now I see. Tried it on stratis and indeed there seems to be camera override.

Since it's scripted, I could suggest two workarounds:

* Adding event handler fired and correct shell trajcetor

* Use elevationType = 0. Script page up/down movement with user actions for instance. Perhaps alternative syntax for it could be added like elvationType = -1,-2, etc but new stable update of Arma would be in few months probably, so not sure if you would like to wait so long.

Share this post


Link to post
Share on other sites

Yes. At the moment, we are using software crutches. But because of this, there are some problems in multiplayer. We would like to have this in the game engine.

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

×