• 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 Mut: Per Server Stats

Hi Marco, i am trying to add a new perk to this Server Perk Mutator but i need to know some stuff first.

How do the perks level after level 6? Are the requirements multiplied? Where is the line of code where i can modify this?

Also, how do i increase the damage for a particular weapon as the level increases? What about the headshot damage? In which line will i be able to edit this?

And, how do i increase the speed of the perk user as the perk level increases?

I would also like to know what code do i have to add to extend zed time as you headshot the specimens.

Would it be possible to explain the meanings and what some of the lines of code in each perk do?

Sorry for all the questions, i have never done unreal coding before but would like to start here.

Thanks :)
 
Upvote 0
How do the perks level after level 6? Are the requirements multiplied? Where is the line of code where i can modify this?
Yes they are multiplied:
Code:
static function int GetPerkProgressInt( ClientPerkRepLink StatOther, out int FinalInt, byte CurLevel, byte ReqNum )
{
    switch( CurLevel )
    {
...
    default:
        FinalInt = 5500000+GetDoubleScaling(CurLevel,500000);
    }
    return Min(StatOther.RFlameThrowerDamageStat,FinalInt);
}

Also, how do i increase the damage for a particular weapon as the level increases? What about the headshot damage? In which line will i be able to edit this?

And, how do i increase the speed of the perk user as the perk level increases?
Read the comments and function names and take a good guess...

Would it be possible to have this mutator broadcast in the chat whenever someone kills a certain amount of zeds, for example "BANANAS has killed 6000 Clots" or "IHATEYOU has killed 1209 Patriarchs"?

Also, will there be like, top stats? Eg. top Killers/Survivors broadcast in the chat once in awhile.
I don't think I will add some message broadcaster for that, but I *may* add some global player stats for leader boards.

Marco I think you miss some things like firebug spawn with mac and flamethrower, (something that changes on the 1016) =).... and other stuff..... are u going to leave it that way? just to know =)
Yeah I know I missed some, I will add it in on next version.
 
  • Like
Reactions: BulletMorgue
Upvote 0
Yes they are multiplied:
Code:
static function int GetPerkProgressInt( ClientPerkRepLink StatOther, out int FinalInt, byte CurLevel, byte ReqNum )
{
    switch( CurLevel )
    {
...
    default:
        FinalInt = 5500000+GetDoubleScaling(CurLevel,500000);
    }
    return Min(StatOther.RFlameThrowerDamageStat,FinalInt);
}
Read the comments and function names and take a good guess...


I don't think I will add some message broadcaster for that, but I *may* add some global player stats for leader boards.


Yeah I know I missed some, I will add it in on next version.

Thank you very much for your reply!

I will try to figure out how to modify them. :)

Also, good to hear that there may be global stats.
 
Last edited:
Upvote 0
Hi, im trying to get this to work but for some reason I have no perks on the server at all. When I ready up and try use a perk, it says they are disabled when it's set on the (main) configuration to be enabled. The perks still level up though as I got 4 headshots for the sharpshooter...

I have got the remotedatabase installed aswel with the port 2 higher then the normal port for the server.
 
Upvote 0
Hi, im trying to get this to work but for some reason I have no perks on the server at all. When I ready up and try use a perk, it says they are disabled when it's set on the (main) configuration to be enabled. The perks still level up though as I got 4 headshots for the sharpshooter...

I have got the remotedatabase installed aswel with the port 2 higher then the normal port for the server.
Can you post the configures you have for the remote database server here (you can blank out the password/IP-address) from both Host.ini and ServerPerksV4.ini?
 
Upvote 0
Ok, so I have decompiled the downloaded ServerPerksV4.u (pre-compiled version) and I have tried to compile it with doing no edits or modifications of any sort. However I still come up with this error:

Code:
C:\GameServers\KF1\system>ucc make
----------------------------Core - Release----------------------------
---------------------------Engine - Release---------------------------
----------------------------Fire - Release----------------------------
---------------------------Editor - Release---------------------------
--------------------------UnrealEd - Release--------------------------
---------------------------IpDrv - Release----------------------------
----------------------------UWeb - Release----------------------------
--------------------------GamePlay - Release--------------------------
-------------------------UnrealGame - Release-------------------------
---------------------------XGame - Release----------------------------
-------------------------XInterface - Release-------------------------
---------------------------XAdmin - Release---------------------------
-------------------------XWebAdmin - Release--------------------------
---------------------------GUI2K4 - Release---------------------------
--------------------------xVoting - Release---------------------------
--------------------------UTV2004c - Release--------------------------
--------------------------UTV2004s - Release--------------------------
-------------------------ROEffects - Release--------------------------
--------------------------ROEngine - Release--------------------------
------------------------ROInterface - Release-------------------------
---------------------------Old2k4 - Release---------------------------
---------------------------KFMod - Release----------------------------
---------------------------KFChar - Release---------------------------
---------------------------KFGui - Release----------------------------
-------------------------GoodKarma - Release--------------------------
-----------------------ServerPerksV4 - Release------------------------
Analyzing...
Parsing ClientPerkRepLink
Parsing ServerPerksMut
Parsing DatabaseUdpLink
Parsing KFVetEarnedMessageSR
Parsing SRVeterancyTypes
Parsing SRVetBerserker
Parsing SRVetCommando
Parsing SRVetDemolitions
Parsing SRVetFieldMedic
Parsing SRVetFirebug
Parsing SRVetSharpshooter
Parsing SRVetSupportSpec
Parsing KFPCServ
Parsing SRHUDKillingFloor
Parsing ServerStStats

C:\GameServers\KF1\ServerPerksV4\Classes\ServerStStats.uc(338) : Error, Redefini
tion of 'function AddKill' differs from original in KFSteamStatsAndAchievements

Compile aborted due to errors.

Failure - 1 error(s), 0 warning(s)
 
C:\GameServers\KF1\system>ucc dumpint ServerPerksV43.u
No packages found matching ServerPerksV43.u!
Syntax: ucc dumpint <file.ext> [file.ext...]
Failure - 2 error(s), 0 warning(s)
C:\GameServers\KF1\system>pause
Press any key to continue . . .

Any help with this? Just trying to get the hang of working with the whole Syntax of compiling/decompiling.
 
Upvote 0
Ok, so I have decompiled the downloaded ServerPerksV4.u (pre-compiled version) and I have tried to compile it with doing no edits or modifications of any sort. However I still come up with this error:

Code:
C:\GameServers\KF1\system>ucc make
----------------------------Core - Release----------------------------
---------------------------Engine - Release---------------------------
----------------------------Fire - Release----------------------------
---------------------------Editor - Release---------------------------
--------------------------UnrealEd - Release--------------------------
---------------------------IpDrv - Release----------------------------
----------------------------UWeb - Release----------------------------
--------------------------GamePlay - Release--------------------------
-------------------------UnrealGame - Release-------------------------
---------------------------XGame - Release----------------------------
-------------------------XInterface - Release-------------------------
---------------------------XAdmin - Release---------------------------
-------------------------XWebAdmin - Release--------------------------
---------------------------GUI2K4 - Release---------------------------
--------------------------xVoting - Release---------------------------
--------------------------UTV2004c - Release--------------------------
--------------------------UTV2004s - Release--------------------------
-------------------------ROEffects - Release--------------------------
--------------------------ROEngine - Release--------------------------
------------------------ROInterface - Release-------------------------
---------------------------Old2k4 - Release---------------------------
---------------------------KFMod - Release----------------------------
---------------------------KFChar - Release---------------------------
---------------------------KFGui - Release----------------------------
-------------------------GoodKarma - Release--------------------------
-----------------------ServerPerksV4 - Release------------------------
Analyzing...
Parsing ClientPerkRepLink
Parsing ServerPerksMut
Parsing DatabaseUdpLink
Parsing KFVetEarnedMessageSR
Parsing SRVeterancyTypes
Parsing SRVetBerserker
Parsing SRVetCommando
Parsing SRVetDemolitions
Parsing SRVetFieldMedic
Parsing SRVetFirebug
Parsing SRVetSharpshooter
Parsing SRVetSupportSpec
Parsing KFPCServ
Parsing SRHUDKillingFloor
Parsing ServerStStats

C:\GameServers\KF1\ServerPerksV4\Classes\ServerStStats.uc(338) : Error, Redefini
tion of 'function AddKill' differs from original in KFSteamStatsAndAchievements

Compile aborted due to errors.

Failure - 1 error(s), 0 warning(s)
 
C:\GameServers\KF1\system>ucc dumpint ServerPerksV43.u
No packages found matching ServerPerksV43.u!
Syntax: ucc dumpint <file.ext> [file.ext...]
Failure - 2 error(s), 0 warning(s)
C:\GameServers\KF1\system>pause
Press any key to continue . . .
Any help with this? Just trying to get the hang of working with the whole Syntax of compiling/decompiling.

Hi, i just edited some of the perks to include the MK23 and other stuff, when recompiling i get an error similar to this as well.

Anyone have any idea what went wrong?
 
Last edited:
Upvote 0