How to set EXP values in ServerEXT?

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

Bozeefus

FNG / Fresh Meat
Apr 29, 2015
47
1
0
I was wondering if it's possible to give bosses more exp upon being killed?
Is it possible? If so, can anybody point me to the right direction.

Thanks.
 

neddie

FNG / Fresh Meat
May 13, 2016
141
0
0
I don't believe you can do that and remain whitelisted, which means that it would be pointless because the XP gained would not be retained.
 

forrestmark9

FNG / Fresh Meat
Nov 29, 2011
1,110
39
0
If you're doing it in ServerExt then override the function AddPlayerXP in ExtPlayerController

Do something like this

Code:
Class DEX_ExtPlayerController extends ExtPlayerController;

function AddPlayerXP(int XP, class<KFPerk> PerkClass)
{
	XP *= 2;
	Super.AddPlayerXP(XP, PerkClass);
}

defaultproperties
{
}

If you wish to change the XP value of a certain class then you'd need to change the array XPValues in the zed class
 
Last edited:

Bozeefus

FNG / Fresh Meat
Apr 29, 2015
47
1
0
Thanks, finally got it to work but this BS with TWI again. Marco may be finished with serverext due to the file pathing for xp values changed.

Without Marco this game is going to die, FAST!
 

forrestmark9

FNG / Fresh Meat
Nov 29, 2011
1,110
39
0
Thanks, finally got it to work but this BS with TWI again. Marco may be finished with serverext due to the file pathing for xp values changed.

Without Marco this game is going to die, FAST!

The main problem is TWI being overprotective of stats and putting final on everything, so in order to fix this issue is Marco would need to make a entirely new gametype and override TWI's code
 

Bozeefus

FNG / Fresh Meat
Apr 29, 2015
47
1
0
The main problem is TWI being overprotective of stats and putting final on everything, so in order to fix this issue is Marco would need to make a entirely new gametype and override TWI's code

this is going to be a n00b question, but where do I find this again?

Still thumping my head on how I forgot so quickly. Help would be much appreciated finding extplayercontroller again