Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Some modding questions....  (Read 598 times)

Splint

  • Bay Watcher
  • War is a valid form of diplomacy.
    • View Profile
Some modding questions....
« on: March 13, 2012, 07:42:35 pm »

Ok, i tried the wiki and as I don't wanna go sifting thorough mountains od old threads, I wanted to ask a coupole things for a weapon I'm trying to mod in.

Currently unless a killing strike to the head with the hand guard or pommel, it's slash doesn't cut deep enough. At least not when used by a human player, typically at worst tearing fat. What value controls how deep it will penitrate? I'm aiming for a weapon that can slice through damn near anything lacking several layers of armor plating.

And what value will determine fit a mainly slashing weapon best for contact area?

Help will be apreciated.

Nihilist

  • Bay Watcher
    • View Profile
Re: Some modding questions....
« Reply #1 on: March 13, 2012, 07:55:29 pm »

lets take a look at a vanilla weapon, the dwarven favorite short sword. In this case the edged attacks.
Code: [Select]
[ATTACK:EDGE:20000:4000:slash:slashes:NO_SUB:1250]
[ATTACK:EDGE:50:2000:stab:stabs:NO_SUB:1000]
ATTACK is rather self explanatory, while EDGE sets it as an edged weapon.
It has a rating of 20000:4000 for its slash attack and a rating of 50:2000 for its stab attack.
The first number is its contact size, or the area of effect the attack with be spread over. The lower the number the more concentrated the force.
The second number is its penetration depth or how deep it goes. In the short swords case its slash attack can penetrate deeper than the stab (4000 vs 2000) but the force is spread over a much larger area (400 to 1) so in practice it will generally make shallower wounds. My memory fails me as to the NO_SUB tag does but the last number is a force muliplier. A value of 1000 equals 1x so the slash has 1.25x the force of the stab innately.
Logged

Trapezohedron

  • Bay Watcher
  • No longer exists here.
    • View Profile
Re: Some modding questions....
« Reply #2 on: March 13, 2012, 08:05:36 pm »

I think NO_SUB over there is a descriptor of sorts.

Dwarf 1 slashes (weapon attack) X (target) with the Y (descriptor) of his Z (weapon), tearing the muscle.
Logged
Thank you for all the fish. It was a good run.

Splint

  • Bay Watcher
  • War is a valid form of diplomacy.
    • View Profile
Re: Some modding questions....
« Reply #3 on: March 13, 2012, 08:06:15 pm »

Ok, so here it is. i wanna make these myself as a nice rediculously powerful peice of dwarven engineering, courtesy of the 40k.

Code: [Select]
[ITEM_WEAPON:ITEM_WEAPON_SWORD_CHAIN]
[NAME:chainsword:chainswords]
[SIZE:700]
[SKILL:SWORD]
[TWO_HANDED:37500]
[MINIMUM_SIZE:32500]
[MATERIAL_SIZE:4]
[ATTACK:EDGE:100000:11:saw:saws:NO_SUB:12000]
[ATTACK:EDGE:10:600000:rend:rends:NO_SUB:15000]
[ATTACK:BLUNT:60000:6000:slap:slaps:side:1250]
[ATTACK:BLUNT:100:1000:slam:slams:pommel:1000]
[ATTACK:BLUNT:100:1000:smash:smashes:handguard:1000]

I'm positive I've probably done something horrifically wrong. I had ramped up the velocity modifier, and now the copper one can take limbs off fine, but it's still lacking the sheer sliciyness and penitration I want on the rest of the target, again unless it's a killshot.

Edit: ok, it seems to be treating the saw attack as blunt damage.... I'm getting more shattered bones than torn/sliced up limbs....

Trapezohedron

  • Bay Watcher
  • No longer exists here.
    • View Profile
Re: Some modding questions....
« Reply #4 on: March 13, 2012, 08:08:27 pm »

IIRC, if the attack's BLUNT, it does not take the penetration modifier into account.

If by "sliceyness and penetration", you mean descriptions like tearing the tendons and stuff? Might want to lower the velocity, or increase the 'saw' attack's penetration to 2000 and reduce 'rend''s penetration a bit.

'Saw' barely penetrates into skin, due to it having a very large contact area and very low penetration.
« Last Edit: March 13, 2012, 08:12:02 pm by New Guy »
Logged
Thank you for all the fish. It was a good run.

Nihilist

  • Bay Watcher
    • View Profile
Re: Some modding questions....
« Reply #5 on: March 13, 2012, 08:15:05 pm »

Your slash attack (saw) has a contact area of 100000 and a Penetration depth of 11, this makes it as long as a 2 hand sword with the penetration value of a whip. This won't do much damage. You do have a huge force modifier on it so it does hit pretty hard but no penetration. Up the penetration to 20000 and see what happens.
Your rend attack is a stab, and will probably go though anything.
IF things continue to be weird, try reducing the force multiplier, you might be running into an overflow issue, though i doubt it.
Logged

Splint

  • Bay Watcher
  • War is a valid form of diplomacy.
    • View Profile
Re: Some modding questions....
« Reply #6 on: March 13, 2012, 08:25:06 pm »

Your slash attack (saw) has a contact area of 100000 and a Penetration depth of 11, this makes it as long as a 2 hand sword with the penetration value of a whip. This won't do much damage. You do have a huge force modifier on it so it does hit pretty hard but no penetration. Up the penetration to 20000 and see what happens.
Your rend attack is a stab, and will probably go though anything.
IF things continue to be weird, try reducing the force multiplier, you might be running into an overflow issue, though i doubt it.

Messed with the rend attack's values and now it shreds organs nicely. Gonna tackle the penetration now. Thanks for the help.