#!/usr/bin/env bash # #92: "Unable to damage the foot panels on Loki via direct fire ... was able to # damage on Thor" (Oracle). The aimed per-part pick (MechSegmentPick, #73) is a # BOUNDING-SPHERE test whose primary key is SMALLEST RADIUS WINS -- a larger # sphere can never beat a smaller one, whatever the aim. So if a chassis's foot # sphere is bigger than its lower-leg sphere, every ray that threads both is # credited to the leg and the foot is unhittable. Dump the spheres per chassis. set -x . /c/git/bt411/scratchpad/night6/bench_common.sh cd /c/git/bt411/content || exit 1 V="$1" taskkill //F //IM btl4.exe > /dev/null 2>&1 sleep 2 sed "s/^map=.*/map=grass/; s/^time=.*/time=day/; 0,/^vehicle=.*/s//vehicle=$V/" MP.EGG > FOOT.EGG LOG=footpick_$V.log rm -f "$LOG" export BT_PICK_LOG=1 BT_DMGTABLE_LOG=1 export BT_START_INSIDE=0 # external: the whole mech tree is built + shown export BT_SPAWN_ENEMY=1 # target of the SAME chassis (uses the mission model) export BT_GOTO=enemy BT_GOTO_STOP=25 # close in so the foot subtends a real angle export BT_AIM="${2:-0 -0.35}" # aim LOW -- at the feet export BT_AUTOFIRE=1 BT_DMG_LOG=1 # shoot it and log the resolved zone bt_launch "$LOG" FOOT.EGG 0x03 sleep 70 taskkill //F //IM btl4.exe > /dev/null 2>&1 sleep 2