Jump to content

Increasing Critical Chance for Certain Weapons


Recommended Posts

For my own mod, I created a "Sniper" perk which works similarly to the perk from the old games. I want to increase the player's base critical chance by five times their luck, but for firearms and launchers only, not grenades or melee weapons (I'll let Slayer handle melee and unarmed).

 

I created a script which will run only once and apply the bonus, created a base effect using the script and finally an actor effect used by the perk. However, the critical bonus is applied universally and I can't change perk conditions of I use an ability so I'll have to edit the script.

 

How can I go abouts this?

 

EDIT: I know the base critical chance is defined by luck but it's also modified by perks. I don't want to multiply the base critical chance, I want to add to it a value which factors luck.

Edited by GimmeBackMyMoney
Link to comment
Share on other sites

You don't have to use a script here. You can create a perk with 10 Entry Points (one for each Luck level):

 

Use the entry point Calculate My Critical Hit Chance, with the function Add Value, and Function Data of 5/10/15/20/etc.

 

For each entry point, add a Perk Owner condition:

GetWeaponAnimType > 2

AND

GetWeaponAnimType < 10

AND

GetActorValue Luck == 1 (/2/3/4/5/6...)

Edited by jazzisparis
Link to comment
Share on other sites

  • Recently Browsing   0 members

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