Help with adding new skills.

Started by Greenflame, September 25, 2016, 06:41:15 AM

Previous topic - Next topic

Greenflame

I am creating a personal mod which changes a LOT of random things about the game. There is one idea which I have been wanting to implement but every time I try I am unable to make much progress.

The goal I have in mind is to make the three different types of weapons (which I label as neolithic, modern & futuristic) run off different skills.This is so my runs from the neolithic stage aren't sped up ridiculously by good gun drops from raiders.

The issue is that although I have created a new skill, firstly it almost always spawns on the colonist at lvl 2 or 1.
lastly, I am unable to find how guns are defined a skill to use.

If you have any idea how to help please do.

Rikiki

Guns all use the "Shooting" skill. This is hardcoded.
If you want to use another skill, you will have to re-write a loooot of the shooting mechanics. :P
This is impossible without a dll (C# coding).

Look at the JobDriver JobDriver_AttackStatic and the TryStartCastOn function if you are not affraid.
Be prepared to hit a (very very thick) wall though... ;D