My program doesn't have bugs. It just develops random features.
UE3:UTWeaponPawn (UT3)
Contents
- 1 Properties
- 2 Functions
- 2.1 Exec functions
- 2.2 Native functions
- 2.3 Events
- 2.4 Other instance functions
- 2.4.1 AddVelocity
- 2.4.2 AdjustCameraScale
- 2.4.3 ApplyWeaponEffects
- 2.4.4 AttachDriver
- 2.4.5 CalcCamera
- 2.4.6 ClearFlashCount
- 2.4.7 ClearFlashLocation
- 2.4.8 Died
- 2.4.9 DisplayDebug
- 2.4.10 DisplayHud
- 2.4.11 DoJump
- 2.4.12 DriverLeft
- 2.4.13 DropToGround
- 2.4.14 FaceRotation
- 2.4.15 GetCollisionRadius
- 2.4.16 GetQuickPickCells
- 2.4.17 GetVehicleDrivingStatName
- 2.4.18 IncrementFlashCount
- 2.4.19 JumpOffPawn
- 2.4.20 PlaceExitingDriver
- 2.4.21 PossessedBy
- 2.4.22 ProcessViewRotation
- 2.4.23 QuickPick
- 2.4.24 ServerAdjacentSeat
- 2.4.25 ServerChangeSeat
- 2.4.26 SetBaseEyeheight
- 2.4.27 SetFiringMode
- 2.4.28 SetFlashLocation
- 2.4.29 SetMovementPhysics
- 2.4.30 TooCloseToAttack
- Package:
- UTGame
- Direct subclass:
- UTClientSideWeaponPawn
- This class in other games:
- 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. |
Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.
Properties
MySeatIndex
Type: int
Modifiers: repnotify
An index in to the Seats array of the vehicle housing this WeaponPawn. It is replicated
Default value: -1
MyVehicle
Type: UTVehicle
Modifiers: repnotify
MyVehicle points to the vehicle that houses this WeaponPawn and is replicated
MyVehicleWeapon
Type: UTVehicleWeapon
Modifiers: repnotify
MyVehicleWeapon points to the weapon assoicated with this WeaponPawn and is replcated
Default values
Property | Value |
---|---|
BaseEyeHeight | 180.0 |
bCollideActors | False |
bCollideWorld | False |
bFollowLookDir | True |
bIgnoreBaseRotation | True |
bOnlyRelevantToOwner | True |
bProjTarget | False |
bStationary | True |
bTurnInPlace | True |
EyeHeight | 180.0 |
InventoryManagerClass | Class'UTGame.UTInventoryManager' |
Physics | PHYS_None |
StayUprightConstraintInstance | RB_ConstraintInstance'UTGame.Default__UTWeaponPawn:MyStayUprightConstraintInstance' |
StayUprightConstraintSetup | RB_StayUprightSetup'UTGame.Default__UTWeaponPawn:MyStayUprightSetup' |
Subobjects
CollisionCylinder
Class: Engine.CylinderComponent
Inherits from: UTVehicleBase.CollisionCylinder
Property | Value |
---|---|
BlockActors | False |
BlockNonZeroExtent | False |
BlockZeroExtent | False |
CollideActors | False |
CollisionHeight | 0.0 |
CollisionRadius | 0.0 |
MyStayUprightConstraintInstance
Class: Engine.RB_ConstraintInstance
Inherits from: UTVehicleBase.MyStayUprightConstraintInstance
No new values.
MyStayUprightSetup
Class: Engine.RB_StayUprightSetup
Inherits from: UTVehicleBase.MyStayUprightSetup
No new values.
SVehicleMesh
Class: Engine.SkeletalMeshComponent
Inherits from: UTVehicleBase.SVehicleMesh
No new values.
Functions
Exec functions
EditUDmgFX
FixedView
Native functions
GetTargetLocation
Overrides: Vehicle.GetTargetLocation
(Description copied from Vehicle.GetTargetLocation)
Returns:
- Figure out who we are targetting.
Events
BaseChange
Overrides: Pawn.BaseChange
Event called after actor's base changes.
DriverLeave
Overrides: Vehicle.DriverLeave
Called from the Controller when player wants to get out.
HoldGameObject
Overrides: UTVehicleBase.HoldGameObject
(Description copied from UTVehicleBase.HoldGameObject)
HoldGameObject() Attach GameObject to mesh.
Parameters:
- GameObj - Game object to hold
ReplicatedEvent
Overrides: Vehicle.ReplicatedEvent
We use NetNotify to signal that critical data has been replicated. when the Vehicle, Weapon and SeatIndex have all arrived, we setup ourself up locally.
Parameters:
- VarName - Name of the variable replicated
Other instance functions
AddVelocity
Overrides: SVehicle.AddVelocity
AdjustCameraScale
Overrides: Pawn.AdjustCameraScale
moves the camera in or out
Parameters:
- bIn - If true, we should zoom the camera in
ApplyWeaponEffects
Overrides: UTVehicleBase.ApplyWeaponEffects
applies weapon effects based on the passed in bitfield
AttachDriver
Overrides: Vehicle.AttachDriver
Attach the Driver to the vehicle. If he's visible, find him a place, otherwhise hind him
Parameters:
- P - the Pawn the attach
CalcCamera
Overrides: SVehicle.CalcCamera
Caculates the Camera position. WeaponPawn's forward this to their vehicle
Parameters:
- fDeltatime - How long since the last calculation
- out_CamLoc - The final camera location (out)
- out_CamRot - The final camera rotation (out)
- out_FOV - The final FOV to use (out)
ClearFlashCount
Overrides: Pawn.ClearFlashCount
We need to pass ClearFlashCount calls to the controlling vehicle
ClearFlashLocation
Overrides: Pawn.ClearFlashLocation
We need to pass ClearFlashLocation calls to the controlling vehicle
Died
Overrides: SVehicle.Died
(Description copied from Pawn.Died)
This pawn has died.
Parameters:
- Killer - Who killed this pawn
- DamageType - What killed it
- HitLocation - Where did the hit occur
Returns:
- true if allowed
DisplayDebug
Overrides: SVehicle.DisplayDebug
General Debug information
DisplayHud
Overrides: UTVehicleBase.DisplayHud
Pass HUD Rendering to the Vehicle
DoJump
Overrides: Pawn.DoJump
DriverLeft
Overrides: UTVehicleBase.DriverLeft
Called when the driver leaves the WeaponPawn. We forward it along as a PassengerLeave call to the controlling vehicle.
DropToGround
Overrides: Pawn.DropToGround
FaceRotation
Overrides: Vehicle.FaceRotation
Vehicles ignore 'face rotation'.
GetCollisionRadius
Overrides: Pawn.GetCollisionRadius
Returns:
- the collision radius. In this case we return that of the vehicle if it exists
GetQuickPickCells
Overrides: UTVehicleBase.GetQuickPickCells
GetVehicleDrivingStatName
Overrides: UTVehicleBase.GetVehicleDrivingStatName
Statistics gathering
IncrementFlashCount
Overrides: Pawn.IncrementFlashCount
We need to pass IncreantFlashCount calls to the controlling vehicle
JumpOffPawn
Overrides: Pawn.JumpOffPawn
PlaceExitingDriver
Overrides: Vehicle.PlaceExitingDriver
Called when the vehicle needs to place an exiting driver. Forward the call to the controlling vehicle
Parameters:
- ExitingDriver - The pawn that is exiting
PossessedBy
Overrides: Vehicle.PossessedBy
Called when the controller takes possession of the WeaponPawn. Upon Possession, make sure the weapon heads to the right state and set the eye height.
Parameters:
- C - the controller taking posession
- bVehicleTransition - Will be true if this the pawn is entering/leaving a vehicle
ProcessViewRotation
Overrides: Pawn.ProcessViewRotation
(Description copied from Pawn.ProcessViewRotation)
Called from PlayerController UpdateRotation() -> ProcessViewRotation() to (pre)process player ViewRotation adds delta rot (player input), applies any limits and post-processing returns the final ViewRotation set on PlayerController
Parameters:
- DeltaTime - time since last frame
- ViewRotation - actual PlayerController view rotation
- out_DeltaRot - delta rotation to be applied on ViewRotation. Represents player's input.
Returns:
- processed ViewRotation to be set on PlayerController.
QuickPick
Overrides: UTVehicleBase.QuickPick
ServerAdjacentSeat
Overrides: UTVehicleBase.ServerAdjacentSeat
request change to adjacent vehicle seat
ServerChangeSeat
Overrides: UTVehicleBase.ServerChangeSeat
(Description copied from UTVehicleBase.ServerChangeSeat)
Called when a client is requesting a seat change
Network: Server-Side
SetBaseEyeheight
Overrides: Vehicle.SetBaseEyeheight
Set the Base Eye height. We override it here to pull it from the CameraEyeHeight variable of in the seat array
SetFiringMode
Overrides: Pawn.SetFiringMode
Set firing mode replication for remote clients trigger update notification. Network: LocalPlayer and Server
SetFlashLocation
Overrides: Pawn.SetFlashLocation
We need to pass SetFlashLocation calls to the controlling vehicle
SetMovementPhysics
Overrides: Pawn.SetMovementPhysics
TooCloseToAttack
Overrides: Pawn.TooCloseToAttack