Teg_Navanis
King
- Joined
- Jan 21, 2006
- Messages
- 737
Teg_Navanis said:The process is the same, the files are different. There is a download link to the 1.61 SDK in the thread I mentioned, the Warlords files are in the Warlords\CvGameCoreDLL subdirectory.
Just this one.Ket said:The problem is we do not know what other SDK mods are in Arma's Modpack so that merging them might break something else. The best bet is to make a request to the mod designer to add Unit Statistics.
You replaced your original version?simkodavid said:Thanks guys.
To my amazement I'v replaced CvGameCoreDLL.dll with the one from Three Squares City Radius and Unit Stats. is still working.
I should ask Three Squares City Radius Warlords version creator - Konradius, maybe he merged them for some reason already.
// unit statistics additionstart
CyUnit* pyUnit1 = new CyUnit(this);
CyUnit* pyUnit2 = new CyUnit(pDefender);
CyArgsList pyArgs;
pyArgs.add(gDLL->getPythonIFace()->makePythonObject(pyUnit1));
pyArgs.add(gDLL->getPythonIFace()->makePythonObject(pyUnit2));
[B]pyArgs.add(0);[/B]
pyArgs.add(iDamage);
gDLL->getEventReporterIFace()->genericEvent("combatHit", pyArgs.makeFunctionArgs());
delete pyUnit1;
delete pyUnit2;
// unit statistics additionend
//
CyUnit* pyUnit1 = new CyUnit(this);
CyUnit* pyUnit2 = new CyUnit(pDefender);
CyArgsList pyArgs;
pyArgs.add(gDLL->getPythonIFace()->makePythonObject(pyUnit1));
pyArgs.add(gDLL->getPythonIFace()->makePythonObject(pyUnit2));
[B]pyArgs.add(1);[/B]
pyArgs.add(iDamage);
gDLL->getEventReporterIFace()->genericEvent("combatHit", pyArgs.makeFunctionArgs());
delete pyUnit1;
delete pyUnit2;
//