Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 00124 00125 00126 00127 00128 00129 00130 00131 00132 00133 00134 00135 00136 00137 00138 00139 00140 00141 00142 00143 00144 00145 00146 00147 00148 00149 00150 00151 00152 00153 00154 00155 00156 00157 00158 00159 00160 00161 00162 00163 00164 00165 00166 00167 00168 00169 00170 00171 00172 |
//============================================================================= // ForcedDirVolume // used to force UTVehicles [of a certain class if wanted] in a certain direction // // Copyright 1998-2008 Epic Games, Inc. All Rights Reserved. //============================================================================= class ForcedDirVolume extends PhysicsVolume placeable native; var() bool bAllowBackwards; // allows negative forces, thus trapping vehicles on a line instead of in a direction var() class<UTVehicle> TypeToForce; var() bool bIgnoreHoverboards; var() const ArrowComponent Arrow; var() bool bDenyExit; // if the vehicle is being effected by a force volume, the player cannot exit the vehicle. var() bool bBlockPawns; var() bool bBlockSpectators; var() bool bDontBlockRedeemers; var vector ArrowDirection; var array<UTVehicle> TouchingVehicles; var float VehiclePushMag; // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) simulated function PostBeginPlay() { local string MapName; super.PostBeginPlay(); if ( !bBlockSpectators && (BrushComponent != None) ) { BrushComponent.SetTraceBlocking(false,true); } if ( Name == 'ForcedDirVolume_0' ) { // hack don't block redeemers in islander MapName = WorldInfo.GetMapName(); if ( Left(MapName, 8) ~= "ISLANDER" ) { bDontBlockRedeemers = true; } } else if ( Name == 'ForcedDirVolume_16' ) { // hack block raptors from core in confrontation MapName = WorldInfo.GetMapName(); if ( Left(MapName, 13) ~= "CONFRONTATION" ) { VehiclePushMag = 4000.0; TypeToForce = class'UTVehicle'; } } else if ( Name == 'ForcedDirVolume_17' ) { // hack block raptors from core in confrontation MapName = WorldInfo.GetMapName(); if ( Left(MapName, 13) ~= "CONFRONTATION" ) { VehiclePushMag = 4000.0; TypeToForce = class'UTVehicle'; } } } event ActorEnteredVolume(Actor Other) { if ( PlayerController(Other) != None ) { Other.FellOutOfWorld(None); } } simulated event Touch( Actor Other, PrimitiveComponent OtherComp, vector HitLocation, vector HitNormal ) { local UTVehicle V; Super.Touch(Other, OtherComp, HitLocation, HitNormal); V = UTVehicle(Other); if ((V != None) && ClassIsChildOf(V.Class, TypeToForce) && V.OnTouchForcedDirVolume(self)) { TouchingVehicles.AddItem(V); if (bDenyExit) { V.bAllowedExit = false; } } else if ( UTRemoteRedeemer(Other) != None ) { if ( !bDontBlockRedeemers ) { UTRemoteRedeemer(Other).ForcedDirectionVolume = self; } } else if ( (UTProj_SPMACamera(Other) != None) && (Other.Role == ROLE_Authority) ) { if ( !UTProj_SPMACamera(Other).bDeployed ) UTProj_SPMACamera(Other).Deploy(); } } simulated event UnTouch(Actor Other) { local bool bInAnotherVolume; local ForcedDirVolume AnotherVolume; if (ClassIsChildOf(Other.class, TypeToForce)) { TouchingVehicles.RemoveItem(UTVehicle(Other)); if (bDenyExit) { foreach Other.TouchingActors(class'ForcedDirVolume', AnotherVolume) { if (AnotherVolume.bDenyExit) { bInAnotherVolume = true; break; } } if (!bInAnotherVolume) { UTVehicle(Other).bAllowedExit = UTVehicle(Other).default.bAllowedExit; } } } } simulated function bool StopsProjectile(Projectile P) { return false; } defaultproperties { bBlockSpectators=True TypeToForce=Class'UTGame.UTVehicle' Begin Object Class=ArrowComponent Name=AC ObjName=AC Archetype=ArrowComponent'Engine.Default__ArrowComponent' ArrowColor=(B=150,G=100,R=150,A=255) ArrowSize=5.000000 AbsoluteRotation=True Name="AC" ObjectArchetype=ArrowComponent'Engine.Default__ArrowComponent' End Object Arrow=AC VehiclePushMag=1100.000000 Begin Object Class=BrushComponent Name=BrushComponent0 ObjName=BrushComponent0 Archetype=BrushComponent'Engine.Default__PhysicsVolume:BrushComponent0' BlockActors=True BlockRigidBody=True RBChannel=RBCC_Untitled4 ObjectArchetype=BrushComponent'Engine.Default__PhysicsVolume:BrushComponent0' End Object BrushComponent=BrushComponent0 Components(0)=BrushComponent0 Components(1)=AC bStatic=False bPushedByEncroachers=False bMovable=False bBlockActors=True CollisionComponent=BrushComponent0 CollisionType=COLLIDE_CustomDefault Name="Default__ForcedDirVolume" ObjectArchetype=PhysicsVolume'Engine.Default__PhysicsVolume' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |