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 |
//============================================================================= // Player start location. //============================================================================= class PlayerStart extends Engine.PlayerStart placeable; var() editdisplay(displayActorLabel) editcombotype(enumTeamInfo) TeamInfo team "PlayerStart's team"; var() float invincibleDelay "The amount of time the player will be invincible for after spawning"; // Observer-specific flags var() bool bObserverStart "When true, this start point is used for observers (and only observers)"; var() bool bLockObserverLocation "If bObserverStart is true and this flag is set, observers who spawn here will be able to rotate but not move (NOT YET IMPLEMENTED)"; var() editcombotype(enumBaseInfo) editdisplay(displayActorLabel) BaseInfo baseInfo "Specifies the BaseInfo object that this playerstart belongs to. Overrides the 'team' member and can be 'None'."; var() bool bDisallowEquipmentDropOnDeath; // defaultPawnClassName // return the default pawn class for the start point function string defaultPawnClassName() { return ""; } function onPlayerSpawned(Controller aPlayer) { local Character c; c = Character(aPlayer.Pawn); if (c == None) return; c.bDisallowEquipmentDropOnDeath = bDisallowEquipmentDropOnDeath; if (MultiplayerGameInfo(Level.Game) != None && !MultiplayerGameInfo(Level.Game).IsInState('GamePhase')) return; // Withdraw carryables if applicable if (baseInfo != None) { if (baseInfo.spawnArray != None) baseInfo.spawnArray.PlayerSpawned(); if (baseInfo.container != None) { c.numPermanentCarryables = baseInfo.container.numWithdrawnPerSpawn; baseInfo.container.onPlayerSpawned(c); } else c.numPermanentCarryables = 0; } } function bool canRespawn() { if (baseInfo != None && baseInfo.container != None) return baseInfo.container.allowSpawn(); return true; } // enumTeamInfo // List all team info objects in the editor function enumTeamInfo(Engine.LevelInfo l, out Array<TeamInfo> s) { local TeamInfo t; ForEach l.AllActors(class'TeamInfo', t) { s[s.Length] = t; } } // displayActorLabel // Display an actor reference's label in the editor function string displayActorLabel(Actor t) { return string(t.label); } function enumBaseInfo(Engine.LevelInfo l, Array<BaseInfo> a) { local BaseInfo b; ForEach DynamicActors(class'BaseInfo', b) { a[a.length] = b; } } defaultproperties { bPrimary=true bEnabled=true bSinglePlayer=True bCoop=True bDirectional=True Texture=Texture'Engine_res.S_Player' invincibleDelay=5.0 bObserverStart = false bLockObserverLocation = false } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |