Caves of Qud

Caves of Qud

(OLD) 1Percent Loot Drops Expanded
I blame Earthshaker (Banned) 18 Jul, 2022 @ 1:33pm
Targeting Interface possibly coded wrong?
I understand that you don't really actively maintain this mod anymore, so it may take a while for you to reply, but I figure I should post this instead of message you in case some third party has the answer.

Anyways, looking at the code for your targeting interface that mysterious gunslinger can drop, it only affects the "ToHit" variable (don't think it matters whether ToHit or To-Hit). But unless I'm reading the online wiki wrong, the ToHit variable applies to melee combat, not ranged combat. To affect ranged combat, I think it needs to modify the AimVariance value negatively (since I guess the calculation makes a ranged weapon attack more accurate as it approaches zero). However, I dunno what specific code would change/fix this (although it might involve the CalculateBulletTrajectory method)

So if this is the case and I'm not totally wrong poking around in the code, this item only helps melee combat, doesn't affect ranged combat, disagrees with its description/intended function, and is sort of pointless for a mysterious gunslinger to drop since they are range heavy.

Please let me know whether I'm full of it or not. Thanks!
< >
Showing 1-1 of 1 comments
I blame Earthshaker (Banned) 19 Jan, 2023 @ 6:21pm 
FYI, I think I finally figured out how to solve this (just kind of hard to test it). The first "solution" is trying to use the game's HUD part option in XML (which technically exists but doesn't really do anything since its weapon mod counterpart for smart guns isn't implemented yet). But adding that code prolly won't actually work yet, for the exact reason already mentioned. However, for both flavor reasons and eventual implementation reasons, prolly should add that code anyways.

The second solution (which should work, although I have no way of really testing it) is to use part Name="AimVarianceBonus" Value="?" (where the ? is whatever value you want, but 1 or 2 is prolly most one can do) in the XML code for this item. It theoretically should work, but again, I really have no means of verifying it...
Last edited by I blame Earthshaker; 19 Jan, 2023 @ 6:22pm
< >
Showing 1-1 of 1 comments
Per page: 1530 50