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 00120 00121 00122 00123 00124 00125 00126 00127 00128 00129 00130 00131 00132 00133 00134 |
//============================================================================= // ASVehicle_SpaceFighter_Skaarj //============================================================================= class ASVehicle_SpaceFighter_Skaarj extends ASVehicle_SpaceFighter_Human; function vector GetBotError(vector StartLocation) { local vector Err; Err = Super.GetBotError(StartLocation); if ( (Level.NetMode != NM_Standalone) || (PlayerReplicationInfo == None) || (PlayerReplicationInfo.Team != Level.GetLocalPlayerController().PlayerReplicationInfo.Team) ) return Err; return 1.1 * Err; } simulated function AnimateSkelMesh( float SpeedPct ) { SetAnimFrame( FClamp(SpeedPct, 0.f, 0.9f) ); } simulated function PlayTakeOff() { // Play Take Off animation PlayAnim('TakeOff', 0.1); } simulated function DrawHealthInfo( Canvas C, PlayerController PC ) { class'HUD_Assault'.static.DrawCustomHealthInfo( C, PC, true ); } static function StaticPrecache(LevelInfo L) { super.StaticPrecache( L ); L.AddPrecacheMaterial( Material'AS_Vehicles_TX.SpaceFighter.SpaceFighter_Skaarj1' ); // Skins L.AddPrecacheMaterial( Material'AS_Vehicles_TX.SpaceFighter.SpaceFighter_Skaarj2' ); L.AddPrecacheMaterial( Material'ExplosionTex.Framed.exp7_frames' ); // Explosion Effect L.AddPrecacheMaterial( Material'EpicParticles.Flares.SoftFlare' ); L.AddPrecacheMaterial( Material'AW-2004Particles.Fire.MuchSmoke2t' ); L.AddPrecacheMaterial( Material'AS_FX_TX.Trails.Trail_red' ); L.AddPrecacheMaterial( Material'ExplosionTex.Framed.exp1_frames' ); L.AddPrecacheMaterial( Material'EmitterTextures.MultiFrame.rockchunks02' ); L.AddPrecacheMaterial( Texture'AS_FX_TX.Trails.Trail_blue' ); // FX L.AddPrecacheMaterial( Texture'AS_FX_TX.Trails.Trail_red' ); L.AddPrecacheMaterial( Texture'EpicParticles.Flares.FlashFlare1' ); L.AddPrecacheMaterial( Texture'AS_FX_TX.Flares.Laser_Flare' ); L.AddPrecacheMaterial( Material'XEffectMat.RedShell' ); L.AddPrecacheMaterial( Material'XEffectMat.BlueShell' ); L.AddPrecacheMaterial( Texture'AS_FX_TX.Beams.LaserTex' ); L.AddPrecacheMaterial( Texture'EpicParticles.Flares.FlickerFlare' ); L.AddPrecacheMaterial( Texture'EpicParticles.Smoke.StellarFog1aw' ); L.AddPrecacheMaterial( Texture'XGameShaders.Trans.TransRingEnergy' ); L.AddPrecacheMaterial( Texture'AS_FX_TX.HUD.SpaceHUD_Weapon_Grey' ); // HUD L.AddPrecacheMaterial( Texture'InterfaceContent.WhileSquare' ); L.AddPrecacheMaterial( Texture'AS_FX_TX.HUD.SpaceHUD_Weapon_Solid' ); L.AddPrecacheMaterial( Texture'AS_FX_TX.HUD.SpaceHUD_Speed_Solid' ); L.AddPrecacheMaterial( Texture'AS_FX_TX.HUD.AssaultRadar' ); L.AddPrecacheStaticMesh( StaticMesh'WeaponStaticMesh.Shield' ); L.AddPrecacheStaticMesh( StaticMesh'AS_Vehicles_SM.Vehicles.SpaceFighter_Skaarj_FP' ); L.AddPrecacheStaticMesh( StaticMesh'AS_Weapons_SM.Projectiles.Skaarj_Energy' ); } simulated function UpdatePrecacheStaticMeshes() { Level.AddPrecacheStaticMesh( StaticMesh'WeaponStaticMesh.Shield' ); Level.AddPrecacheStaticMesh( StaticMesh'AS_Vehicles_SM.Vehicles.SpaceFighter_Skaarj_FP' ); Level.AddPrecacheStaticMesh( StaticMesh'AS_Weapons_SM.Projectiles.Skaarj_Energy' ); super.UpdatePrecacheStaticMeshes(); } simulated function UpdatePrecacheMaterials() { Level.AddPrecacheMaterial( Material'AS_Vehicles_TX.SpaceFighter.SpaceFighter_Skaarj1' ); // Skins Level.AddPrecacheMaterial( Material'AS_Vehicles_TX.SpaceFighter.SpaceFighter_Skaarj2' ); Level.AddPrecacheMaterial( Material'ExplosionTex.Framed.exp7_frames' ); // Explosion Effect Level.AddPrecacheMaterial( Material'EpicParticles.Flares.SoftFlare' ); Level.AddPrecacheMaterial( Material'AW-2004Particles.Fire.MuchSmoke2t' ); Level.AddPrecacheMaterial( Material'AS_FX_TX.Trails.Trail_red' ); Level.AddPrecacheMaterial( Material'ExplosionTex.Framed.exp1_frames' ); Level.AddPrecacheMaterial( Material'EmitterTextures.MultiFrame.rockchunks02' ); Level.AddPrecacheMaterial( Texture'AS_FX_TX.Trails.Trail_blue' ); // FX Level.AddPrecacheMaterial( Texture'AS_FX_TX.Trails.Trail_red' ); Level.AddPrecacheMaterial( Texture'EpicParticles.Flares.FlashFlare1' ); Level.AddPrecacheMaterial( Texture'AS_FX_TX.Flares.Laser_Flare' ); Level.AddPrecacheMaterial( Material'XEffectMat.RedShell' ); Level.AddPrecacheMaterial( Material'XEffectMat.BlueShell' ); Level.AddPrecacheMaterial( Texture'AS_FX_TX.Beams.LaserTex' ); Level.AddPrecacheMaterial( Texture'EpicParticles.Flares.FlickerFlare' ); Level.AddPrecacheMaterial( Texture'EpicParticles.Smoke.StellarFog1aw' ); Level.AddPrecacheMaterial( Texture'XGameShaders.Trans.TransRingEnergy' ); Level.AddPrecacheMaterial( Texture'AS_FX_TX.HUD.SpaceHUD_Weapon_Grey' ); // HUD Level.AddPrecacheMaterial( Texture'InterfaceContent.WhileSquare' ); Level.AddPrecacheMaterial( Texture'AS_FX_TX.HUD.SpaceHUD_Weapon_Solid_Skaarj' ); Level.AddPrecacheMaterial( Texture'AS_FX_TX.HUD.SpaceHUD_Speed_Solid_Skaarj' ); Level.AddPrecacheMaterial( Texture'AS_FX_TX.HUD.AssaultRadar' ); super.UpdatePrecacheMaterials(); } //============================================================================= // defaultproperties //============================================================================= defaultproperties { bHumanShip=Falsch FlyingAnim="Flying" TrailOffset=67.000000 RocketOffset=(X=0.000000,Z=-20.000000) WeaponInfoTexture=Texture'AS_FX_TX.HUD.SpaceHUD_Weapon_Solid_Skaarj' SpeedInfoTexture=Texture'AS_FX_TX.HUD.SpaceHUD_Speed_Solid_Skaarj' DefaultWeaponClassName="UT2k4AssaultFull.Weapon_SpaceFighter_Skaarj" VehicleProjSpawnOffset=(X=55.000000,Y=45.000000,Z=0.000000) DefaultCrosshair=Texture'Crosshairs.HUD.Crosshair_Triad3' FPCamPos=(X=-20.000000) VehicleNameString="Skaarj Spacefighter" AmbientSound=Sound'AssaultSounds.SkaarjShip.SkShipEng01' Mesh=SkeletalMesh'AS_VehiclesFull_M.SpaceFighter_Skaarj' DrawScale=0.350000 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |