Home » MODDING HQ 1.13 » v1.13 General Development Talk » Better default NCTH settings contest (Post your NCHT tweaks, win a prize!)
Re: Better default NCTH settings contest[message #354971 is a reply to message #354969] Wed, 19 September 2018 00:11 Go to previous messageGo to previous message
Deleted.

 
Messages:2657
Registered:December 2012
Location: Russian Federation
silversurfer wrote on Wed, 19 September 2018 02:02
In default 1.13 the MINIMUM_POSSIBLE_CTH is set to 0. As this applies to everyone I guess we could simply set it to 1 instead of changing the code.

It will fix bad AI behavior (for OCTH) but it's not the same as it will allow, for example, hitting enemy in the head when shooting with a pistol at 300m (when using OCTH).
But in general, I think that min CTH should be 1%, at least when shooting at torso/legs.

Quote:
Your AICalcChanceToHitGun puzzles me. You return 1 if the target is out of dMaxGunRange but allow to return 0 if it is out of dGunRange? Is that intended?

I probably need to add some more max(1, chance) conditions, but I don't like how MAX_EFFECTIVE_RANGE_MULTIPLIER is implemented anyway, will probably rework it some day.

[Updated on: Wed, 19 September 2018 00:30]




Left this community.

Report message to a moderator

Lieutenant

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dead is dead mode on 1.13?
Next Topic: Changes to MercOpinions.xml
Goto Forum:
  


Current Time: Thu Nov 07 12:30:43 GMT+2 2024

Total time taken to generate the page: 0.02320 seconds