View Issue Details

IDProjectCategoryView StatusLast Update
0002795Spring engineGeneralpublic2011-11-29 13:00
ReporterGoogle_Frog Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version84.0 
Summary0002795: Rapier no longer fires backwards
DescriptionIn any recent ZK version:
 * Spawn corape
 * Give it an attack ground order about 250 elmos North of it's location

In 0.82.7 the unit would fire forwards (in the 'wrong' direction) as soon as the attack order was given and the missile would hit it's target with homing. This is the desired behaviour and was achieved with 'turret = false' and 'tolerance = 10000000000'.

In 84.0 the unit does not fire until it is pointing directly at the target. It is behaving as it would if it had no tolerance in 0.82.7.
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

Google_Frog

2011-11-29 09:46

reporter   ~0007757

Last edited: 2011-11-29 09:46

http://code.google.com/p/zero-k/issues/detail?id=962

Kloot

2011-11-29 13:00

developer   ~0007763

"was achieved with 'turret = false' and 'tolerance = 10000000000'"

1) turret=false means a weapon can only fire forward within its tolerance cone
2) tolerance values are NOT used directly, what you actually get is cos((tolerance * (180 / COBSCALEHALF)) / (180 * PI))

plugging in the numbers (tolerance=1e10, COBSCALEHALF=65536/2) the _angle_ becomes 958737.9924285257 radians and cos(958737.9924285257) happens to be ~0.77 which means a target MUST BE within an arc acos(0.77) radians ~= 40 degrees wide to be fired at --> the engine must have been broken if it allowed the behavior you describe before.

Issue History

Date Modified Username Field Change
2011-11-29 09:05 Google_Frog New Issue
2011-11-29 09:46 Google_Frog Note Added: 0007757
2011-11-29 09:46 Google_Frog Note Edited: 0007757
2011-11-29 13:00 Kloot Note Added: 0007763
2011-11-29 13:00 Kloot Status new => closed
2011-11-29 13:00 Kloot Resolution open => no change required