• 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/

Code [Tutorial] Modifying Existing Weapons

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.
 
Upvote 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.
If you're looking for maximum ammo, use this:
Code:
Class'SingleAmmo'.default.MaxAmmo = 240;
 
Upvote 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

Class'classfileyouwishtochange'.default.thisisthedefaultpropertyyouwanttochangefromsaidfile = valueyouwishtochangeto;

You can find those weapons classes in your KFMOD directory
 
Upvote 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:
Upvote 0
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.
 
Upvote 0