I am trying to mod in dwarven headbutts (this can only go well). Below is what I have so far:
[ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:HEAD]
>> still uses bite skill - it's a similar movement
[ATTACK_SKILL:BITE]
[ATTACK_VERB:headbutt:headbutts]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PRIORITY:SECOND]
>> quad velocity (I think)
[ATTACK_VELOCITY_MODIFIER:4000]
>> "inject" with dizziness?
[ATTACK_FLAG_WITH]
I have questions three:
- Have I got the velocity multiplier right? I'm assuming it works the same way as weapons but I remember reading something on the wiki that threw me off. I'm trying to headbutt at 4x normal velocity to simulate the fact that getting headbutted really hurts, not 4000x.
- How do I implement adding a "dizzy" effect upon the headbutt hitting? Will I need to use the inject whizzbang that scorpions use? I'm not sure if I'll go through with this but it's a neat idea.
- Most importantly, how do I get this to work? I got "[ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:HEAD]" by just knocking the teeth bit off the end, but that doesn't work in arena mode. I've a feeling it has something to do with the :BITE: bit, but I've no idea how to add a new token of that type to the game (or even what that token is), and swapping it out for :PUNCH: didn't work. How do I make dorfs smack folks with their noggins?
1. You should test it in arena, I put something like 400 on natural slashing attacks for one of my races and it causes lots of damage only on naked targets of a similar size - armored targets are protected from it and so are most bigger targets.
2. Yeah, unfortunately that's the only way to have a interaction-on-hit right now, AFAIK.
3. That's because you have the CHILD_BODYPART_GROUP there. Its used for biting so that it AFAIK randomly selects one of the bodyparts attached to the body part (in case of biting it looks for teeth attached to the head) on an attack - if it was just tagged [ATTACK:BITE:BODYPART:BY_CATEGORY:TEETH] it would have several entries for biting for each individual set of teeth as it would with individual hands for punches.
For a headbutt you just want [ATTACK:PUNCH:BODYPART:BY_CATEGORY:HEAD].