Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class XIsAChangeling extends TournamentPickup;
- event Landed(Vector HitNormal)
- {
- Super.Landed(HitNormal);
- SetPhysics(PHYS_None);
- }
- function float DetourWeight(Pawn Other, float PathWeight)
- {
- return 0;
- }
- function float BotDesireability(Pawn Bot)
- {
- return 0;
- }
- auto state Pickup
- {
- function bool ReadyToPickup(float MaxWait)
- {
- return true;
- }
- //ValidTouch()
- //Validate touch (if valid return true to let other pick me up and trigger event).
- function bool ValidTouch( actor Other )
- {
- // make sure its a live player
- if ( (Pawn(Other) == None) || !Pawn(Other).bCanPickupInventory || (Pawn(Other).DrivenVehicle == None && Pawn(Other).Controller == None) )
- return false;
- // make sure not touching through wall
- if ( !FastTrace(Other.Location, Location) )
- return false;
- // make sure game will let player pick me up
- if( Level.Game.PickupQuery(Pawn(Other), self) )
- {
- TriggerEvent(Event, self, Pawn(Other));
- return true;
- }
- return false;
- }
- // When touched by an actor.
- function Touch( actor Other )
- {
- }
- // Make sure no pawn already touching (while touch was disabled in sleep).
- function CheckTouching()
- {
- }
- function Timer()
- {
- }
- function BeginState()
- {
- UntriggerEvent(Event, self, None);
- }
- function EndState()
- {
- }
- Begin:
- CheckTouching();
- }
- state FallingPickup
- {
- function CheckTouching()
- {
- }
- function bool ValidTouch( actor Other )
- {
- // make sure its a live player
- if ( (Pawn(Other) == None) || !Pawn(Other).bCanPickupInventory || (Pawn(Other).DrivenVehicle == None && Pawn(Other).Controller == None) )
- return false;
- // make sure not touching through wall
- if ( !FastTrace(Other.Location, Location) )
- return false;
- // make sure game will let player pick me up
- if( Level.Game.PickupQuery(Pawn(Other), self) )
- {
- TriggerEvent(Event, self, Pawn(Other));
- return true;
- }
- return false;
- }
- // When touched by an actor.
- function Touch( actor Other )
- {
- }
- function Timer()
- {
- }
- function BeginState()
- {
- }
- function EndState()
- {
- }
- }
- function Timer()
- {
- }
- function AnnouncePickup( Pawn Receiver )
- {
- }
- defaultproperties
- {
- DrawScale=0.5
- DrawType=DT_StaticMesh
- StaticMesh=StaticMesh'XGame_rc.WildcardChargerMesh'
- Physics=PHYS_None
- LifeSpan=0.0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement