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 |
//============================================================================= // xDOMMonitor - Domination monitor (two screens). //============================================================================= class xDOMMonitor extends xMonitor abstract; var() Material RedShader; var() Material BlueShader; var() Material ActiveShader; var() Material InactiveShader; var() Material ActiveTeamShader; var() Material InactiveTeamShader; var byte NewTeam; simulated function UpdateForTeam() { if ( NewTeam == 254 ) { Skins[2] = InactiveTeamShader; Skins[3] = InactiveShader; } else if ( NewTeam == 0 ) { Skins[2] = RedTeamShader; Skins[3] = RedShader; } else if ( NewTeam == 1 ) { Skins[2] = BlueTeamShader; Skins[3] = BlueShader; } else { Skins[2] = ActiveTeamShader; Skins[3] = ActiveShader; } if ( (GRI != None) && (NewTeam < 2) && !Level.IsSoftwareRendering() ) Combiner(Shader(Skins[2]).SelfIllumination).Material2 = GRI.TeamSymbols[NewTeam]; } simulated function Trigger( actor Other, pawn EventInstigator ) { local xDomPoint DPoint; DPoint = xDomPoint(Other); if ( DPoint != None ) { // is the point disabled? if (!DPoint.bControllable) NewTeam = 254; else if (DPoint.ControllingTeam == None) NewTeam = 255; else NewTeam = DPoint.ControllingTeam.TeamIndex; UpdateForTeam(); } } defaultproperties { Team=255 NewTeam=255 DrawScale=0.50000 StaticMesh=StaticMesh'XGame_StaticMeshes.DOMMonitor' ActiveTeamShader=Material'GreyScreenS' InactiveTeamShader=Material'BlackScreenS' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |