Jump to content

How do I change the base damage of weapons?


cipher86

Recommended Posts

Ie. Assault rifle can do 2-4, what if I want it to be 3-4?

 

I'm also trying to make it so Pistols give a 5% accuracy bonus, it shows up in the "Information" tab but doesn't actually take it into effect for the calculation. Ie.: 65% Aim + 5% Pistol + 10% Range - Enemy in High Cover 40% = 35%, when it should read 40%.

 

I'm using X-Com meddler.

Edited by cipher86
Link to comment
Share on other sites

If you are loading a savegame created while in mission started BEFORE changing weapon specs, it will use old values to calculate hit chance.

You have to load your last savegame in base before this mission, re-equip soldiers and send Skyranger.

Check what the game shows now.

 

EDIT: about rifle damage : just change damage value using Meddler, update with MODPATCHER, then rehash with XSHAPE.

Second value shown in game is critical damage, it is calculated by games automatically using base damage.

Edited by Just6669
Link to comment
Share on other sites

Ie. Assault rifle can do 2-4, what if I want it to be 3-4?

 

I'm also trying to make it so Pistols give a 5% accuracy bonus, it shows up in the "Information" tab but doesn't actually take it into effect for the calculation. Ie.: 65% Aim + 5% Pistol + 10% Range - Enemy in High Cover 40% = 35%, when it should read 40%.

 

I'm using X-Com meddler.

Rifle Damage: 3-4 is, as far as I know, not possible.

The way I think the damage calculation works (after lots of testing) is that the base value for the weapon (idamage) is the average damage that is dealt. A weapon with an idamage value of 4 has a 50% to do 4 damage, 25% for 3 damage and 25% for 5 max damage. As a result, 2-4 is possible, 3-5 is possible, but anything else that doesn't have both a minimum, average and maximum damage value isn't, because the game makes up these values by itself based on the value you edit in the DefaultGameCore.ini.

 

Pistol Accuracy:

I haven't tried it to exhaustion yet, as I had to meddle with other things, but I believe that the Pistol1-3 Upgrades in the Foundry (which include an accuracy upgrade) create a problem for weapon accuracy calculation of at least the basic pistol. The issue here is wether this is just a mistake in the UI or in the calculation for accuracy.

You can test this by giving your soldiers 0 offense, and the pistol 150 accuracy bonus, and have them shoot at a target in cover in a new game. Hitchance should be 0, so if they still hit, it's because the calculation works and only the UI is bugged. If it doesn't, then the calculation values and the UI values are the same and part of the same calculation and that would mean there's a default mistake in the game, as even the Bonus for Pistols isn't applied in the interface after you've researched it in the foundry.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...