Core.Object | +--Engine.Actor | +--Engine.Inventory | +--Engine.Powerups | +--XIII.XIIIItems | +--XIII.Photo
float
EventDist
Texture
PhotoMat
simulated
EndUse()
//_____________________________________________________________________________ // ELR called in Beginstate of Downweapon
PlayIdle()
//_____________________________________________________________________________
UseMe()
//_____________________________________________________________________________ // ELR CauseEvent
00001 //----------------------------------------------------------- 00002 // 00003 //----------------------------------------------------------- 00004 class Photo extends XIIIItems; 00005 00006 var Texture PhotoMat; 00007 var float EventDist; 00008 00009 //_____________________________________________________________________________ 00010 // ELR CauseEvent 00011 Simulated function UseMe() 00012 { 00013 local Actor A; 00014 local vector X, Y, Z; 00015 local float dist; 00016 local vector dir; 00017 00018 if ( caps(Event) != "NONE" ) 00019 { 00020 GetAxes(pawn(owner).GetViewRotation(),X,Y,Z); 00021 ForEach DynamicActors( class 'Actor', A, event ) 00022 if (normal(X) dot normal(A.Location - Owner.Location) >= 0.7) 00023 { 00024 log("triggering "$A$" w/ event "$event); 00025 00026 dir = A.Location - Owner.Location; 00027 dist = VSize(dir); 00028 if ( dist<EventDist ) 00029 A.Trigger(self, Pawn(Owner)); 00030 } 00031 } 00032 } 00033 //_____________________________________________________________________________ 00034 // ELR called in Beginstate of Downweapon 00035 simulated function EndUse() 00036 { 00037 // bDrawn=false; 00038 } 00039 00040 //_____________________________________________________________________________ 00041 simulated function PlayIdle() 00042 { 00043 // Log(self@"PlayIdle"); 00044 PlayAnim('Wait', 1.0); 00045 } 00046 00047 00048 00049 defaultproperties 00050 { 00051 EventDist=200.000000 00052 MeshName="XIIIDeco.FPSPhotoKimM" 00053 IconNumber=27 00054 sItemName="Photograph" 00055 bCanHaveMultipleCopies=True 00056 bAutoActivate=True 00057 bActivatable=True 00058 ExpireMessage="Photography was used." 00059 InventoryGroup=6 00060 bDisplayableInv=True 00061 PickupClass=Class'XIII.PhotoPick' 00062 Charge=1 00063 PlayerViewOffset=(X=8.600000,Y=6.000000,Z=-5.800000) 00064 BobDamping=0.975000 00065 ItemName="PHOTOGRAPHY" 00066 Rotation=(Roll=-15536) 00067 }