Pillars of Eternity
0 of 0

File information

Last updated

Original upload

Created by

Discord discussion

Uploaded by

Gutterer

Virus scan

Safe to use

Tags for this mod

About this mod

This mod changes the Damage Type of Arquebuses, Pistols and Blunderbusses from Pierce into Crush.
However, it is mainly an archive mod.

Requirements
Permissions and credits
The mod changes Damage Type of Firearms from Pierce into Crush.
This is done via Assembly, instead of through each object, making this a much more generalizable solution.

Mainly, however, having this mod in the nexus serves more as a template for anyone else that wants to mod in a similar fashion.

For those interested, these are the changes to Assembly:

In "class Attackbase", we have the "Init()" method, which is what is changed, by adding the following lines of code:

if (base.gameObject.GetComponent<Weapon>() != null)
        {
            WeaponSpecializationData.WeaponType weaponType = base.gameObject.GetComponent<Weapon>().WeaponType;
            if (weaponType == WeaponSpecializationData.WeaponType.Arquebus || weaponType == WeaponSpecializationData.WeaponType.Pistol || weaponType == WeaponSpecializationData.WeaponType.Blunderbuss)
            {
                this.DamageData.Type = DamagePacket.DamageType.Crush;
            }
        }

Full credit of figuring out this code goes to @fyonlecg, be sure to check out his other mods