How do you create Mutators?

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

Dioxin

FNG / Fresh Meat
Oct 13, 2009
38
1
0
I'm just looking for a little advice on how to get started.
I'm going to try to implement a Mutator that allows the following buyable items.
[url]http://forums.tripwireinteractive.com/showthread.php?t=37076[/URL]
basically ammo pouch type things.

Now I'm a java programmer so object orientated design et al shouldn't be an issue, and I know how to do all the inheritance stuff.

I wanted a little advice about how to get going.

I'm expecting to have to implement many things including the following

Replacement Trader: to include the items in the list of items buyable
Objects for each item to include

potentially new actors which are affected by these new objects

someway within the trader to make these mutually exclusive, sellable, yet also have the desired effect

what I'm not sure about is how to perform the replacement effects, how do I get all maps that use my mutator use my version of the trader instead of the standard one.

How would I get all the player/actors spawn with the correct child version that I've created

Most of the other effects should be relatively easy variable changes, which have a similar impact on players that perks do.

Any links to mutator tutorials or full code of something like the clotbuster mutator would be much appriecated.
 

mamoo

FNG / Fresh Meat
Jun 19, 2009
2,465
542
0
29
East Sussex, England
I believe the game uses Unreal Script for coding, you should probably begin by familiarisng yourself with it, try 3dbuzz.cm for some tuts.
 

Dioxin

FNG / Fresh Meat
Oct 13, 2009
38
1
0
yeah I've had a look into Unreal Script, and its not far removed from java so thats not an issue.

The issue is finding out where all the classes are that need changed :-(

Anyone here ever added a new item to a trader before?
 

braindead

FNG / Fresh Meat
Aug 22, 2009
918
346
0
Merry Ol' England
Hi

To get an item in the shop, open a map and use the binoculars (actor search function) and find the KFLevelRules0 actor. Open this up by viewing the properties and scroll down to shop and open 'Items for Sale'

you can then add your weapon pickup in here.

As far as the details go, try extracting and looking through how a weapon is made up through its uc files and you will see what attributes you need to change to suit your weapon, i.e. description, cost etc

Hope that helps!

As far as changing the trader, it may be worth downloading and extracting Dany2525's trader mutator and using this as a base to change the trader model. I used this for the Stig character.
 

Dioxin

FNG / Fresh Meat
Oct 13, 2009
38
1
0
yeah thats awesome Braindead, I'm spent the best part of a couple of hours mindlessly searching through each class and finding where "some" of the stuff is hidden.

I dont need to "replace" the trader, I just need to be able to add to the inventory that is available for purchase (and then have it added to the players inventory)

But I'll definitely look at the Fuel Can thing.