[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Forum moderator: Daddio, Cichor  
Forum » Cossacks I » Modding » The 25th shot, modding?
The 25th shot, modding?
alpha07Date: Friday, 21/November/2014, 11:22 PM | Message # 1
Esquire
Group: Users
Messages: 2
Awards: 0
Reputation: 0
Status: Offline
"The 25th shot: Any shooting unit, including the lowly mercenary grenadier, has a 4% chance of killing his enemy with one shot."

i want to change this, are there any possibilities to change the value or turn this effect off? somebody know the data off this?

and how can i change the values of the "money" cheat?

i mean cossacks 1.35 btw

greetz alpha


Message edited by alpha07 - Friday, 21/November/2014, 11:23 PM
 
EbelAngelDate: Saturday, 22/November/2014, 11:56 AM | Message # 2
Site Administrator
Group: Administrators
Messages: 996
Awards: 7
Reputation: 12
Status: Offline
Hi,

I had to look it up because I had forgotten this a bit.


Code
 [WEAPONS]// WeaponIDS, WeaponIcn, ProtectIcn, WeaponFlag( "H"-HeightDependant; "R"- Random(1/25) killing;"O" - additional damage in formation ; ///C2: "F" Firing Weapon ;"X" Extreme firing weapon; "B" damage only inside units;"I"-invisible weapon)

#GENSHIELD          6
MECH                     9        O
STRELA                  5 12    HR
PIKA                     3 10    O
IADRO                  0 7     H
VISTREL                4 11    HR
KARTECH             1 8        H
IADROMOR          0 7     -
MEDIK                13 13   -
OSTRELA              15 14   H
VISTREL2            4 11    H

So, any unit that uses a weapon with "R" would have this 4% chance. You can delete this R here and create a patch. I have never tried to to do this specifically but it should work.

If this seems confusing, do ask more information. I dont know how much knowledge you have about modding the game itself.

As to changing the % itself, thats coming from the engine itself.
As well as the values of the money 'cheat' are from the engine itself.

Regards.

E.A.


 
alpha07Date: Saturday, 22/November/2014, 12:21 PM | Message # 3
Esquire
Group: Users
Messages: 2
Awards: 0
Reputation: 0
Status: Offline
No  that was very helpful, can you say in which data you found the code? i think i yesterday had seen it but i didnt know that R stands for random

my knowladge normaly is c++ programming but i learned fast about the cossacks  context

EDit: I found it in NRES.dat, lets try if it will work smile

Edit 2: Yes it actually works, the R in Nres.dat is that Random value.

Does anybody know where i get the hole source-code?


Message edited by alpha07 - Saturday, 22/November/2014, 12:32 PM
 
EbelAngelDate: Saturday, 22/November/2014, 3:32 PM | Message # 4
Site Administrator
Group: Administrators
Messages: 996
Awards: 7
Reputation: 12
Status: Offline
Quote alpha07 ()
EDit: I found it in NRES.dat, lets try if it will work smileEdit 2: Yes it actually works, the R in Nres.dat is that Random value.

Does anybody know where i get the hole source-code?


Glad you figured it out to get it to work.

As to the source code , it certainly isn't publicly available, which doesn't mean it isn't available.


 
Forum » Cossacks I » Modding » The 25th shot, modding?
  • Page 1 of 1
  • 1
Search: