Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: I need help with making new attacks.  (Read 1132 times)

Scionwoods

  • Bay Watcher
    • View Profile
I need help with making new attacks.
« on: June 18, 2013, 03:00:41 am »

So I am trying to make more attacks for martial arts, and I am wondering what the results for the code will be.

Code: [Select]
        [ATTACK:PUNCH:BODYPART:BY_TYPE:GRASP]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:punch:punches]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:MAIN]
[ATTACK:CHOP:BODYPART:BY_TYPE:GRASP]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:chop:chops]
[ATTACK_CONTACT_PERC:10]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:MAIN]
[ATTACK:KICK:BODYPART:BY_TYPE:STANCE]
[ATTACK_SKILL:STANCE_STRIKE]
[ATTACK_VERB:kick:kicks]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:SECOND]
[ATTACK:STOMP:BODYPART:BY_TYPE:STANCE]
[ATTACK_SKILL:STANCE_STRIKE]
[ATTACK_VERB:stomp:stomps]
[ATTACK_CONTACT_PERC:70]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:SECOND]
[ATTACK:SCRATCH:CHILD_TISSUE_LAYER_GROUP:BY_TYPE:GRASP:BY_CATEGORY:FINGER:NAIL]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:scratch:scratches]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PRIORITY:SECOND]
[ATTACK:POKE:CHILD_TISSUE_LAYER_GROUP:BY_TYPE:GRASP:BY_CATEGORY:FINGER]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:poke:pokes]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:30]
[ATTACK_FLAG_EDGE]
[ATTACK_PRIORITY:SECOND]

So what would happen with the poke.
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:30]

I am trying to make it where it wouldn't cut off limbs, but could be used to attack vitals. Will this work? I never modded before...

Also is their a way to make it where you can only stomp on people smaller then you or laying on the ground. I don't want to be able to stomp on a four story tall mega beast head when they are standing up

Lastly how exactly does the Attack contact percentage and the penetration percentage affect the attack?
Logged

Sergarr

  • Bay Watcher
  • (9) airheaded baka (9)
    • View Profile
Re: I need help with making new attacks.
« Reply #1 on: June 18, 2013, 04:24:51 am »

Well the [ATTACK_CONTACT_PERC:100] means that the attack goes through 100% of limb's area and [ATTACK_PENETRATION_PERC:30] means that it's penetration ability is 30% from normal (btw penetration matters only for edge attacks). So, lower the contact area the more spear-like the attack be.
for poke, you may try contact_perc 10 and penetration perc 1000. If limbs are flying after that, lower the contact_perc to 1

And no, there is no way to distinguish between an enemy standing or laying on the ground... currently. Maybe in the next version.

Also there is [CV_ADD_TAG:ATTACK_VELOCITY_MODIFIER] to change the velocity of attack, for example [CV_ADD_TAG:ATTACK_VELOCITY_MODIFIER:2500] will make the attack 2.5x faster, and that means it will be stronger.
btw whips have velocity modifier 5000, that and their low contact area make them uberpowerfull.
« Last Edit: June 18, 2013, 04:29:27 am by Sergarr »
Logged
._.

Scionwoods

  • Bay Watcher
    • View Profile
Re: I need help with making new attacks.
« Reply #2 on: June 18, 2013, 04:50:21 am »

Thanks dude.
Logged

scamtank

  • Bay Watcher
    • View Profile
Re: I need help with making new attacks.
« Reply #3 on: June 18, 2013, 05:23:02 am »

Penetration does matter for blunt attacks. It determines whether a muscle-bone-internal organ ensemble goes "bruised-broken-bruised" or "bruised-broken-lacerated by bone fragments" when hit.
Logged

Sergarr

  • Bay Watcher
  • (9) airheaded baka (9)
    • View Profile
Re: I need help with making new attacks.
« Reply #4 on: June 18, 2013, 05:42:38 am »

Penetration does matter for blunt attacks. It determines whether a muscle-bone-internal organ ensemble goes "bruised-broken-bruised" or "bruised-broken-lacerated by bone fragments" when hit.
Oh, I didn't knew that, thanks!
Logged
._.

Scionwoods

  • Bay Watcher
    • View Profile
Re: I need help with making new attacks.
« Reply #5 on: June 18, 2013, 12:33:26 pm »

Hey guys thanks and everything but is their a way to make it where it depends on the strength of a person as to how deep it cuts or not.

I am trying to make it where if some weakling peasant poked a person the attack would just glance away or just bruise the person, but if a super powerful demigod poked a person they could cut all the way to the heart.
Logged

scamtank

  • Bay Watcher
    • View Profile
Re: I need help with making new attacks.
« Reply #6 on: June 18, 2013, 02:15:28 pm »

The penetration value is an upper bound. If you don't have the brawn to cut past the tissue, then you just don't cut past the tissue.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: I need help with making new attacks.
« Reply #7 on: June 18, 2013, 04:26:46 pm »

Penetration does matter for blunt attacks. It determines whether a muscle-bone-internal organ ensemble goes "bruised-broken-bruised" or "bruised-broken-lacerated by bone fragments" when hit.

Really? I thought testing showed that it doesn't really matter and velocity is what does that.

scamtank

  • Bay Watcher
    • View Profile
Re: I need help with making new attacks.
« Reply #8 on: June 18, 2013, 04:31:35 pm »

I've been wrong before when I thought I was rock-solid sure, but that's what I've noticed, yeah.

Bash a dwarf's head with a penetration 1 war hammer and he dies of a bruised brain, not a bone-lacerated one. Restore it to normal levels and the skull/rib caves right in and cuts organs. I'll go double-check.

e: informal results:
[ATTACK:BLUNT:20:200:bash:bashes:NO_SUB:2000]
C.O.D. -> bruised muscle, shattered skull, brain torn by skull fragments

[ATTACK:BLUNT:20:2:bash:bashes:NO_SUB:2000]
C.O.D. -> same as above!

[ATTACK:BLUNT:20:0:bash:bashes:NO_SUB:2000]
C.O.D. -> bruised muscle, shattered skull, bruised brain
« Last Edit: June 18, 2013, 04:37:55 pm by scamtank »
Logged