Jump to content

Weapon mod - Headshot damage multiplier


dbbolton

Recommended Posts

Try setting the weapon's object script to something like this:

scn headshotkillscript

ref MyOwner
ref MyTarget
int HeadCondition

BEGIN OnFire
  set MyOwner to Player
  set MyTarget to MyOwner.objectunderreticle 0 1000000
  set HeadCondition to MyTarget.getav perceptioncondition
END

BEGIN OnHit

  if HeadCondition > MyTarget.getav perceptioncondition
    MyTarget.damageav health 1000
  endif
  set HeadCondition to 0
END

This will add extra damage to an NPC if shot in the head with your weapon only. It will only work if the player is using the weapon and not in VATS. I have some ideas for how to fix these problems, but they are more complicated than the example and will take me some time to put together.

Edited by IronChancellor
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...