I'm trying to add an energy weapon handgun which deals fire damage. I've noticed those two problems, both of which disappear if I switch the damage type:
1. Aimed shot becomes unavailable
2. The handgun uses small guns instead of energy weapons
Is there a known solution, or do we just avoid fire damage type for energy weapons?
My best guess is: since there isn't a flag for which skill the weapon uses, the engine must have this check at the time of attack is used (could be slightly wrong):
I haven't tested most of this, but it seems most likely.
1. Aimed shot becomes unavailable
2. The handgun uses small guns instead of energy weapons
Is there a known solution, or do we just avoid fire damage type for energy weapons?
My best guess is: since there isn't a flag for which skill the weapon uses, the engine must have this check at the time of attack is used (could be slightly wrong):
Code:
if (action == throw)
throwing
else if (attack_type in ['throw punch', 'kick leg'])
unarmed
else if (attack_type in ['swing', 'thrust']]
melee weapons
else if (big_guns) // yes, weapons have a flag "big guns"
big guns
else if (damage_type in ['laser', 'plasma', 'electrical'])
energy weapons
else
// even if it's fire damage
// I haven't tested for explosive and EMP, but I'd assume they're also small guns
small guns
I haven't tested most of this, but it seems most likely.