There is no spoon
Difference between revisions of "UE3:UTVehicle Leviathan (UT3)"
m (added native code snippet posted by Steve Polge) |
m (→Default values: updated defaults) |
||
Line 81: | Line 81: | ||
| {{tl|bUseAlternatePaths||UTVehicle internal variables}} | | {{tl|bUseAlternatePaths||UTVehicle internal variables}} | ||
| False | | False | ||
+ | |- | ||
+ | | {{tl|ChargeBarPosX||UTVehicle internal variables}} | ||
+ | | 2.4 | ||
+ | |- | ||
+ | | {{tl|ChargeBarPosY||UTVehicle internal variables}} | ||
+ | | 5.5 | ||
|- | |- | ||
| {{tl|COMOffset||SVehicle properties}} | | {{tl|COMOffset||SVehicle properties}} | ||
Line 109: | Line 115: | ||
| {{tl|EyeHeight||Pawn}} | | {{tl|EyeHeight||Pawn}} | ||
| 0.0 | | 0.0 | ||
+ | |- | ||
+ | | {{tl|GreedCoinBonus||UTVehicle internal variables}} | ||
+ | | 10 | ||
|- | |- | ||
| {{tl|Health||Pawn}} | | {{tl|Health||Pawn}} | ||
| 6500 | | 6500 | ||
+ | |- | ||
+ | | {{tl|HeroBonus||UTVehicle internal variables}} | ||
+ | | 5.0 | ||
|- | |- | ||
| {{tl|HornIndex||UTVehicle internal variables}} | | {{tl|HornIndex||UTVehicle internal variables}} | ||
Line 152: | Line 164: | ||
| {{tl|OuterExplosionShakeRadius||UTVehicle internal variables}} | | {{tl|OuterExplosionShakeRadius||UTVehicle internal variables}} | ||
| 4000.0 | | 4000.0 | ||
+ | |- | ||
+ | | {{tl|PassengerTeamBeaconOffset||UTVehicle internal variables}} | ||
+ | | | ||
+ | {| class="list defaults" | ||
+ | ! {{tl|Vector||Object structs|Member}} | ||
+ | ! Value | ||
+ | |- | ||
+ | | X | ||
+ | | 250.0 | ||
+ | |- | ||
+ | | Y | ||
+ | | -140.0 | ||
+ | |- | ||
+ | | Z | ||
+ | | 250.0 | ||
+ | |} | ||
|- | |- | ||
| {{tl|RespawnTime||UTVehicle internal variables}} | | {{tl|RespawnTime||UTVehicle internal variables}} | ||
Line 179: | Line 207: | ||
| {{tl|UprightTorqueStrength||SVehicle properties}} | | {{tl|UprightTorqueStrength||SVehicle properties}} | ||
| 500.0 | | 500.0 | ||
+ | |- | ||
+ | | {{tl|VehicleIndex||UTVehicle internal variables}} | ||
+ | | 5 | ||
|- | |- | ||
| {{tl|VehicleNameString||UTVehicle internal variables}} | | {{tl|VehicleNameString||UTVehicle internal variables}} |
Latest revision as of 06:54, 16 August 2009
Object >> Actor >> Pawn >> Vehicle >> SVehicle >> UTVehicleBase >> UTVehicle >> UTVehicle_Deployable >> UTVehicle_Leviathan |
- Package:
- UTGame
- Direct subclass:
- UTVehicle_Leviathan_Content
Implementation for the Leviathan.
Properties[edit]
Property group 'Collision'[edit]
TurretCollision[edit]
Type: CylinderComponent
Array size: 4
Property group 'test'[edit]
StingerTurretTurnRate[edit]
Type: int
Default value: 8192
Property group 'UTVehicle_Leviathan'[edit]
MaxHitCheckDist[edit]
Type: float
Default value: 140.0
Internal variables[edit]
See UTVehicle_Leviathan internal variables.
Default values[edit]
Subobjects[edit]
CollisionCylinder[edit]
Class: Engine.CylinderComponent
Inherits from: UTVehicle_Deployable.CollisionCylinder
No new values.
MyLightEnvironment[edit]
Class: Engine.DynamicLightEnvironmentComponent
Inherits from: UTVehicle_Deployable.MyLightEnvironment
Property | Value |
---|---|
NumVolumeVisibilitySamples | 4 |
MyStayUprightConstraintInstance_8[edit]
Class: Engine.RB_ConstraintInstance
No new values.
MyStayUprightSetup_8[edit]
Class: Engine.RB_StayUprightSetup
No new values.
SimObject[edit]
Class: UTGame.UTVehicleSimCar
Property | Value | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ChassisTorqueScale | 0.2 | ||||||||||||||||||||||||||||||||||||||||||||
EngineBrakeFactor | 0.02 | ||||||||||||||||||||||||||||||||||||||||||||
EngineRPMCurve |
|
||||||||||||||||||||||||||||||||||||||||||||
FrontalCollisionGripFactor | 0.18 | ||||||||||||||||||||||||||||||||||||||||||||
HardTurnMotorTorque | 1.0 | ||||||||||||||||||||||||||||||||||||||||||||
LSDFactor | 1.0 | ||||||||||||||||||||||||||||||||||||||||||||
MaxBrakeTorque | 8.0 | ||||||||||||||||||||||||||||||||||||||||||||
MaxSteerAngleCurve |
|
||||||||||||||||||||||||||||||||||||||||||||
SteerSpeed | 50.0 | ||||||||||||||||||||||||||||||||||||||||||||
StopThreshold | 500.0 | ||||||||||||||||||||||||||||||||||||||||||||
TorqueVSpeedCurve |
|
||||||||||||||||||||||||||||||||||||||||||||
WheelSuspensionBias | 0.7 | ||||||||||||||||||||||||||||||||||||||||||||
WheelSuspensionDamping | 75.0 | ||||||||||||||||||||||||||||||||||||||||||||
WheelSuspensionStiffness | 50.0 |
SVehicleMesh[edit]
Class: Engine.SkeletalMeshComponent
Inherits from: UTVehicle_Deployable.SVehicleMesh
Property | Value | ||||||||
---|---|---|---|---|---|---|---|---|---|
LightEnvironment | DynamicLightEnvironmentComponent'UTGame.Default__UTVehicle_Leviathan:MyLightEnvironment' | ||||||||
RBCollideWithChannels |
|
Functions[edit]
Native functions[edit]
CheckActiveTurret[edit]
GetTargetLocation[edit]
Overrides: Vehicle.GetTargetLocation
(Description copied from Vehicle.GetTargetLocation)
Returns:
- Figure out who we are targetting.
Native implementation:
FVector AUTVehicle_Leviathan::GetTargetLocation(AActor* RequestedBy, UBOOL bRequestAlternateLoc) const { if ( !RequestedBy ) return Super::GetTargetLocation(); const INT NearestTurret = CheckActiveTurret(RequestedBy->Location, 0.f); if ( NearestTurret >= 0 ) { return TurretCollision[NearestTurret]->LocalToWorld.GetOrigin() + FVector(0.f, 0.f, 45.f); } else { return Super::GetTargetLocation(); } }
TurretAlive[edit]
Events[edit]
CanDeploy[edit]
Overrides: UTVehicle_Deployable.CanDeploy
(Description copied from UTVehicle_Deployable.CanDeploy)
Returns:
- true if this vehicle can deploy
ContinueOnFoot[edit]
Overrides: UTVehicle.ContinueOnFoot
(Description copied from UTVehicle.ContinueOnFoot)
ContinueOnFoot() - used by AI Called from route finding if route can only be continued on foot.
Returns:
- true if driver left vehicle
PostBeginPlay[edit]
Overrides: UTVehicle_Deployable.PostBeginPlay
Initialization
ReplicatedEvent[edit]
Overrides: UTVehicle_Deployable.ReplicatedEvent
(Description copied from UTVehicle.ReplicatedEvent)
This event is triggered when a repnotify variable is received
Parameters:
- VarName - The name of the variable replicated
RigidBodyCollision[edit]
Overrides: UTVehicle.RigidBodyCollision
(Description copied from Actor.RigidBodyCollision)
Called when a PrimitiveComponent this Actor owns has:
-bNotifyRigidBodyCollision set to true -ScriptRigidBodyCollisionThreshold > 0 -it is involved in a physics collision where the relative velocity exceeds ScriptRigidBodyCollisionThreshold
Parameters:
- HitComponent - the component of this Actor that collided
- OtherComponent - the other component that collided
- RigidCollisionData - information on the collision itslef, including contact points
- ContactIndex - the element in each ContactInfos' ContactVelocity and PhysMaterial arrays that corresponds to this Actor/HitComponent
TakeDamage[edit]
Overrides: UTVehicle.TakeDamage
(Description copied from UTVehicle.TakeDamage)
See: Actor.TakeDamage()
Other instance functions[edit]
See UTVehicle_Leviathan instance functions.
States[edit]
Deployed[edit]
Deployed.CheckStability[edit]
Overrides: UTVehicle_Deployable.Deployed.CheckStability
traces down to the ground from the wheels and undeploys the vehicle if wheels are too far off the ground