Profile image

Turret control

49.4k MOPCKOEDNISHE  3 months ago
3,527 downloads
Version 1.1 Part


PLEASE READ THE DESCRIPTION OF THE UPDATE
Dont forget to delete old version of the mod
Update 17 September 2019:
Version: 1.1
New mode of aiming - PC mouse movement / Android axis movement.
This update allow you aiming like in War Thunder:


It looks like my old mod- tank aiming. I have took the sights from this mod. But now it works more stable: game no crashes, and android users can use it too.
Android users for aiming should use settings On-Screen Flight Controls = Mode2-USA:

In this case axes Yaw and Throttle can be used for hull control, Pitch and Roll - for turret control:

EXAMPLE VEHICLES FOR PC:

MT-21B4 Grizzly
BTR-83A M6H9

EXAMPLE TURRET FOR ANDROID:

LINK
But android users cant use aim and camera zooming(not FOV, just a camera position changing), because keyboard need for it.
This mode break the game cameras. When you activate this mode (Activation Group 7 by default), then position and rotation all cameras (Chase, Fly By View and other) will changing:

But the mouse aiming mode will work good when you again enable it.
In Gizmos category have added to new parts: Cannon laser pointer and Aim:

These parts have a simple parallelepiped model. You will see it in designer, but they become invisible when you start the game.
Cannon laser pointer should be on cannon of your tank. Like this:

It show you the direction of the cannon:

You craft can have any count of cannon laser pointer. You can attach it to turret machine guns too.
Aim should be attached to the cannon to. But it should have the position of aim you want. For example, left side of the cannon. Like this:

You can see that aim have no attributes.
You craft should have only one aim.
New attributes of parts:
Now Turret horizontal rotator and Turret vertical rotator have input controller. This input controller have input Activate8 by default. It mean that at start rotators will work. But if you disable Activate Group 8, then rotators will have zero rotation. It allow you to create different groups of weapons. On gif main turret have input Activate1, machine gun turret- Activate 2. And i can separate control it:

Turret horizontal rotator and Turret vertical rotator now have a stabilizer. And new attribute: Stabilizer sensitivity.
Stabilizer work:

It is possible situation when stabilizer can not compensate high turn rate of hull. And increase stabilizer sensitivity will not fix it:

It can fix only increase the speed rotation of rotator.
Very high value of stabilizer sensitivity create uncorrect work of stabilizer:

You can see that stabilizer turn turret with more speed than hull turn.
Dont set very big value of stabilizer sensitivity.
It can explode your tank.
On this gif value of the stabilizer sensitivity of the vertical rotator = 10:

The value of the stabilizer sensitivity can be different for different vehicle.
In the MT-21B4 Grizzly tank in example tanks the value of horizontal stabilizer sensitivity = 8, vertical stabilizer sencitivity = 3.
In BTR-83A M6H9 the value of horizontal stabilizer sensitivity = 4, vertical stabilizer sensitivity = 1.
Turret horizontal rotator and Turret vertical rotator have a new attribute: Invisible. You can make this parts invisible in level.

Turret laser pointer:

1.You craft should have only one turret laser pointer.
2.For correct work of PC mode: mouse movement and Android mode: axis movement turret laser pointer should be attached to the HULL of your tank or other vehicle.
3.Turret laser pointer have not collider anymore.
4.New attribute: Invisible.
5.In section "Android: axis movement" android users can set sensitivity of pitch/roll axis and invert it.
6.New attribute: Show UI tank. This attribute enable or disable this:

Camera section attributes for PC mode: mouse movement and Android mode: axis movement:
Toggle zoom - enable camera zooming. Not change field of view, just change camera position.
Toggle aim - toggle aim. Set "None", if you will not use aim in your vehicle.
Aim type - type of aim. Exist a two types.
Camera height - height of camera relatively turret laser pointer.
Camear height increase - You rotate camera around laser pointer. And when you toggle zoom, then camera begin zooming. If this value will be 0, then aiming will not comfortable:

This value increase the height of the camera relatively turret laser pointer when you zooming:

Camera distance - distance of the camera relatively turret laser pointer.
Minimal target distance, m - if this value = 0 then you can aim in own vehicle. It is not very comfrotable:

This value set the radius around camera. Inside this radius your "ray of aiming" will ignore all objects. And you will can not aim to your own vehicle. It is more comfortable:


Hello!
I present to you my new mod: Turret control.
This mod allow to control any count of turrets by mouse on PC or finger touches on Android. All of turrets will be look in one point:

You can control tank turret with machine gun on it:

or helicopter machine gun:

and of course you can use it for naval turrets:

these turrets from this craft

EXAMPLE TURRETS FOR PC:

Example turret
Example multi turret
Example tank
Naval turrets

EXAMPLE TURRETS FOR ANDROID:

Example turret
Example multi turret

This mod contains 3 parts in Gizmos category: Turret laser pointer, Turret horizontal rotator and Turret vertical rotator:

Principle work of aiming:
Turret laser pointer create a Target. You change position of the Targer by mouse clicking or screet touching. Horizontal and Vertical rotator look to this target.

RULES FOR PART USING:

1.Turret horizontal rotator must have rotation (0,0,0). In designer you can see the prompts:

2.Turret vertical rotator must have rotation (0,0,270). In designer you can see the prompts:

PART ATTRIBUTES:

1.Turret laser pointer:

Show pressed key - show you in level last pressed key.
Mode - PC/Android.
Show target point - show you target point.
PC settings:
It is a three types of pointing:
In first type target position have a position of your cursor while you hold the mouse button:

In second type target remember the position of your cursor even you don't hold the button:

In third type target "sticks" to object which you have click. This is a auto tracking type:

PC users can use all of this types in the level. It have defaults buttons Mouse0 Mouse1 and Mouse2, but you can enable "Show current key", remember the key name which you have seen and set same key in Pointing type 1 Pointing type 2and Pointing type 3 via Overload mod.
Android settings:
Type of pointing - you can choose only one type of pointing. It is the same types like in PC mode.
Type of touching - it is a three type of touching: Finger tap, Finger move and
Finger double tap. In "Finger tap" target will have a position of a screen touch, but if you will move your finger, it will not change the position of a target.
If you select "Finger move", then target will have a position of your finger even you move your finger.
But more comfortable (in my opinion) mode it is the "Double finger tap". In this case the target will have a position of your finger after double tap.
Double tap max time, s - max time of second tap in seconds.

2.Turret horizontal rotator:

Speed of rotation - speed of rotation.
Invert rotation - invert rotation (need for down-sided turrets).
Use limits - use limits.
Invert limits - invert limits.
Max left angle - maximal left angle of rotation in degrees. You can not set less then 5 degrees and more then 175 degrees.
Max right angle - maximal right angle of rotation in degrees. You can not set less then 5 degrees and more then 175 degrees.
Section "Is this turret back oriented?"
Answer: No/Yes. This attribute need for back-oriented turrets. You can read about this below.
Section "Show orientation prompt"
Answer: - enable or disable orientation prompts in designer.
Repair rotation, AG - sometimes your turret can stuck (this is a bug). Choose Activation Group that will repair it. It is 7 by default. If your turret is stuck, enable this Activation Group and disable this Activation Group. This action will repair the rotation of turret.

3.Turret vertical rotator:

Speed of rotation - speed of rotation.
Invert rotation - invert rotation (need for down-sided turrets).
Invert limits - invert limits.
Max up angle - maximal up angle of rotation in degrees. You can not set less then 5 degrees and more then 85 degrees.
Max down angle - maximal down angle of rotation in degrees. You can not set less then 5 degrees and more then 85 degrees.
Section "Is this turret back oriented?"
Answer: No/Yes. This attribute need for back-oriented turrets. You can read about this below.
Section "Show orientation prompt"
Answer: - enable or disable orientation prompts in designer.
Repair rotation, AG - sometimes your turret can stuck (this is a bug). Choose Activation Group that will repair it. It is 7 by default. If your turret is stuck, enable this Activation Group and disable this Activation Group. This action will repair the rotation of turret.
Section "Ballistic settings:"
degrees per km - degrees per kilometer. This value increase the angle of rotation considering the distance to target. It can be useful if you want to use bombs in your cannon. If this value = 1 then angle of rotation increase to one degree if distance to target = 1 kilometer.This value ignore limits.
maximum degrees - maximum degrees of degrees per km. This value limit the maximum of "ballistic" degrees.
Gif:

ALLOWED ROTATION OF TURRETS IN DESIGNER:

Exist a 4 allowed rotation of turrets in Designer.
1. First: front-oriented, which was recommended for creating turret:

2. Second: back oriented. For this you need to rotate ALL turret to back:

After this set attribute Answer: = Yes in section Is this turret back orientedin Turret horizontal rotator and Turret vertical rotator.
3. Third allowed rotation: Front down-sided. You need to rotate ALL turret to down side:

After this set the attribute Invert rotation = Yes in Turret horizontal rotator and Turret vertical rotator.
4. Fourth allowed rotation: Back down oriented. You need to rotate ALL turret to back down side:

After this set the attribute Invert rotation = Yes and Answer: = Yes in section Is this turret back oriented in Turret horizontal rotator and Turret vertical rotator.
Only this 4 rotation are allowed. If set the rotation of turret "Left sided" or "Right sided", then will be errors.

PARTICULAR QUALITIES OF THE ROTATORS

These rotators are soft. Don't create very heavy turrets:

I recommend to you set very low mass scale of all parts in turret (except rotators). Also, i recommend to you disable aircraft collision of all parts in turret.

DOWNLOADS:

Download from Google Drive:
PC
Android
Download from MEGA:
PC
Android
If you like this mod and want support me, see description of my channel

ENJOY!

  • Log in to leave a comment
  • Profile image
    2,308 Syabil

    @MOPCKOEDNISHE Hey!!!!! Im having many problem with this MOD. I have problem with maus turret and when I make a light one it didn't work, and then I removed my maus turret and try to make a simple turret with low mass, and it didn't work.it still shake. Pls fixed this!!!!!!!!!

    7 days ago
  • Profile image
    2,308 Syabil

    @MOPCKOEDNISHE hey I'm having a problem with this and I almost get solved the problem, but didn't work. My problem is when I make a maus turret it always shake when I use this MOD. Can you help me. I try to make an experiment of how to solved this, and my conclusion in this experiment is this MOD will shake if the turret have high mass and high sensitivity. But when I reduce the mass at my maus turret if didn't work. Is my conclusion true and how to SOLVED this.

    8 days ago
  • Profile image
    20.8k marcox43

    I'm having serious truble with the turret ring, it just spins nonstop!

    17 days ago
  • Profile image

    Im having mental breakdown seeing this work and how to make it work

    one month ago
  • Profile image

    why I don't see the circle thing I already did the right things, I think so

    one month ago
  • Profile image
    2,133 ChisP

    dude with this i can put it on a bomber and all the turrets will aim at one point! you could also create a AA battery!

    2 months ago
  • Profile image

    War Thunder Gang

    2 months ago
  • Profile image
    231 RAAF

    I have AA ideas.......

    2 months ago
  • Profile image
    122 ThomBomb

    @MOPCKOEDNISHE I’m on sp through steam, so i’m not 100% how to access those files

    2 months ago
  • Profile image

    @ThomBomb you forgot to delete old version of the mod. The example vehicle require v.1.1. but you have version 1.0

    2 months ago
  • Profile image
    122 ThomBomb

    @MOPCKOEDNISHE https://imgur.com/gallery/L4VLj4e
    https://imgur.com/quLBQXh

    2 months ago
  • Profile image
    122 ThomBomb

    @MOPCKOEDNISHE For the WarThunder Aiming?

    2 months ago
  • Profile image

    @ThomBomb I dont understand your question. Have you tried to download example vehicle?

    2 months ago
  • Profile image
    122 ThomBomb

    @MOPCKOEDNISHE can't find the turret aim thing

    2 months ago
  • Profile image
    122 ThomBomb

    @MOPCKOEDNISHE keep flexing on jundroo

    2 months ago
  • Profile image
    6,161 Stargazzer

    oh my god! , i think ..
    i ganna make a huge flying battleship till my laptop melts nyahahah

    good update!
    good job sir!

    2 months ago
  • Profile image

    @MOPCKOEDNISHE Is it possible to add a NV to the scope ?

    2 months ago
  • Profile image

    @MOPCKOEDNISHE We are about to have War Thunder Simpleplanes edition

    +1 2 months ago
  • Profile image
    3,461 Mmdben

    This is too high quality for a game like SP,You sir are one of the best if not the best mod maker in SP, you have my respect.

    +1 2 months ago
  • Profile image
    13.0k Nerfaddict

    @MOPCKOEDNISHE thanks

    2 months ago
  • Profile image

    @ThomasRoderick update. Now you can create different groups of weapons,

    +1 2 months ago
  • Profile image

    @Stargazzer @ProjectTank @Klafzfox update

    2 months ago
  • Profile image

    @Jim1the1Squid @ComplicatedX @Nerfaddict update

    2 months ago
  • Profile image

    @SajabAerospace @USA1783 @ThomBomb update

    +1 2 months ago
  • Profile image

    @Klafzfox You can't tap a point on the sky to make it aim, it just won't work. You can however get it to track flying aircraft. I find that it helps to use slow motion mode plus the Freecam mod to zoom in on your target and place the marker.

    2 months ago
  • Log in to see more comments