Fallout 2 mod Modding weapon/armor perks

rad_gecko

First time out of the vault
It's been a couple weeks since i started tweaking with Fo2 mods.

Had a couple ideas to implement some stuff in combat system, aiming to give a little more personality to weapons that get easily outclassed by the immediate next weapon on the category. So giving perks to weapons to make them more fun to use combined with some logical explanation sounded like the easier and simplier way to do it. (i.e. giving Stonewall to spears representing an improvement in the users balance, or to metal armors as they should be harder do takedown)

But i can't get it to work through simply assigning them via protomanager. I know it's probably possible to do such with scripting (i'm studying this stuff already, but learning slower than i would prefer). So i would like some tips on the subject.

My main initial goals are:
- make common perks work on weapons/armor;
- make weapon knockback work on shotguns (would love to send people flying around tarantino style xD);

Any help is welcome
 
In general, it is difficult to tie ordinary F2 perks to weapons.
It's better to use scripts to create fake perks and bind them to weapons/armor/teammates/whatever.
Only there is a difficulty for each of them to work, you will have to describe everything in the script, you won’t be able to use the original perks.

You can see how Nirran made his custom perks. http://www.nirran.com/Fallout2Scripts.php
I think you already know about this site, but just in case, I’ll throw it off too. https://sfall.bgforge.net/ - A very convenient site with a description of most of the sfall script functions.
For a general understanding of F2 scripts syntax and just to see how smart people write them, you can go here https://github.com/BGforgeNet/FO2tweaks/tree/master/source

Good luck : )
And be sure to share your results, it's very interesting to see how it turns out!
 
This is reasonably easy to achieve with hooks. Apply the perk when weapon is equipped, and remove otherwise (although you'll need to be careful to not remove perks that the character actually has). There's a hook for knockback, too.
 
Wow, thx a lot

Been away from modding as my C classes were eating all my time.
This hook solution probably will work for what i want in a wider range.

So far, all i did was learning to create new items. Made some melee weapons with rifle animations and it worked for the time being, but they still were Chosen One exclusive x)

EDIT: no, it didn't
 
Last edited:
Back
Top