View Issue Details

IDProjectCategoryView StatusLast Update
0005391Spring engineUnit Scriptingpublic2018-02-12 12:08
Reporterraaar Assigned ToKloot  
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionno change required 
Product Version103.0 
Fixed in Version104.0 +git 
Summary0005391: add option for weapons to trigger aimWeaponX more often
Descriptioncurrently the aim function for each weapon is called about twice per second.

The frequency is too low for units which are fast and have relatively high turn rates for the body and turret or torso. When making sharp turns their aim is often off, regardless of the turret's turn rate. This looks glitchy, especially for continuous beam lasers and burst weapons.

There should be the option to set the delay in frames between consecutive aimWeapon calls for each weapon.

This would allow games with bigger or fewer units to have their weapon aiming more frequently and tracking the target more precisely.

This could be made into a unit def "weaponAimDelayFramesX" or a weapon def "aimDelayFrames" (default 15, or whatever the current value is)
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

sprung

2017-06-01 16:48

reporter   ~0017758

Use the fireTolerance tag

Kloot

2017-06-01 19:59

developer   ~0017762

to be specific: the *maximum* delay between AimWeapon calls is 15 frames, increasing fireTolerance will cause it to be called more often (whenever wantedDir.dot(lastRequestedDir) <= fireTolerance).

the return value of AimWeapon determines whether the weapon can fire (for COB).

Issue History

Date Modified Username Field Change
2016-11-16 04:27 raaar New Issue
2017-06-01 16:48 sprung Note Added: 0017758
2017-06-01 19:59 Kloot Assigned To => Kloot
2017-06-01 19:59 Kloot Status new => closed
2017-06-01 19:59 Kloot Resolution open => fixed
2017-06-01 19:59 Kloot Note Added: 0017762
2017-06-01 19:59 Kloot Resolution fixed => no change required
2018-02-12 12:08 Kloot Status closed => resolved
2018-02-12 12:08 Kloot Fixed in Version => 104.0 +git