Make a spear braceable

正在查看此主题的用户

Hello again to everyone. I just added another item into Native Expansion (this time an awesome looking polearm), gave it to some troops via the troop editor, put it into the shops via the item editor etc. As you all know, Native expansion has spears that can be braced. How to make this weapon I added braceable? It has everything required to be able to: It's a polearm, can be trusted, deals piercing damage, two handed. I tried to copy the awlpike, then change it's stats and texture to the polearm I added it into this mod and it still doesn't work. No braced spear.

*Sorry for the gramatic and spelling errors.
 
Ah. Bit of a problem there.

The spearwall code looks at the spears, ie those items between pitch_fork and wooden_shield. Then it decides what item is braceable. Then it gives each item an 'area of effect'.

e.g.
                (eq,":spear","itm_ashwood_pike"),
                (assign,":speardist",255),

So even if you add your item in there, you would also have to add in its effective length as the area of effect. You can't do this, so your area of effect is 0, therefore spear bracing doesn't work. Some items, even though they are polearms, have area of effect specifically set to 0, e.g. staffs and jousting lances.

I guess it could be done by finding the proper numbers in mission_templates.txt, but that's all gobbledegook to me.
 
Josef_the_Pretender 说:
Ah. Bit of a problem there.

The spearwall code looks at the spears, ie those items between pitch_fork and wooden_shield. Then it decides what item is braceable. Then it gives each item an 'area of effect'.

e.g.
                (eq,":spear","itm_ashwood_pike"),
                (assign,":speardist",255),

So even if you add your item in there, you would also have to add in its effective length as the area of effect. You can't do this, so your area of effect is 0, therefore spear bracing doesn't work. Some items, even though they are polearms, have area of effect specifically set to 0, e.g. staffs and jousting lances.

I guess it could be done by finding the proper numbers in mission_templates.txt, but that's all gobbledegook to me.
Thank you anyway
 
后退
顶部 底部