What I did:
-Give Duran (Terran) weapon95 (flechette grenade)
-give weapon95 splash(enemy) attack
-weap95 inner splash [00 00] 00 00 to 5
-weap95 middle splash [00 00] 00 00 to 17
-weap95 outer splash [00 00] 00 00 to 30
-weap95 icon[00 00] 00 00 to Grenade Icon
-weap95 max range [00 00 00 C0] to 160 (datedit: 10)
-weap125 (duran's canister rifle) target flags 00 03 [00 03] to 02 (air only)
-weap95 attack angle [40] 60 80 80 to 16
-weap125 max attack range [00 00 00 C0] to 160 {unit in bunker picks target with weapon with highest range}
That are my changes to Duran & his weapon and the unused weapon95.
So you can see that Duran's max weapon range (both weapons) is 10 in datedit. I've tested it and he can shot as far as Raynor. So that works.
BUT my Duran is still aiming at units that are at range between 10 and 12 instead of shoting a building which is inside his weapon range (10).
I've put a Raynor in the Bunker, too. He directly targets the building.
If the units walk away/are killed he shots the building, too.
Obviously the game still checks for units for Duran's standard attack range.
Does this happen because the range of that unit inside the bunker is hardcoded or did I miss something to edit?