Tripwire Interactive Forums

  • 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/
I'm putting together a mutator that makes it so you don't have or earn money.
But I've come across bumps. I'm not too good at coding to be honest, but I try.

The first thing I tried was:
Code:
function Mutate(string MutateString, PlayerController Sender)
{
    if (Caps(MutateString) == "HYPER")
        Sender.Pawn.Score = 0;
    
    Super.Mutate(MutateString, Sender);
}
But no go.

Also though:

Code:
function Timer()
{
    local KFHumanPawn Player;
    
    foreach DynamicActors(class 'KFHumanPawn', Player)
    {
        if (Player.Score <= 1) Player.Score -= 1;
        else Player.Score = 0;
    }
}
Or:
Code:
function Timer()
{
    local KFHumanPawn Player;
    
    foreach DynamicActors(class 'KFHumanPawn', Player)
    {
        if (Player.PlayerReplicationInfo <= 1) Player.PlayerReplicationInfo -= 1;
        else Player.PlayerReplicationInfo = 0;
    }
}
Might work, but not too sure about that.

I was thinking about using
Code:
function ModifyPlayer(Pawn Other)
but I'm not too sure how to initiate PlayerReplicationInfo into that.

Any tips or help would be useful