Overview | Package | Class | Source | Class tree | Glossary | Deus Ex 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 |
//============================================================================= // AugTarget. //============================================================================= class AugTarget extends Augmentation; var float mpAugValue; var float mpEnergyDrain; // ---------------------------------------------------------------------------- // Network Replication // ---------------------------------------------------------------------------- replication { //Server to client function replication reliable if (Role == ROLE_Authority) SetTargetingAugStatus; } state Active { Begin: SetTargetingAugStatus(CurrentLevel,True); } function Deactivate() { Super.Deactivate(); SetTargetingAugStatus(CurrentLevel,False); } // ---------------------------------------------------------------------- // SetTargetingAugStatus() // ---------------------------------------------------------------------- simulated function SetTargetingAugStatus(int Level, bool IsActive) { DeusExRootWindow(Player.rootWindow).hud.augDisplay.bTargetActive = IsActive; DeusExRootWindow(Player.rootWindow).hud.augDisplay.targetLevel = Level; } simulated function PreBeginPlay() { Super.PreBeginPlay(); // If this is a netgame, then override defaults if ( Level.NetMode != NM_StandAlone ) { LevelValues[3] = mpAugValue; EnergyRate = mpEnergyDrain; AugmentationLocation = LOC_Subdermal; } } defaultproperties { mpAugValue=-0.125000 mpEnergyDrain=40.000000 EnergyRate=40.000000 Icon=Texture'DeusExUI.UserInterface.AugIconTarget' smallIcon=Texture'DeusExUI.UserInterface.AugIconTarget_Small' AugmentationName="Targeting" Description="Image-scaling and recognition provided by multiplexing the optic nerve with doped polyacetylene 'quantum wires' not only increases accuracy, but also delivers limited situational info about a target.|n|nTECH ONE: Slight increase in accuracy and general target information.|n|nTECH TWO: Additional increase in accuracy and more target information.|n|nTECH THREE: Additional increase in accuracy and specific target information.|n|nTECH FOUR: Additional increase in accuracy and telescopic vision." MPInfo="When active, all weapon skills are effectively increased by one level, and you can see an enemy's health. The skill increases allow you to effectively surpass skill level 3. Energy Drain: Moderate" LevelValues(0)=-0.050000 LevelValues(1)=-0.100000 LevelValues(2)=-0.150000 LevelValues(3)=-0.200000 AugmentationLocation=LOC_Eye MPConflictSlot=4 } |
Overview | Package | Class | Source | Class tree | Glossary | Deus Ex UnrealScript Documentation |
previous class next class | frames no frames |