File size: 1,040 Bytes
0a30e8c | 1 2 3 4 5 6 7 8 | # Weapon24 distance attenuation
RE-705. Reproduce with `python3 scripts/analyze_qvm_damage_attenuation.py`; check with `python3 scripts/test_qvm_damage_attenuation.py`. The [machine report](qvm-damage-attenuation.json) retains source identity and bounded fixtures.
Actual289862–289952 applies only to weapon24. Context84 below half descriptor range leaves scale1. From half through full range, source computes (half−(distance−half))/half×(1−float32(0.1))+float32(0.1). At or beyond full range scale is float32(0.1). Multiplication precedes the later factor clamp. Tests retain source rounding order, negative/zero/above-one supplied factors and nonnegative ranges including zero. Other weapons preserve the complete tracked state. This stage does not infer legal live distances or execute health damage.
No original executable/full QVM/native collision/physics/rendering executes. Native responses and legal input domains are supplied or unverified where stated; full runtime/macOS/Linux Rust/Bevy/Solari gameplay remains open.
|