Neon_Serpent
a year ago
Hi all!
I have problem FireWeaponUpdate and PointDefenseLaserUpdate and I hope someone know solution

I want to give a hull weapon and create a frontal armor effect for tanks that will destroy the projectile before it hits. However, solutions "fireWeaponUpdate" and "PointDefenseLaserUpdate" are tied only to the PRIMARY weapon, to which turret main gun belongs. Because of this, front of tank becomes unprotected if target on a side or back.

Making Turret and main gun as "Secondary" visually solves the problem, but the tank cannot shoot while moving, cannot "attack the ground" (via CTRL), and later stops aiming at the target on its own

Another solution is "dummy weapon" and PROTABLE_STRUCTURE (aka Avenger), but fireWeaponUpdate and PointDefenseLaserUpdate no working in this way + to attack, the turret turns not to the target, but to a random side (it can often shoot at a target while facing backwards)

How can I solve this problem? Maybe there is a script responsible for "fire weapon update" and "point laser defense" where I can replace the binding from the primary to some other? Or is there a nuance in the PROTABLE_STRUCTURE of the "avenger" turret?
Sponsor