Gah - a solution with more questions. – EntropicLqd
UE2:Mutator (UT2004)
Contents
- 1 Properties
- 2 Functions
- 2.1 Events
- 2.2 Other instance functions
- 2.2.1 AddMutator
- 2.2.2 AlwaysKeep
- 2.2.3 CanEnterVehicle
- 2.2.4 CanLeaveVehicle
- 2.2.5 CheckRelevance
- 2.2.6 CheckReplacement
- 2.2.7 DriverEnteredVehicle
- 2.2.8 DriverLeftVehicle
- 2.2.9 GetDefaultWeapon
- 2.2.10 GetInventoryClass
- 2.2.11 GetInventoryClassOverride
- 2.2.12 GetServerDetails
- 2.2.13 GetServerPlayers
- 2.2.14 IsRelevant
- 2.2.15 ModifyLogin
- 2.2.16 ModifyPlayer
- 2.2.17 Mutate
- 2.2.18 MutatorFillPlayInfo
- 2.2.19 MutatorIsAllowed
- 2.2.20 MyDefaultWeapon
- 2.2.21 NewRecommendCombo
- 2.2.22 NotifyLogout
- 2.2.23 ParseChatPercVar
- 2.2.24 PlayerChangedClass
- 2.2.25 RecommendCombo
- 2.2.26 ReplaceWith
- 2.2.27 ServerTraveling
- Package:
- Engine
- Direct subclasses:
- MutGameSpeed, MutBonusVehicles, DMMutator, MutMovementModifier, MutArena, MutBerserk, MutBigHead, MutBigWheels, MutCrateCombo, MutFastWeapSwitch, MutInstaGib, MutLightweightVehicles, MutLowGrav, MutNoAdrenaline, MutNoSuperWeapon, MutOnslaughtWeapons, MutQuadJump, MutRegen, MutSlomoDeath, MutSpeciesStats, MutUDamageReward, MutUseLightning, MutUTClassic, MutUseSniper, MutVampire, MutVehicleArena, MutVehiclePickups, MutWheeledVehicleStunts, UtvMutator
- Known custom subclass:
- Eliot/LevelConfigManager
- This class in other games:
- RTNP, U1, UT, U2XMP, U2, UE2Runtime, UT2003, UT3, UDK
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Mutator.
Mutators allow modifications to gameplay while keeping the game rules intact. Mutators are given the opportunity to modify player login parameters with ModifyLogin(), to modify player pawn properties with ModifyPlayer(), to change the default weapon for players with GetDefaultWeapon(), or to modify, remove, or replace all other actors when they are spawned with CheckRelevance(), which is called from the PreBeginPlay() function of all actors except those (Decals, Effects and Projectiles for performance reasons) which have bGameRelevant==true.
Properties[edit]
Property group 'Mutator'[edit]
ConfigMenuClassName[edit]
Type: string
Modifiers: cache
Description[edit]
Type: string
Modifiers: localized, cache
FriendlyName[edit]
Type: string
Modifiers: localized, cache
GroupName[edit]
Type: string
Modifiers: cache
Will only allow one mutator with this tag to be selected.
IconMaterialName[edit]
Type: string
Modifiers: cache
Default value: "MutatorArt.nosym"
Internal variables[edit]
bAddToServerPackages[edit]
Type: bool
if true, the package this mutator is in will be added to serverpackages at load time
bUserAdded[edit]
Type: bool
mc - mutator was added by user (cmdline or mutator list)
DefaultWeapon[edit]
DefaultWeaponName[edit]
Type: string
NextMutator[edit]
Type: Mutator
Functions[edit]
Events[edit]
Destroyed[edit]
Overrides: Actor.Destroyed
OverrideDownload[edit]
PreBeginPlay[edit]
Overrides: Actor.PreBeginPlay
Other instance functions[edit]
AddMutator[edit]
AlwaysKeep[edit]
CanEnterVehicle[edit]
CanLeaveVehicle[edit]
CheckRelevance[edit]
CheckReplacement[edit]
DriverEnteredVehicle[edit]
DriverLeftVehicle[edit]
GetDefaultWeapon[edit]
GetInventoryClass[edit]
GetInventoryClassOverride[edit]
GetServerDetails[edit]
GetServerPlayers[edit]
IsRelevant[edit]
ModifyLogin[edit]
ModifyPlayer[edit]
Mutate[edit]
Called by a PlayerController when the player executes a "mutate" console command. Everything after the command name "mutate" is passed to this function as a raw string, which you will have to parse yourself. Keep in mind that this function is called for every possible mutate command a player may use, so make sure you always call Super.Mutate(MutateString, Sender);
to ensure all other mutators get a chance to parse their mutate commands. Always make sure Sender is not None. (see below)
Note: The SafeGame anti-cheat mod introduced an unofficial protocol for player kick notifications that is based on this Mutate function with the Sender parameter being None. According to this protocol, which is also used or recognized by other mods, such as the UTAN mutator or Anti TCC, kick notifications can be sent to all mutators by using a MutateString formatted as follows:
KickedBy parameters
The parameters string contains the following fields, which are separated by the character that is returned by Chr(254):
- Mod name: This is the name of the mod that kicked a player, for example SafeGame, AntiTCC or UTAN.
- Player name: The exact, current name of the player being kicked.
- Zero or more other parameters: These are separated by Chr(254) as well and their meaning depends on the mod.
For UTAN this is the ban ID, SafeGame and AntiTCC put details such as the GUID, IP and other player-specific information here, as well as a kick reason.