| Home Page | Recent Changes | Preferences

PlayerMovementZone

Actor >> Info (UT) >> ZoneInfo >> PlayerMovementZone

This type of zone can be used to change a player's movement attributes. Zones created with this class can change the players speed, jump height and air control without needing to play around with the zone's friction properties or gravity.

http://www.snout-clan.co.uk/mapsnmods/PlayerMovementZone.uc

The PlayerMovementZone class is distributed as a piece of UnrealSCript that should be embedded directly within your map. See Embedding Code for details on how to get the actor into your own maps.

Created by EntropicLqd by request of SmileY, who wanted to provide players with full air control in a particular low gravity section of his map.

Usage

The PlayerMovementZone should be used instead of a normal ZoneInfo in the area(s) where you wish the player movement to be altered. The PlayerMovementZone object has three properties that can be changed.

SpeedModifier
This is the factor by which the player ground speed and fluid speed will be changed. A value of 2 will double the player speed and a value of 0.5 will halve the player speed.
JumpModifier
This is the factor by which the player's jump height will be changed. A value of 2 will double the player jump height and a value of 0.5 will halve the player jump height.
AirControl
This is the amount of air control a player has. This value is not a modifier but will be applied directly to any player entering the zone. Set this value to 1 to give players full air control.

The PlayerMovementZone does (in theory at least) take into account players with jump boots. However, if another mutator is being used that affects the player speed then you might see some strange side effects when players enter or leave the zone. Also note that the jump height modifier is applied even when a player does have jump boots. Jump boots allow a player to jump 3 times higher than normal. In a zone with a JumpModifier of 2, the player will be able to jump 6 times higher.

Related Topics

Discussion

Mychaeel: Nice. But how about pasting the code in a <uscript>...</uscript> environment? (Maybe even linking it from Open Source, if you intend it to be Open Source?

Tarquin: Let's implement a category for 3rd-party AND a Category for Open Source. Easier for people to label their pages as such than to edit a forward index. (still unsure on the names for those – minor technicality though ;) )


Category Custom Class

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Image Uploads

Random Page

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

Mapping Topics

Mapping Lessons

UnrealEd Interface

Questions&Answers

Scripting Topics

Scripting Lessons

Making Mods

Class Tree

Questions&Answers

Modeling Topics

Questions&Answers

Log In