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 00135 00136 00137 00138 00139 00140 00141 00142 00143 00144 00145 00146 00147 00148 00149 00150 00151 00152 00153 00154 00155 00156 00157 00158 00159 00160 00161 00162 00163 00164 00165 00166 00167 00168 00169 00170 00171 00172 00173 00174 00175 00176 00177 00178 00179 00180 00181 00182 00183 00184 00185 00186 00187 00188 00189 00190 00191 00192 00193 00194 00195 00196 00197 00198 00199 00200 00201 00202 00203 00204 00205 00206 00207 00208 00209 00210 00211 00212 00213 00214 00215 00216 00217 00218 00219 00220 00221 00222 00223 00224 00225 00226 00227 00228 00229 00230 00231 00232 00233 00234 00235 00236 00237 00238 00239 00240 00241 00242 00243 00244 00245 00246 00247 00248 00249 00250 00251 00252 00253 00254 00255 00256 00257 00258 00259 00260 00261 00262 00263 00264 00265 00266 00267 00268 00269 00270 00271 00272 00273 00274 00275 00276 00277 00278 00279 00280 00281 00282 00283 00284 00285 00286 00287 00288 00289 00290 00291 00292 00293 00294 00295 00296 00297 00298 00299 00300 00301 00302 00303 00304 00305 00306 00307 00308 00309 00310 00311 00312 00313 00314 00315 00316 00317 00318 00319 00320 00321 00322 00323 00324 00325 00326 00327 00328 00329 00330 00331 00332 00333 |
//----------------------------------------------------------- // //----------------------------------------------------------- class ONSShockTank extends ONSWheeledCraft; function bool ImportantVehicle() { return true; } function ShouldTargetMissile(Projectile P) { local AIController C; C = AIController(Controller); if ( (C != None) && (C.Skill >= 2.0) ) ONSShockTankCannon(Weapons[0]).ShieldAgainstIncoming(P); } function bool Dodge(eDoubleClickDir DoubleClickMove) { ONSShockTankCannon(Weapons[0]).ShieldAgainstIncoming(); return false; } function VehicleCeaseFire(bool bWasAltFire) { Super.VehicleCeaseFire(bWasAltFire); if (bWasAltFire && ONSShockTankCannon(Weapons[ActiveWeapon]) != None) ONSShockTankCannon(Weapons[ActiveWeapon]).CeaseAltFire(); } event TakeDamage(int Damage, Pawn EventInstigator, vector HitLocation, vector Momentum, class<DamageType> DamageType) { local vector ShieldHitLocation, ShieldHitNormal; // don't take damage if should have been blocked by shield if ( (Weapons.Length > 0) && ONSShockTankCannon(Weapons[0]).bShieldActive && (ONSShockTankCannon(Weapons[0]).ShockShield != None) && (Momentum != vect(0,0,0)) && (HitLocation != Location) && (DamageType != None) && (ClassIsChildOf(DamageType,class'WeaponDamageType') || ClassIsChildOf(DamageType,class'VehicleDamageType')) && !ONSShockTankCannon(Weapons[0]).ShockShield.TraceThisActor(ShieldHitLocation,ShieldHitNormal,HitLocation,HitLocation - 2000*Normal(Momentum)) ) return; // Don't take self inflicated damage from proximity explosion if (DamageType == class'DamTypeShockTankProximityExplosion' && EventInstigator != None && EventInstigator == self) return; Super.TakeDamage(Damage, EventInstigator, HitLocation, Momentum, DamageType); } simulated function vector GetTargetLocation() { return Location + vect(0,0,1)*CollisionHeight; } static function StaticPrecache(LevelInfo L) { Super.StaticPrecache(L); L.AddPrecacheMaterial(Material'ONSBPTextures.Skins.PaladinGreen'); L.AddPrecacheMaterial(Material'ONSBPTextures.Skins.PaladinTan'); L.AddPrecacheMaterial(Material'AW-2004Particles.Fire.SmokeFragment'); L.AddPrecacheMaterial(Material'AW-2004Particles.Fire.NapalmSpot'); L.AddPrecacheMaterial(Material'AW-2004Particles.Energy.ElecPanelsP'); L.AddPrecacheMaterial(Material'AW-2004Particles.Energy.ElecPanels'); L.AddPrecacheMaterial(Material'ExplosionTex.Framed.exp2_framesP'); L.AddPrecacheMaterial(Material'ONSInterface-TX.tankBarrelAligned'); L.AddPrecacheMaterial(Material'AW-2k4XP.Weapons.ShockTankEffectCore2'); L.AddPrecacheMaterial(Material'AW-2k4XP.Weapons.ShockTankEffectSwirl'); L.AddPrecacheMaterial(Material'AW-2k4XP.Weapons.ShockBallTrail'); L.AddPrecacheMaterial(Material'AW-2k4XP.Weapons.ShockTankEffectCore2a'); L.AddPrecacheMaterial(Material'AW-2k4XP.Weapons.ShockRingTex'); L.AddPrecacheMaterial(Material'AW-2k4XP.Weapons.ShockTankEffectCore'); L.AddPrecacheMaterial(Material'AW-2004Particles.Energy.SmoothRing'); L.AddPrecacheMaterial(Material'AW-2004Particles.Fire.Ripples1P'); L.AddPrecacheMaterial(Material'AW-2004Particles.Fire.Ripples2P'); L.AddPrecacheMaterial(Material'AW-2004Particles.Weapons.BoloBlob'); L.AddPrecacheMaterial(Material'AW-2k4XP.Weapons.ElectricShockTexG'); L.AddPrecacheMaterial(Material'AW-2k4XP.Weapons.ElectricShockTexG2'); L.AddPrecacheMaterial(Material'VehicleFX.Particles.DustyCloud2'); L.AddPrecacheMaterial(Material'VMParticleTextures.DirtKICKGROUP.dirtKICKTEX'); L.AddPrecacheMaterial(Material'AW-2004Particles.Weapons.SoftFade'); L.AddPrecacheMaterial(Material'AbaddonArchitecture.Base.bas27go'); } simulated function UpdatePrecacheStaticMeshes() { Super.UpdatePrecacheStaticMeshes(); } simulated function UpdatePrecacheMaterials() { Level.AddPrecacheMaterial(Material'ONSBPTextures.Skins.PaladinGreen'); Level.AddPrecacheMaterial(Material'ONSBPTextures.Skins.PaladinTan'); Level.AddPrecacheMaterial(Material'AW-2004Particles.Fire.SmokeFragment'); Level.AddPrecacheMaterial(Material'AW-2004Particles.Fire.NapalmSpot'); Level.AddPrecacheMaterial(Material'AW-2004Particles.Energy.ElecPanelsP'); Level.AddPrecacheMaterial(Material'AW-2004Particles.Energy.ElecPanels'); Level.AddPrecacheMaterial(Material'ExplosionTex.Framed.exp2_framesP'); Level.AddPrecacheMaterial(Material'ONSInterface-TX.tankBarrelAligned'); Level.AddPrecacheMaterial(Material'AW-2k4XP.Weapons.ShockTankEffectCore2'); Level.AddPrecacheMaterial(Material'AW-2k4XP.Weapons.ShockTankEffectSwirl'); Level.AddPrecacheMaterial(Material'AW-2k4XP.Weapons.ShockBallTrail'); Level.AddPrecacheMaterial(Material'AW-2k4XP.Weapons.ShockTankEffectCore2a'); Level.AddPrecacheMaterial(Material'AW-2k4XP.Weapons.ShockRingTex'); Level.AddPrecacheMaterial(Material'AW-2k4XP.Weapons.ShockTankEffectCore'); Level.AddPrecacheMaterial(Material'AW-2004Particles.Energy.SmoothRing'); Level.AddPrecacheMaterial(Material'AW-2004Particles.Fire.Ripples1P'); Level.AddPrecacheMaterial(Material'AW-2004Particles.Fire.Ripples2P'); Level.AddPrecacheMaterial(Material'AW-2004Particles.Weapons.BoloBlob'); Level.AddPrecacheMaterial(Material'AW-2k4XP.Weapons.ElectricShockTexG'); Level.AddPrecacheMaterial(Material'AW-2k4XP.Weapons.ElectricShockTexG2'); Level.AddPrecacheMaterial(Material'VehicleFX.Particles.DustyCloud2'); Level.AddPrecacheMaterial(Material'VMParticleTextures.DirtKICKGROUP.dirtKICKTEX'); Level.AddPrecacheMaterial(Material'AW-2004Particles.Weapons.SoftFade'); Level.AddPrecacheMaterial(Material'AbaddonArchitecture.Base.bas27go'); Super.UpdatePrecacheMaterials(); } defaultproperties { WheelSoftness=0.100000 WheelPenScale=1.200000 WheelPenOffset=0.010000 WheelRestitution=0.100000 WheelInertia=0.100000 WheelLongFrictionFunc=(Points=(,(InVal=100.000000,OutVal=1.000000),(InVal=200.000000,OutVal=0.900000),(InVal=10000000000.000000,OutVal=0.900000))) WheelLongSlip=0.001000 WheelLatSlipFunc=(Points=(,(InVal=30.000000,OutVal=0.010000),(InVal=45.000000),(InVal=10000000000.000000))) WheelLongFrictionScale=2.000000 WheelLatFrictionScale=1.500000 WheelHandbrakeSlip=0.010000 WheelHandbrakeFriction=0.100000 WheelSuspensionTravel=45.000000 WheelSuspensionOffset=-12.000000 WheelSuspensionMaxRenderTravel=45.000000 FTScale=0.020000 ChassisTorqueScale=0.200000 MinBrakeFriction=4.000000 MaxSteerAngleCurve=(Points=((OutVal=35.000000),(InVal=450.000000,OutVal=35.000000),(InVal=550.000000,OutVal=11.000000),(InVal=1000000000.000000,OutVal=11.000000))) TorqueCurve=(Points=((OutVal=27.000000),(InVal=200.000000,OutVal=30.000000),(InVal=1500.000000,OutVal=33.000000),(InVal=2800.000000))) GearRatios(0)=-0.500000 GearRatios(1)=0.400000 GearRatios(2)=0.650000 GearRatios(3)=0.850000 GearRatios(4)=1.100000 TransRatio=0.030000 ChangeUpPoint=2000.000000 ChangeDownPoint=1000.000000 LSDFactor=1.000000 EngineBrakeFactor=0.000100 EngineBrakeRPMScale=0.100000 MaxBrakeTorque=20.000000 SteerSpeed=80.000000 TurnDamping=35.000000 StopThreshold=100.000000 HandbrakeThresh=200.000000 EngineInertia=0.100000 IdleRPM=500.000000 EngineRPMSoundRange=9000.000000 SteerBoneName="SteeringWheel" SteerBoneAxis=AXIS_Z SteerBoneMaxAngle=90.000000 RevMeterScale=4000.000000 bAllowBigWheels=True AirPitchDamping=25.000000 DriverWeapons(0)=(WeaponClass=Class'OnslaughtBP.ONSShockTankCannon',WeaponBone="CannonAttach") RedSkin=Texture'ONSBPTextures.Skins.PaladinTan' BlueSkin=Texture'ONSBPTextures.Skins.PaladinGreen' IdleSound=Sound'ONSBPSounds.ShockTank.EngineCruise' StartUpSound=Sound'ONSBPSounds.ShockTank.EngineRampUp' ShutDownSound=Sound'ONSBPSounds.ShockTank.EngineRampDown' StartUpForce="RVStartUp" DestroyedVehicleMesh=StaticMesh'ONSBP_DestroyedVehicles.Paladin.DestroyedPaladin' DestructionEffectClass=Class'Onslaught.ONSSmallVehicleExplosionEffect' DisintegrationEffectClass=Class'OnslaughtBP.ONSShockTankDeathExp' DisintegrationHealth=-25.000000 DestructionLinearMomentum=(Min=200000.000000,Max=300000.000000) DestructionAngularMomentum=(Min=100.000000,Max=150.000000) DamagedEffectOffset=(X=60.000000,Y=10.000000,Z=10.000000) ImpactDamageMult=0.001000 Begin Object Class=SVehicleWheel Name=RWheel1 bPoweredWheel=True SteerType=VST_Steered BoneName="8WheelerWheel01" BoneRollAxis=AXIS_Y BoneOffset=(Y=7.000000) WheelRadius=44.000000 SupportBoneName="Suspension_Right1" SupportBoneAxis=AXIS_X End Object Wheels(0)=SVehicleWheel'OnslaughtBP.ONSShockTank.RWheel1' Begin Object Class=SVehicleWheel Name=RWheel2 bPoweredWheel=True BoneName="8WheelerWheel03" BoneRollAxis=AXIS_Y BoneOffset=(Y=7.000000) WheelRadius=44.000000 SupportBoneName="Suspension_Right2" SupportBoneAxis=AXIS_X End Object Wheels(1)=SVehicleWheel'OnslaughtBP.ONSShockTank.RWheel2' Begin Object Class=SVehicleWheel Name=RWheel3 bPoweredWheel=True BoneName="8WheelerWheel05" BoneRollAxis=AXIS_Y BoneOffset=(Y=7.000000) WheelRadius=44.000000 SupportBoneName="Suspension_Right3" SupportBoneAxis=AXIS_X End Object Wheels(2)=SVehicleWheel'OnslaughtBP.ONSShockTank.RWheel3' Begin Object Class=SVehicleWheel Name=RWheel4 bPoweredWheel=True SteerType=VST_Inverted BoneName="8WheelerWheel07" BoneRollAxis=AXIS_Y BoneOffset=(Y=7.000000) WheelRadius=44.000000 SupportBoneName="Suspension_Right4" SupportBoneAxis=AXIS_X End Object Wheels(3)=SVehicleWheel'OnslaughtBP.ONSShockTank.RWheel4' Begin Object Class=SVehicleWheel Name=LWheel1 bPoweredWheel=True SteerType=VST_Steered BoneName="8WheelerWheel02" BoneRollAxis=AXIS_Y BoneOffset=(Y=7.000000) WheelRadius=44.000000 SupportBoneName="Suspension_Left1" SupportBoneAxis=AXIS_X End Object Wheels(4)=SVehicleWheel'OnslaughtBP.ONSShockTank.LWheel1' Begin Object Class=SVehicleWheel Name=LWheel2 bPoweredWheel=True BoneName="8WheelerWheel04" BoneRollAxis=AXIS_Y BoneOffset=(Y=7.000000) WheelRadius=44.000000 SupportBoneName="Suspension_Left2" SupportBoneAxis=AXIS_X End Object Wheels(5)=SVehicleWheel'OnslaughtBP.ONSShockTank.LWheel2' Begin Object Class=SVehicleWheel Name=LWheel3 bPoweredWheel=True BoneName="8WheelerWheel06" BoneRollAxis=AXIS_Y BoneOffset=(Y=7.000000) WheelRadius=44.000000 SupportBoneName="Suspension_Left3" SupportBoneAxis=AXIS_X End Object Wheels(6)=SVehicleWheel'OnslaughtBP.ONSShockTank.LWheel3' Begin Object Class=SVehicleWheel Name=LWheel4 bPoweredWheel=True SteerType=VST_Inverted BoneName="8WheelerWheel08" BoneRollAxis=AXIS_Y BoneOffset=(Y=7.000000) WheelRadius=44.000000 SupportBoneName="Suspension_Left4" SupportBoneAxis=AXIS_X End Object Wheels(7)=SVehicleWheel'OnslaughtBP.ONSShockTank.LWheel4' VehicleMass=6.000000 FlipTorque=400.000000 bDrawMeshInFP=True bSeparateTurretFocus=True bDriverHoldsFlag=False ExitPositions(0)=(Y=-265.000000,Z=100.000000) ExitPositions(1)=(Y=265.000000,Z=100.000000) ExitPositions(2)=(Y=-265.000000,Z=-100.000000) ExitPositions(3)=(Y=265.000000,Z=-100.000000) EntryRadius=300.000000 FPCamPos=(X=-45.000000,Z=250.000000) FPCamViewOffset=(X=-30.000000) TPCamDistance=975.000000 CenterSpringForce="SpringONSSRV" TPCamLookat=(X=0.000000,Z=0.000000) TPCamWorldOffset=(Z=375.000000) MomentumMult=0.800000 DriverDamageMult=0.010000 VehiclePositionString="in a Paladin" VehicleNameString="Paladin" RanOverDamageType=Class'Onslaught.DamTypeRVRoadkill' CrushedDamageType=Class'Onslaught.DamTypeRVPancake' MaxDesireability=0.600000 ObjectiveGetOutDist=1500.000000 FlagBone="CannonAttach" FlagOffset=(Z=50.000000) FlagRotation=(Yaw=32768) HornSounds(0)=Sound'ONSBPSounds.ShockTank.PaladinHorn' HornSounds(1)=Sound'ONSVehicleSounds-S.Horns.Dixie_Horn' GroundSpeed=940.000000 HealthMax=800.000000 Health=800 bReplicateAnimations=True Mesh=SkeletalMesh'ONSBPAnimations.ShockTankMesh' CollisionRadius=260.000000 CollisionHeight=40.000000 Begin Object Class=KarmaParamsRBFull Name=KParams0 KInertiaTensor(0)=1.000000 KInertiaTensor(3)=3.000000 KInertiaTensor(5)=3.000000 KCOMOffset=(X=-0.250000,Z=-1.350000) KLinearDamping=0.050000 KAngularDamping=0.050000 KStartEnabled=True bKNonSphericalInertia=True bHighDetailOnly=False bClientOnly=False bKDoubleTickRate=True bDestroyOnWorldPenetrate=True bDoSafetime=True KFriction=0.500000 KImpactThreshold=700.000000 End Object KParams=KarmaParamsRBFull'OnslaughtBP.ONSShockTank.KParams0' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |