[Tutorial] Modifying Existing Weapons

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

kf.sudamerica

FNG / Fresh Meat
Jan 23, 2012
36
0
0
very interesting!
change with this tutorial guiding a weapon with the SharpShooter perk to perk Firebug, all is well!, but the trader still appears on the side of the logo of the perk weapon SharpShooter. how I can change it and put the logo Firebug perk?
 

Ezebassi1

FNG / Fresh Meat
Aug 13, 2012
26
0
0
Hello Friends.
Missing Class carries many bullets the gun.
what I mean is missing quantities of ammunition that can use the weapon:

Code:
Class'SingleAmmo'.default.GunBullets = 15;

Change At

Code:
Class'SingleAmmo'.default.GunBullets = 20;

this is not true Class, I gave an example

Sorry: I not speak good the English.
 

FluX

Grizzled Veteran
Oct 26, 2010
5,394
234
63
www.fluxiserver.co.uk
Hello Friends.
Missing Class carries many bullets the gun.
what I mean is missing quantities of ammunition that can use the weapon:

Code:
Class'SingleAmmo'.default.GunBullets = 15;

Change At

Code:
Class'SingleAmmo'.default.GunBullets = 20;

this is not true Class, I gave an example

Sorry: I not speak good the English.
If you're looking for maximum ammo, use this:
Code:
Class'SingleAmmo'.default.MaxAmmo = 240;
 

Dinamix

FNG / Fresh Meat
Mar 23, 2012
199
1
0
Code:
Class'Single'.default.MagCapacity = 20;
It Should work :)
EDIT: MagCapacity in in main weapon file like HandCannon, Single, Dualies etc. I think you will understand.
 
Last edited:

Ezebassi1

FNG / Fresh Meat
Aug 13, 2012
26
0
0
And sorry for bothering

What is the Class'???????'.default.xxxxx = xxx;
Of these weapons

Combat Shotgun
Huntig
HSG-1
M14EBR
Mac-10

sorry for bothering
 

EpharGy

FNG / Fresh Meat
Jan 3, 2011
1,350
63
0
Australia
www.sykosis.co.uk
And sorry for bothering

What is the Class'???????'.default.xxxxx = xxx;
Of these weapons

Combat Shotgun
Huntig
HSG-1
M14EBR
Mac-10

sorry for bothering

Class'classfileyouwishtochange'.default.thisisthedefaultpropertyyouwanttochangefromsaidfile = valueyouwishtochangeto;

You can find those weapons classes in your KFMOD directory
 

Ezebassi1

FNG / Fresh Meat
Aug 13, 2012
26
0
0
Class'classfileyouwishtochange'.default.thisisthedefaultpropertyyouwanttochangefromsaidfile = valueyouwishtochangeto;

You can find those weapons classes in your KFMOD directory

UFFF Sorry to be so inattentive I am ashamed to bother: S FORGIVENESS: (
****!
 

Ezebassi1

FNG / Fresh Meat
Aug 13, 2012
26
0
0
I wasnt making fun of you, i was putting the descritions there to best match what you are looking for.

Nono.. I didn't say anything wrong de ti :S

Other doubt How to Change the Fill or Filled of the Weapon (in the trade)..

I tried with

Class'Single'.Default.FillCapacity = 250;
Class'Single'.Default.FilledCapacity = 250;
Class'SinglePickup'.Default.FillCapacity = 250;
Class'SinglePickup'.Default.FilledCapacity = 250;

And Not works :S


Class'Single'.Default.FillCapacity = 250;
Class'Single'.Default.FilledCapacity = 250;
Class'SinglePickup'.Default.FillCapacity = 250;
Class'SinglePickup'.Default.FilledCapacity = 250;
This is not "Class'SingleAmmo'.default.MaxAmmo = 250;

Answer!! XD
 
Last edited:

EpharGy

FNG / Fresh Meat
Jan 3, 2011
1,350
63
0
Australia
www.sykosis.co.uk
Not 100% sure on what your are looking for

Remember, your changing values that are already there or in parent classes, don't try to make up values.

To change the amount of ammo that comes with the weapon, change the InitialAmount in your weapons ammo class.

If your trying to change how much you buy as opposed to fill, change the BuyClipSize in your weapons pickup class.

If you want to change the cost of ammo change AmmoCost also in the weapons pickup.
 

Dinamix

FNG / Fresh Meat
Mar 23, 2012
199
1
0
We could easily help if we would understand what you want , wich weapon you want to change and etc.
 

EpharGy

FNG / Fresh Meat
Jan 3, 2011
1,350
63
0
Australia
www.sykosis.co.uk
Fill is found in the SingleAmmo class as MaxAmmo

The amount for the mag size in the trader is found in the SinglePickup class
as BuyClipSize

In otherwords your MaxAmmo=250
BuyClipSize=120