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 |
class ExperiencePickup extends TournamentPickUp; var int Amount; var MutUT2004RPG RPGMut; function PostBeginPlay() { Super.PostBeginPlay(); RPGMut = class'MutUT2004RPG'.static.GetRPGMutator(Level.Game); } function float DetourWeight(Pawn Other, float PathWeight) { return MaxDesireability; } event float BotDesireability(Pawn Bot) { if (Bot.Controller.bHuntPlayer) return 0; return MaxDesireability; } static function string GetLocalString(optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2) { return Default.PickupMessage$Default.Amount; } auto state Pickup { function Touch(Actor Other) { local Pawn P; local RPGStatsInv StatsInv; if (ValidTouch(Other)) { P = Pawn(Other); StatsInv = RPGStatsInv(P.FindInventoryType(class'RPGStatsInv')); if (StatsInv == None) return; StatsInv.DataObject.Experience += Amount; RPGMut.CheckLevelUp(StatsInv.DataObject, P.PlayerReplicationInfo); AnnouncePickup(P); SetRespawn(); } } } defaultproperties { Amount=1 MaxDesireability=0.300000 RespawnTime=30.000000 PickupMessage="Experience +" PickupSound=Sound'PickupSounds.AdrenelinPickup' PickupForce="AdrenelinPickup" DrawType=DT_StaticMesh StaticMesh=StaticMesh'XPickups_rc.AdrenalinePack' Physics=PHYS_Rotating DrawScale=0.075000 AmbientGlow=255 ScaleGlow=0.600000 Style=STY_AlphaZ CollisionRadius=32.000000 CollisionHeight=23.000000 Mass=10.000000 RotationRate=(Yaw=24000) } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |