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

UTGame.UTClientSideWeaponPawn


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
/**
 *
 * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.
 */


/** used on non-owning clients when driving a UTWeaponPawn, as those aren't replicated for performance reasons
 * but lots of code looks for Pawn.DrivenVehicle so we need something there
 */
class UTClientSideWeaponPawn extends UTWeaponPawn;

simulated function PreBeginPlay();

simulated function AttachDriver(Pawn P)
{
	Driver = P;
	bDriving = true;
	Super.AttachDriver(P);
}

simulated function DetachDriver(Pawn P)
{
	Super.DetachDriver(P);
	Destroy();
}

simulated function Tick(float DeltaTime)
{
	Super.Tick(DeltaTime);

	// make sure we get destroyed when no longer in use
	if (Driver == None || Driver.bDeleteMe || Driver.DrivenVehicle != self)
	{
		Destroy();
	}
}

defaultproperties
{
   Begin Object Class=RB_StayUprightSetup Name=MyStayUprightSetup ObjName=MyStayUprightSetup Archetype=RB_StayUprightSetup'UTGame.Default__UTWeaponPawn:MyStayUprightSetup'
      ObjectArchetype=RB_StayUprightSetup'UTGame.Default__UTWeaponPawn:MyStayUprightSetup'
   End Object
   StayUprightConstraintSetup=RB_StayUprightSetup'UTGame.Default__UTClientSideWeaponPawn:MyStayUprightSetup'
   Begin Object Class=RB_ConstraintInstance Name=MyStayUprightConstraintInstance ObjName=MyStayUprightConstraintInstance Archetype=RB_ConstraintInstance'UTGame.Default__UTWeaponPawn:MyStayUprightConstraintInstance'
      ObjectArchetype=RB_ConstraintInstance'UTGame.Default__UTWeaponPawn:MyStayUprightConstraintInstance'
   End Object
   StayUprightConstraintInstance=RB_ConstraintInstance'UTGame.Default__UTClientSideWeaponPawn:MyStayUprightConstraintInstance'
   Begin Object Class=SkeletalMeshComponent Name=SVehicleMesh ObjName=SVehicleMesh Archetype=SkeletalMeshComponent'UTGame.Default__UTWeaponPawn:SVehicleMesh'
      ObjectArchetype=SkeletalMeshComponent'UTGame.Default__UTWeaponPawn:SVehicleMesh'
   End Object
   Mesh=SVehicleMesh
   Begin Object Class=CylinderComponent Name=CollisionCylinder ObjName=CollisionCylinder Archetype=CylinderComponent'UTGame.Default__UTWeaponPawn:CollisionCylinder'
      ObjectArchetype=CylinderComponent'UTGame.Default__UTWeaponPawn:CollisionCylinder'
   End Object
   CylinderComponent=CollisionCylinder
   Components(0)=CollisionCylinder
   Components(1)=SVehicleMesh
   CollisionComponent=SVehicleMesh
   Name="Default__UTClientSideWeaponPawn"
   ObjectArchetype=UTWeaponPawn'UTGame.Default__UTWeaponPawn'
}

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