basically what i want is a mutator that lets the player jump continuously
the player can say "!bounce" and "!nobounce" or type in console "mutate bounce" and "mutate nobounce" to toggle it on/off
- if toggled on; when the player holds down the jump key the player will constantly jump
- if toggled off; the player just jumps 1 time each key press
since i have little knowledge in Uscripting i am not able to make it by myself
but what i got so far is this:
Code: Select all
class BounceMutator extends Mutator;
function Mutate(string MutateString, PlayerPawn Sender) {
Super.Mutate(MutateString, Sender);
switch MutateString {
case "bounce":
EnableBounce(Sender);
break;
case "nobounce":
DisableBounce(Sender, false);
break;
}
}
function bool MutatorTeamMessage(Actor Sender, Pawn Receiver,
PlayerReplicationInfo PRI, coerce string S, name Type,
optional bool bBeep) {
if(Sender.IsA('TournamentPlayer') && Sender == Receiver) {
if(S ~= "!bounce") {
EnableBounce(PlayerPawn(Sender));
} else if(S ~= "!nobounce") {
DisableBounce(PlayerPawn(Sender), false);
}
}
// Allow other message mutators to do their job.
if (nextMessageMutator != none) {
return nextMessageMutator.mutatorTeamMessage(sender, receiver, pri, s, type, bBeep);
} else {
return true;
}
}
function EnableBounce(PlayerPawn Sender) {
local int i;
Sender.ClientMessage("AutoBouncing Enabled");
}
function DisableBounce(PlayerPawn Sender, bool bForced) {
local int i;
Sender.ClientMessage("AutoBouncing Disabled");
}the mutate commands are working correctly but the say message doesnt work yet
but what i mainly want to ask is to help with the main function of the script; making the player jump constantly, whenever the player hits a ground surface it will jump directly from the first frame

i guess it should be something like this, but as i said i have little knowledge in Uscripting, so it would be great if anyone can help me with this