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 |
// Custom KF Player Rep info. Now including experience levels. class KFPlayerReplicationInfo extends xPlayerReplicationInfo; //var float CurrentExperience, ExperienceLevel, ExpThreshold, var float MGAmmo; //, CurrentWeight; var bool bBuyingStuff, bStartingEquipmentChosen; var int ThreeSecondScore; // Total of the points accrued in the last 3 seconds. Cleared every 3 seconds. var int PlayerHealth; // How much heal the player has. Used by the KFscoreboard. var bool bViewingMatineeCinematic; var string SubTitle[5]; var bool bWideScreenOverlay; var class<KFVeterancyTypes> ClientVeteranSkill; var int ClientVeteranSkillLevel; var int CashThrowAmount; // Amount of cash a player throws per keypress. Set in the player settings menu var FakePlayerPawn BlamePawn; var int KillAssists; replication { // Things the server should send to the client. reliable if ( bNetDirty && (Role == Role_Authority) ) bWideScreenOverlay,SubTitle,PlayerHealth,bBuyingStuff,bStartingEquipmentChosen, ThreeSecondScore,bViewingMatineeCinematic,ClientVeteranSkill,ClientVeteranSkillLevel, KillAssists; } /* // KFTODO: Removed this hack for now, since it was making VOIP not work. Not sure what it did // in the first place - Ramm simulated function PostNetBeginPlay() { local VoiceChatReplicationInfo VRI; VoiceType = class<VoicePack>(DynamicLoadObject(VoiceTypeName,class'Class')); if ( Level.GRI != None ) Level.GRI.AddPRI(self); foreach DynamicActors(class'VoiceChatReplicationInfo', VRI) { VoiceInfo = VRI; break; } }*/ simulated function SetGRI(GameReplicationInfo GRI) { GRI.AddPRI(self); } function Timer() { local Controller C; SetTimer(0.5 + FRand(), False); UpdatePlayerLocation(); C = Controller(Owner); if( C==None ) Return; if( C.Pawn==None ) PlayerHealth = 0; else PlayerHealth = C.Pawn.Health; if( !bBot ) { if ( !bReceivedPing ) Ping = Min(int(0.25 * float(C.ConsoleCommand("GETPING"))),255); } } function Reset() { if( KFGameType(Level.Game)!=None ) { Score = KFGameType(Level.Game).StartingCash; Deaths = 0; HasFlag = None; bReadyToPlay = false; NumLives = 1; bOutOfLives = True; } else Super.Reset(); } simulated function Destroyed() { if( BlamePawn!=None ) BlamePawn.Destroy(); Super.Destroyed(); } function FakePlayerPawn GetBlamePawn() { if( BlamePawn!=None ) Return BlamePawn; BlamePawn = Spawn(Class'FakePlayerPawn',,,vect(0,0,0)); if( BlamePawn==None ) Return None; BlamePawn.PlayerReplicationInfo = Self; BlamePawn.Controller = Controller(Owner); } function ReceiveRewardForHealing( int MedicReward, KFPawn Healee ) { // only give reward if healee is not Ringmaster if( !Healee.IsA('KF_RingMasterNPC') ) { Score += MedicReward; ThreeSecondScore += MedicReward; Team.Score += MedicReward; } } defaultproperties { PlayerHealth=100 PlayerName="Fresh Meat" VoiceTypeName="KFCoreVoicePack.AussieVoice" } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |