Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UTGame.DemoPawn


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
/**
 * DemoPawn
 * Demo pawn demonstrating animating character.
 *
 * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.
 */

class DemoPawn extends GamePawn
	config(Game);

var(Mesh) SkeletalMeshComponent 	HeadMesh;

simulated event PostBeginPlay()
{
	super.PostBeginPlay();

	if ( HeadMesh != None )
		HeadMesh.SetShadowParent(Mesh);
	SetBaseEyeheight();
}

simulated function bool CalcCamera( float fDeltaTime, out vector out_CamLoc, out rotator out_CamRot, out float out_FOV )
{
	return false;
}

simulated function SetBaseEyeheight()
{
	local string MapName;

	// hack for old larger scale demo levels (PhysicsExpanded, EffectsDemo, CityStreet
	MapName = WorldInfo.GetLocalURL();

	// strip the UEDPIE_ from the filename, if it exists (meaning this is a Play in Editor game)
	if (Left(MapName, 7) ~= "UEDPIE_")
	{
		MapName = Right(MapName, Len(MapName) - 7);
	}
	if ( !bIsCrouched && ((Left(MapName,15) ~= "PhysicsExpanded") || (Left(MapName,11) ~= "EffectsDemo") || (Left(MapName,10) ~= "CityStreet"))  )
	{
		BaseEyeheight = 96;
	}
	else
	{
		super.SetBaseEyeheight();
	}
}

defaultproperties
{
   BaseEyeHeight=38.000000
   EyeHeight=38.000000
   Begin Object Class=SkeletalMeshComponent Name=DemoPawnSkeletalMeshComponent ObjName=DemoPawnSkeletalMeshComponent Archetype=SkeletalMeshComponent'Engine.Default__SkeletalMeshComponent'
      SkeletalMesh=SkeletalMesh'CH_IronGuard_Male.Mesh.SK_CH_IronGuard_MaleA'
      AnimTreeTemplate=AnimTree'CH_AnimHuman_Tree.AT_CH_Human'
      PhysicsAsset=PhysicsAsset'CH_AnimHuman.Mesh.SK_CH_BaseMale_Physics'
      AnimSets(0)=AnimSet'CH_AnimHuman.Anims.K_AnimHuman_BaseMale'
      bOwnerNoSee=True
      BlockRigidBody=True
      Translation=(X=0.000000,Y=0.000000,Z=8.000000)
      Name="DemoPawnSkeletalMeshComponent"
      ObjectArchetype=SkeletalMeshComponent'Engine.Default__SkeletalMeshComponent'
   End Object
   Mesh=DemoPawnSkeletalMeshComponent
   Begin Object Class=CylinderComponent Name=CollisionCylinder ObjName=CollisionCylinder Archetype=CylinderComponent'GameFramework.Default__GamePawn:CollisionCylinder'
      CollisionHeight=44.000000
      CollisionRadius=21.000000
      ObjectArchetype=CylinderComponent'GameFramework.Default__GamePawn:CollisionCylinder'
   End Object
   CylinderComponent=CollisionCylinder
   Components(0)=CollisionCylinder
   Begin Object Class=ArrowComponent Name=Arrow ObjName=Arrow Archetype=ArrowComponent'GameFramework.Default__GamePawn:Arrow'
      ObjectArchetype=ArrowComponent'GameFramework.Default__GamePawn:Arrow'
   End Object
   Components(1)=Arrow
   Components(2)=DemoPawnSkeletalMeshComponent
   CollisionComponent=CollisionCylinder
   Name="Default__DemoPawn"
   ObjectArchetype=GamePawn'GameFramework.Default__GamePawn'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: tr 31-1-2018 17:18:34.000 - Creation time: sk 18-3-2018 10:01:06.962 - Created with UnCodeX