Function; setMissProperties
Sastrei edited this page Dec 15, 2020
·
4 revisions
setMissProperties(<rWeaponTable>,<fConeHorizontal>,<fConeVertical>,<fLoDamage>,<fHiDamage>,<fSpeed>,<fLifetime>)
- Controls behavior of bullet when marked as a miss.
setMissProperties(NewWeaponType, 0.02, 0.04, 0.20, 0.35, 0.55, 0.65);
-
<rWeaponTable>: Reference to the weapon; this should be
NewWeaponType
. - <fConeHorizontal>>: Horizontal deflection added to initial bullet trajectory if marked as a miss.
- <fConeVertical>: Vertical deflection added to initial bullet trajectory if marked as a miss.
- <fLoDamage>: Range of damage inflicted if bullet hits target after being marked as a miss. Multiplier against original bullet damage.
- <fHiDamage>: Range of damage inflicted if bullet hits target after being marked as a miss. Multiplier against original bullet damage.
- <fSpeed>: Speed of a bullet marked as a miss. Multiplier against original bullet speed.
- <fLifetime>: Lifetime of bullet marked as a miss.
- Miss Cone: In Homeworld 2 accuracy modeling, if a bullet is marked as a miss, bullet steering was turned off and “noise” was added to the bullet trajectory to make it fire off-center. The amount of noise added to the initial trajectory (up or down plus left or right) created a miss cone. The miss cone is now definable on a per weapon basis and can be expanded or contracted (to zero).
- Miss Hi/Lo damage: If a bullet is marked as a miss and strikes a target anyway, the damage is multiplied against a range defined as high and low damage. Expressed as a percent of the damage had it been marked as a hit.
- Miss speed: Bullets marked as a miss can travel at a reduced speed. Multiplied against the original bullet speed.
- Miss Lifetime: Bullets marked as a miss can travel over a reduced range, simulating misfires
- https://forums.gearboxsoftware.com/t/2-0s-new-weapon-tweakables/1553231
Updated Formatting? Initial
Updated for HWRM? Initial
| Home | Search | Recent Changes | Revision History | About | User Help | Contributor Help | Discussion |