Jump to content

TurretOffset: Difference between revisions

From ModEnc²
en>TAK02
mNo edit summary
Rain-Islet (talk | contribs)
m [bot] Batch update {{Bugs}} templates.
 
(8 intermediate revisions by 3 users not shown)
Line 4: Line 4:
|values={{Values|integer}}
|values={{Values|integer}}
|default=0
|default=0
|types={{Categ|VehicleTypes}} (voxel only)
|types={{Categ|TechnoTypes}}
|ts=yes
|ts=yes
|fs=yes
|fs=yes
Line 12: Line 12:
|rp=yes
|rp=yes
}}
}}
 
==For VehicleTypes==
TurretOffset provides additional degree of control over [[Voxel Turret and Barrel Positioning|turret/barrel positioning]]. Unlike voxel header editing, which uses voxel blocks as measure units, this tag takes value in [[lepton]]s. It allows you to move the turret "box" forward or backward over the z axis. (And by doing so, it affects the barrel's location on the z-axis the same way.)
TurretOffset provides additional degree of control over [[Voxel Turret and Barrel Positioning|turret/barrel positioning]]. Unlike voxel header editing, which uses voxel blocks as measure units, this tag takes value in [[lepton]]s. It allows you to move the turret "box" forward or backward over the z axis. (And by doing so, it affects the barrel's location on the z-axis the same way.)


- = reverse, + = forward, its actually sensible for once
- = reverse, + = forward, its actually sensible for once
==For BuildingTypes==
You can use this tag with [[BuildingTypes]] (discovered by testid123) with the following conditions:<br>
1. You need the files Voxeltur.hva (Turret name must be the same as the Image used with [[BuildingTypes]]) and Voxeltur.vxl (Turret name must be the same as the Image used with [[BuildingTypes]]).<br>
2.[[Image]] of [[BuildingTypes]] that use the <b>TurretOffset=x</b> tag must have {{f|Voxel|yes|link}} in [[Artmd.ini]];;Yet it still suffers from the side effects of tag errors <b>TurretOffset=x</b><br>The [[TurretAnim]] of [[BuildingTypes]] changes based on the x value of the tag. <b>TurretOffset</b><br>[[File:TurretOffset on BuildingTypes.png]]
=={{Bugs}}==
*Changed the basic attack position of any units and buildings. with '''TurretOffset=x'''([[FLH]] position depends on turret?)<br>
*When the turret position is not at [[VehicleTypes]] Voxel turrets are displayed incorrectly
*Although TurretOffset For Building is effective, only the image offset will follow the direction of the building, and the firing coordinates will not change with the direction, but simply move to a new fixed point that is offset by the amount set by TurretOffset in the east direction of the original fixed point.

Latest revision as of 18:00, 2 July 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: TurretOffset
File(s): Art(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Default: 0
Applicable to: TechnoTypes


For VehicleTypes

TurretOffset provides additional degree of control over turret/barrel positioning. Unlike voxel header editing, which uses voxel blocks as measure units, this tag takes value in leptons. It allows you to move the turret "box" forward or backward over the z axis. (And by doing so, it affects the barrel's location on the z-axis the same way.)

- = reverse, + = forward, its actually sensible for once

For BuildingTypes

You can use this tag with BuildingTypes (discovered by testid123) with the following conditions:
1. You need the files Voxeltur.hva (Turret name must be the same as the Image used with BuildingTypes) and Voxeltur.vxl (Turret name must be the same as the Image used with BuildingTypes).
2.Image of BuildingTypes that use the TurretOffset=x tag must have Voxel=yes in Artmd.ini;;Yet it still suffers from the side effects of tag errors TurretOffset=x
The TurretAnim of BuildingTypes changes based on the x value of the tag. TurretOffset
File:TurretOffset on BuildingTypes.png

Bugs/Side-Effects/Unexpected Limitations

  • Changed the basic attack position of any units and buildings. with TurretOffset=x(FLH position depends on turret?)
  • When the turret position is not at VehicleTypes Voxel turrets are displayed incorrectly
  • Although TurretOffset For Building is effective, only the image offset will follow the direction of the building, and the firing coordinates will not change with the direction, but simply move to a new fixed point that is offset by the amount set by TurretOffset in the east direction of the original fixed point.