ClassicThunder
Prince
- Joined
- Sep 15, 2006
- Messages
- 511
Improved Combat AI by ClassicThunder
Versions:
Current Version 1.5 (Vanilla Only):
Download (ReadMe,CvUnitAI,Compiled .DLL)
Details:
After taking a look at the function that calculates the odds for the AI. I was surprised at what I found there. Apparently only current strength and first strikes are taken into account. But not Defensive bonuses. I adjusted the code and in my short tests the AI was smarter. But hopefully someone more thorough - stares pointedly at Officer Reene - will DL the new version and leave some more feedback.
Old Version 1.0 (Vanilla Only):
Improved the combat odds wich didn't quite effect the AI the way I hoped it would.
Credits:
ClassicThunder: Code and Dll
Installation:
To use this mod alone simply copy the CvGameCoreDLL.dll into your ModName/Assets folder.
To add this mod component to an existing mod copy the code surrounded by below text (without the quotes) in the CvUnitAI.cpp file and copy it into your file CvUnitAI.cpp.
// Improved Combat Odds
If you haven’t modified the CvUnitAI.cpp simply paste it into your SDK project folder overriding the rest of the files.
What it does:
The Function the AI uses to figure out its probability of success only calculates the units’ involved current strength and the first strikes. But not Defensive bonuses! This mod allows the AI to take defense bonuses into account.
Versions:
Current Version 1.5 (Vanilla Only):
Download (ReadMe,CvUnitAI,Compiled .DLL)
Details:
After taking a look at the function that calculates the odds for the AI. I was surprised at what I found there. Apparently only current strength and first strikes are taken into account. But not Defensive bonuses. I adjusted the code and in my short tests the AI was smarter. But hopefully someone more thorough - stares pointedly at Officer Reene - will DL the new version and leave some more feedback.
Old Version 1.0 (Vanilla Only):
Improved the combat odds wich didn't quite effect the AI the way I hoped it would.
Credits:
ClassicThunder: Code and Dll
Installation:
To use this mod alone simply copy the CvGameCoreDLL.dll into your ModName/Assets folder.
To add this mod component to an existing mod copy the code surrounded by below text (without the quotes) in the CvUnitAI.cpp file and copy it into your file CvUnitAI.cpp.
// Improved Combat Odds
If you haven’t modified the CvUnitAI.cpp simply paste it into your SDK project folder overriding the rest of the files.
What it does:
The Function the AI uses to figure out its probability of success only calculates the units’ involved current strength and the first strikes. But not Defensive bonuses! This mod allows the AI to take defense bonuses into account.