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 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 |
//============================================================================= // WeaponMod //============================================================================= class WeaponMod extends DeusExPickup abstract; var() Float WeaponModifier; var localized String DragToUpgrade; // ---------------------------------------------------------------------- // Network Replication // ---------------------------------------------------------------------- replication { // client to server function call reliable if (Role < ROLE_Authority) ApplyMod, DestroyMod; } function PostBeginPlay() { Super.PostBeginPlay(); LoopAnim('Cycle'); } // ---------------------------------------------------------------------- // ApplyMod() // // Applies the modification to the weapon. Unique for each different // type of weapon mod class // ---------------------------------------------------------------------- function ApplyMod(DeusExWeapon weapon) { } // ---------------------------------------------------------------------- // CanUpgradeWeapon() // ---------------------------------------------------------------------- function bool CanUpgradeWeapon(DeusExWeapon weapon) { } // ---------------------------------------------------------------------- // DestroyMod() // Destroys the mod. Just placed here for propagation. // ---------------------------------------------------------------------- function DestroyMod() { Destroy(); } // ---------------------------------------------------------------------- // UpdateInfo() // // Describes the capabilities of this weapon mod, // for instance, "Increases base accuracy by 20%" // ---------------------------------------------------------------------- simulated function bool UpdateInfo(Object winObject) { local PersonaInfoWindow winInfo; winInfo = PersonaInfoWindow(winObject); if (winInfo == None) return False; winInfo.Clear(); winInfo.SetTitle(itemName); winInfo.SetText(Description $ winInfo.CR() $ winInfo.CR()); winInfo.AppendText(DragToUpgrade); return True; } // ---------------------------------------------------------------------- // ---------------------------------------------------------------------- defaultproperties { DragToUpgrade="Drag over weapon to upgrade. Weapons highlighted in GREEN can be upgraded with this mod." PlayerViewOffset=(X=30.000000,Z=-12.000000) PlayerViewMesh=LodMesh'DeusExItems.WeaponMod' PickupViewMesh=LodMesh'DeusExItems.WeaponMod' ThirdPersonMesh=LodMesh'DeusExItems.WeaponMod' LandSound=Sound'DeusExSounds.Generic.PlasticHit1' largeIconWidth=34 largeIconHeight=49 Mesh=LodMesh'DeusExItems.WeaponMod' CollisionRadius=3.500000 CollisionHeight=4.420000 Mass=1.000000 } |
Overview | Package | Class | Source | Class tree | Glossary | Deus Ex UnrealScript Documentation |
previous class next class | frames no frames |