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 00173 00174 00175 00176 00177 00178 00179 00180 00181 00182 00183 00184 00185 00186 00187 00188 00189 00190 00191 00192 00193 00194 00195 00196 00197 00198 00199 00200 00201 00202 00203 00204 00205 00206 00207 00208 00209 00210 00211 00212 00213 00214 00215 00216 00217 00218 00219 00220 00221 00222 00223 00224 00225 00226 00227 00228 00229 00230 00231 00232 00233 00234 00235 00236 00237 00238 00239 00240 |
/* -------------------------------------------------------------- KF_StoryInvPickupSpot -------------------------------------------------------------- When placing Inventory Pickups in Story maps this actor should be used in place of KF_StoryInventoryPickups. Author : Alex Quick -------------------------------------------------------------- */ class KF_PlaceableStoryPickup extends xPickupBase hidecategories(PickupBase); /* Icon to render for this Pickup on the holding player's HUD */ var(Pickup_HUD) Material HUDMaterial; /* Icon to render over top of this Pickup while it's sitting on the ground */ var(Pickup_HUD) Material GroundMaterial; /* If true, don't perform line traces to determine if we should render the GroundMaterial (setting this true is an optimization) */ var(Pickup_HUD) bool bRenderIconThroughWalls; /* Modifier to apply to the holding player's groundspeed */ var(Pickup_PawnModifiers) float MovementSpeedModifier; var(Pickup_Feedback) localized string Message_Dropped; // Human readable description when dropped. var(Pickup_Feedback) localized string Message_PickedUp; var(Pickup_Feedback) localized string Message_Use; var(Pickup_Audio) Sound Sound_Dropped,Sound_PickedUp; var(Pickup_3P) vector Attachment_Offset; var(Pickup_3P) name Attachment_Bone; var(Pickup_3P) rotator Attachment_Rotation; var(Pickup_1P) bool bRender1PMesh; /* When holding this item, display it with an 'X-Ray' shader in first person */ var(Pickup_1P) bool bUseFirstPersonXRayEffect; var(Pickup_1P) rotator ViewRotationOffset; var(Pickup_1P) vector ViewLocationOffset; /* Multiplies the height of the player's jumpZ by this amount */ var(Pickup_PawnModifiers) float JumpZModifier; /* List of weapons which cannot be used when this Item is carrieed */ var(Pickup_Restrictions) array< Class<Weapon> > Weapons_Restricted; /* List of weapons which can *only* be used when this item is carried */ var(Pickup_Restrictions) array < Class<Weapon> > Weapons_Allowed; /* Changes the amount of interest ZEDs will show in the player holding this item */ var(Pickup_PawnModifiers) float AIThreatModifier; /* Number of items of this class which can be held by a pawn at once */ var(Pickup_Restrictions) int MaxHeldCopies; /* Number of Inventory blocks this item takes up of the holder's weight allowance */ var(Pickup_Restrictions) int InventoryWeight; /* Determines when the pickup actor should be spawned for this pickupspot */ enum EPickupSpawnMethod { Spawn_OnMapLoad, Spawn_OnMatchBegin, Spawn_OnTrigger, }; var(Pickup_Spawning) EPickupSpawnMethod SpawnMethod; var KF_StoryInventoryPickup MyStoryPickup; struct SCarriedEvent { var() name EventName; var() float TriggerInterval; var() int NumRepeats; var int NumTimesTriggered; var float LastTriggerTime; }; var(Events) array<SCarriedEvent> CarriedEvents; var(Events) name DroppedEvent; /* UUs per second this pickup should travel at when tossed by a player */ var(Pickup_Tossing) float Pickup_TossVelocity; /* If true, orient this pickup's toss direction from the players camera instead of his pawn rotation */ var(Pickup_Tossing) bool bDropFromCameraLoc; /* Type of damage this pickup does when it smacks into something :- ) */ var(Pickup_Tossing) class<DamageType> ImpactDamType; var(Pickup_Tossing) int ImpactDamage; simulated event PostBeginPlay() { if(SpawnMethod == Spawn_OnMapLoad) { Super.PostBeginPlay(); } } function MatchStarting() { Super.MatchStarting(); if(SpawnMethod == Spawn_OnMatchBegin) { SpawnPickup(); } } event Trigger( Actor Other, Pawn EventInstigator ) { Super.Trigger(Other,EventInstigator); if(SpawnMethod == Spawn_OnTrigger) { SpawnPickup(); } } simulated function CopyPropertiesTo(KF_StoryInventoryPickup NewPickup) { // log("*******************************************************"); // log("Client Copy properties from : "@self@" to - :"@NewPickup); NewPickup.StoryPickupBase = self; NewPickup.Event = event; NewPickup.tag = tag; NewPickup.MaxHeldCopies = MaxHeldCopies; NewPickup.SetCollisionSize(CollisionRadius,CollisionHeight); NewPickup.PrePivot = PrePivot; NewPickup.PlacedRotation = Rotation; NewPickup.SetDrawType(DrawType); NewPickup.SetStaticMesh(StaticMesh); NewPickup.LinkMesh(Mesh); NewPickup.SetDrawScale(DrawScale); NewPickup.SetDrawScale3D(DrawScale3D); NewPickup.bRenderIconThroughWalls = bRenderIconThroughWalls; NewPickup.bUseFirstPersonXRayEffect = bUseFirstPersonXRayEffect; NewPickup.MovementSpeedModifier = MovementSpeedModifier; NewPickup.AIThreatModifier = AIThreatModifier; NewPickup.Weight = InventoryWeight; NewPickup.default.DroppedMessage = Message_Dropped; NewPickup.default.UseMeMessage = Message_Use; NewPickup.default.PickupMessage = Message_PickedUp; NewPickup.CarriedMaterial = HUDMaterial ; Newpickup.GroundMaterial = GroundMaterial; NewPickup.PickupSound = Sound_PickedUp; NewPickup.DroppedSound = Sound_Dropped; NewPickup.UV2Texture = UV2Texture; NewPickup.bRender1PMesh = bRender1PMesh; NewPickup.ViewLocationOffset = ViewLocationOffset; NewPickup.ViewRotationOffset = ViewRotationOffset; NewPickup.Pickup_TossVelocity = Pickup_TossVelocity; NewPickup.bDropFromCameraLoc = bDropFromCameraLoc; NewPickup.ImpactDamType = ImpactDamType; NewPickup.ImpactDamage = ImpactDamage; // Lighting NewPickup.LightType = LightType; NewPickup.LightCone = LightCone; NewPickup.LightBrightness = LightBrightness; NewPickup.LightRadius = LightRadius; NewPickup.bUseDynamicLights = bUseDynamicLights; NewPickup.LightSaturation = LightSaturation; NewPickup.bDynamicLight = bDynamicLight; NewPickup.AmbientGlow = AmbientGlow; NewPickup.LightHue = LightHue; NewPickup.bLightChanged = true; } function SpawnPickup() { if( myPickUp != none || PowerUp == None || Level.NetMode == NM_Client ) return; myPickUp = Spawn(PowerUp,,,Location,Rotation); if(myPickup != none) { myPickUp.PickUpBase = self; MyStoryPickup = KF_StoryInventoryPickup(myPickup); if(MyStoryPickup != none) { CopyPropertiesTo(MyStoryPickup); } } if (myMarker != None) { myMarker.markedItem = myPickUp; myMarker.ExtraCost = ExtraPathCost; if (myPickUp != None) myPickup.MyMarker = MyMarker; } else log("No marker for "$self); } defaultproperties { bRenderIconThroughWalls=True MovementSpeedModifier=1.000000 Message_Use="Press USE key to Pick up" Sound_Dropped=SoundGroup'Inf_Player.RagdollImpacts.BodyImpact' Sound_PickedUp=SoundGroup'KF_AxeSnd.Axe_Select' bRender1PMesh=True JumpZModifier=1.000000 AIThreatModifier=1.000000 Pickup_TossVelocity=250.000000 ImpactDamType=Class'Engine.Crushed' PowerUp=Class'KFStoryGame.KF_StoryInventoryPickup' DrawType=DT_StaticMesh StaticMesh=StaticMesh'DetailSM.Crates.WoodBox_B' bUseDynamicLights=True bStatic=False bHidden=True bNoDelete=True bNetInitialRotation=True PrePivot=(Z=10.000000) CollisionRadius=30.000000 CollisionHeight=10.000000 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |