Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

WVPersesMAS.PersesMAS

Extends
ONSWheeledCraft

PersesMAS Creation date: 2011-08-18 21:35 Last change: $Id$ Copyright © 2011, Wormbo Website: http://www.koehler-homepage.de/Wormbo/ Feel free to reuse this code. Send me a note if you found it helpful or want to report bugs/provide improvements.

Core.Object
|   
+-- Engine.Actor
   |   
   +-- Engine.Pawn
      |   
      +-- Engine.Vehicle
         |   
         +-- Engine.SVehicle
            |   
            +-- Onslaught.ONSVehicle
               |   
               +-- Onslaught.ONSWheeledCraft
                  |   
                  +-- WVPersesMAS.PersesMAS

Variables Summary
floatBotEnterTime
array<Material>DestroyedSkins
floatFixedSteering
floatFixedThrottle
vectorGunMountOffset
floatGunMountScale
array<vector>GunnerTurretAttachOffsets
array<name>HiddenBones
floatThrottleFixTime
PersesMAS
stringBuild
Inherited Variables from Onslaught.ONSWheeledCraft
ActualSteering, AirPitchDamping, AirPitchTorque, AirRollDamping, AirRollTorque, AirTurnTorque, bAllowAirControl, bAllowBigWheels, bAllowChargingJump, bDoStuntInfo, bIsDriving, bIsInverted, bMakeBrakeLights, bNewCarState, bOldVehicleOnGround, bPushDown, BrakeLightMaterial, BrakeLightOffset[2], BrakeLight[2], CarMPH, CarState, ChangeDownPoint, ChangeUpPoint, ChassisState, ChassisTorqueScale, DaredevilMessageClass, DaredevilPoints, DaredevilThreshInAirDistance, DaredevilThreshInAirPitch, DaredevilThreshInAirRoll, DaredevilThreshInAirSpin, DaredevilThreshInAirTime, DesiredJumpForce, Dust, DustSlipRate, DustSlipThresh, EngineBrakeFactor, EngineBrakeRPMScale, EngineInertia, EngineRPM, EngineRPMSoundRange, FenderBenderSpeed, ForwardVel, FTScale, Gear, GearRatios[5], HandbrakeThresh, IdleRPM, InAirDistance, InAirPitch, InAirRoll, InAirSpin, InAirTime, JumpChargeTime, JumpFeedbackForce, JumpForce, JumpMeterColor, JumpMeterHeight, JumpMeterOriginX, JumpMeterOriginY, JumpMeterSpacing, JumpMeterTexture, JumpMeterWidth, JumpSound, JumpSpin, LastOnGroundLocation, LastOnGroundTime, LSDFactor, MaxBrakeTorque, MaxJumpForce, MaxJumpSpin, MaxSteerAngleCurve, MinAirControlDamping, MinBrakeFriction, NumForwardGears, NumPoweredWheels, OldCarState, OldRotation, OutputBrake, OutputGas, OutputHandbrake, OutputPitch, RevMeterMaterial, RevMeterPosX, RevMeterPosY, RevMeterScale, RevMeterSizeY, SpinMeterColor, SteerBoneAxis, SteerBoneMaxAngle, SteerBoneName, SteerSpeed, StopThreshold, TorqueCurve, TotalSpinVel, TransRatio, TurnDamping, WheelAdhesion, WheelHandbrakeFriction, WheelHandbrakeSlip, WheelInertia, WheelLatFrictionScale, WheelLatSlipFunc, WheelLongFrictionFunc, WheelLongFrictionScale, WheelLongSlip, WheelPenOffset, WheelPenScale, WheelRestitution, WheelSoftness, WheelSuspensionMaxRenderTravel, WheelSuspensionOffset, WheelSuspensionTravel
Inherited Variables from Onslaught.ONSVehicle
ActiveWeapon, AltFireImpulse, AltFocalPoint, bAltFocalPoint, bCannotBeBased, bCustomAiming, bDestroyAppearance, bDisintegrateVehicle, bDriverCannotLeaveVehicle, bEjectPassengersWhenFlipped, bEnableProximityViewShake, bHadFire, bHasAltFire, bHasAltFireImpulse, bHasBeenAwake, bHasFireImpulse, bIsAwake, BlueSkin, bNeverReset, bOnlyViewShakeIfDriven, bSoundsPrecached, CrosshairColor, CrosshairTexture, CrosshairX, CrosshairY, CustomAim, DamagedEffect, DamagedEffectAccruedDamage, DamagedEffectAccScale, DamagedEffectClass, DamagedEffectFireDamagePerSec, DamagedEffectHealthFireFactor, DamagedEffectHealthSmokeFactor, DamagedEffectOffset, DamagedEffectScale, DebugInfo, DestroyedRoadKillDamageType, DestroyedVehicleMesh, DestructionAngularMomentum, DestructionEffectClass, DestructionLinearMomentum, DisintegrationEffectClass, DisintegrationHealth, DriverWeapons, ExplosionCount, ExplosionDamage, ExplosionDamageType, ExplosionMomentum, ExplosionRadius, ExplosionSoundRadius, ExplosionSounds, ExplosionSoundVolume, FireImpulse, HeadlightCorona, HeadlightCoronaMaterial, HeadlightCoronaMaxSize, HeadlightCoronaOffset, HeadlightProjector, HeadlightProjectorMaterial, HeadlightProjectorOffset, HeadlightProjectorRotation, HeadlightProjectorScale, IdleSound, ImpactDamageMult, ImpactDamageSounds, ImpactDamageThreshold, ImpactDamageTicks, ImpactInfo, ImpactTicksLeft, LastCheckUpsideDownTime, LastImpactExplosionTime, LastRunOverWarningTime, LastVelocitySize, LockedOnSound, MinRunOverWarningAim, OldExplosionCount, OldYaw, PassengerWeapons, RedSkin, Reservation, ResetTime, ShakeOffsetMag, ShakeOffsetRate, ShakeOffsetTime, ShakeRotMag, ShakeRotRate, ShakeRotTime, ShutDownForce, ShutDownSound, SparkAdvanceFactor, SparkEffect, SparkEffectClass, StartUpForce, StartUpSound, TimeBetweenImpactExplosions, UpsideDownDamage, ViewShakeLastCheck, ViewShakeOffsetFreq, ViewShakeOffsetMag, ViewShakeRadius, ViewShakeRotFreq, ViewShakeRotMag, WeaponPawns, Weapons

Structures Summary
Inherited Structures from Onslaught.ONSWheeledCraft
SCarState
Inherited Structures from Onslaught.ONSVehicle
DriverWeaponStruct, ImpactInfoStruct, PassengerWeaponStruct

Functions Summary
function AltFire (optional float F))
functionfloat BotDesireability (Actor S, int TeamIndex, Actor Objective))
function ChooseFireAt (Actor A))
function ClientKDriverLeave (PlayerController PC))
function ClientVehicleCeaseFire (bool bWasAltFire))
event ClientVehicleExplosion (bool bFinal))
event DestroyAppearance ()))
function DrawHud (Canvas C))
functionVehicle FindEntryVehicle (Pawn P))
functionString GetDebugName ()))
functionbool ImportantVehicle ()))
function KDriverEnter (Pawn P))
functionbool NeedToTurn (vector targ))
function PostNetBeginPlay ()))
function ServerChangeDriverPosition (byte F))
function Tick (float DeltaTime))
Inherited Functions from Onslaught.ONSWheeledCraft
Destroyed, DrawHUD, DrivingStatusChanged, ImpactDamageModifier, Jumping, KImpact, KUpdateState, LimitPitch, OnDaredevil, PostBeginPlay, PostNetBeginPlay, PrecacheAnnouncer, SetWheelsScale, SVehicleUpdateParams, Tick
Inherited Functions from Onslaught.ONSVehicle
AltFire, ApplyFireImpulse, CallDestroy, CanAttack, ChangedReservation, ChargeBar, CheckReset, ChooseFireAt, ClientKDriverEnter, ClientKDriverLeave, ClientRegisterVehicleWeapon, ClientVehicleCeaseFire, ClientVehicleExplosion, Deploy, DestroyAppearance, Destroyed, Died, DisplayDebug, DrawHUD, DriverDied, DriverLeft, DriverRadiusDamage, FastVehicle, FindEntryVehicle, Fire, FireOnRelease, GetBotPassenger, GetInstigator, GetTurrets, HasOccupiedTurret, HasUDamage, HasWeapon, HealDamage, ImpactDamageModifier, IsDeployed, IsFiring, IsVehicleEmpty, KDriverEnter, KDriverLeave, KImpact, LimitPitch, MayUndeploy, ModifyThreat, NeedToTurn, NewReservationCostMultiplier, NotifyEnemyLockedOn, NotifyEnemyLostLock, NumPassengers, OpenPositionFor, PlayHit, PostNetBeginPlay, PrecacheAnnouncer, RefireRate, ReservationCostMultiplier, ServerChangeDriverPosition, ServerPlayHorn, ServerVerifyVehicleWeapon, SetActiveWeapon, SetReservation, SetTeamNum, SpokenFor, StaticPrecache, SVehicleUpdateParams, SwitchWeapon, TakeDamage, TakeImpactDamage, TeamChanged, TooCloseToAttack, TryToDrive, UpdatePrecacheMaterials, UpdatePrecacheStaticMeshes, VehicleCeaseFire, VehicleExplosion, VehicleLocked

States Summary
VehicleDisintegrated Source code
state VehicleDisintegrated


Variables Detail

BotEnterTime Source code

var float BotEnterTime;

DestroyedSkins Source code

var array<Material> DestroyedSkins;

FixedSteering Source code

var float FixedSteering;

FixedThrottle Source code

var float FixedThrottle;

GunMountOffset Source code

var vector GunMountOffset;

GunMountScale Source code

var float GunMountScale;

GunnerTurretAttachOffsets Source code

var array<vector> GunnerTurretAttachOffsets;

HiddenBones Source code

var array<name> HiddenBones;

ThrottleFixTime Source code

var float ThrottleFixTime;

PersesMAS

Build Source code

var(PersesMAS) const editconst string Build;


Functions Detail

AltFire Source code

function AltFire ( optional float F) )

BotDesireability Source code

function float BotDesireability ( Actor S, int TeamIndex, Actor Objective) )

ChooseFireAt Source code

function ChooseFireAt ( Actor A) )
Pick most efficient projectile type for the target to attack.

ClientKDriverLeave Source code

simulated function ClientKDriverLeave ( PlayerController PC) )

ClientVehicleCeaseFire Source code

function ClientVehicleCeaseFire ( bool bWasAltFire) )

ClientVehicleExplosion Source code

simulated event ClientVehicleExplosion ( bool bFinal) )

DestroyAppearance Source code

simulated event DestroyAppearance ( ) )

DrawHud Source code

simulated function DrawHud ( Canvas C) )

FindEntryVehicle Source code

function Vehicle FindEntryVehicle ( Pawn P) )

GetDebugName Source code

simulated function String GetDebugName ( ) )

ImportantVehicle Source code

function bool ImportantVehicle ( ) )

KDriverEnter Source code

function KDriverEnter ( Pawn P) )

NeedToTurn Source code

function bool NeedToTurn ( vector targ) )

PostNetBeginPlay Source code

simulated function PostNetBeginPlay ( ) )

ServerChangeDriverPosition Source code

function ServerChangeDriverPosition ( byte F) )

Tick Source code

simulated function Tick ( float DeltaTime) )


Defaultproperties

defaultproperties
{
	Build = "%%%%-%%-%% %%:%%"
	VehiclePositionString="in a Perses"
	VehicleNameString="Perses MAS"
	VehicleDescription="Perses, the ancient Greek Titan god of destruction. And destruction is what the Perses Mobile Assault Station is all about."


	Mesh=Mesh'PersesChassis'


	HiddenBones = ("LeftFrontArm1","RightFrontArm1","LeftRearArm1","RightRearArm1")


	DriverWeapons(0) = (WeaponClass=class'PersesRocketPack',WeaponBone=RocketPackAttach)
	bHasAltFire = False
	bSeparateTurretFocus = True


	PassengerWeapons(0)=(WeaponPawnClass=class'PersesTankTurretPawn',WeaponBone=RightFrontGunAttach)
	PassengerWeapons(1)=(WeaponPawnClass=class'PersesTankTurretPawn',WeaponBone=LeftFrontGunAttach)
	PassengerWeapons(2)=(WeaponPawnClass=class'PersesArtilleryTurretPawn',WeaponBone=RightRearGunAttach)
	PassengerWeapons(3)=(WeaponPawnClass=class'PersesArtilleryTurretPawn',WeaponBone=LeftRearGunAttach)


	GunMountOffset=(X=32,Z=3)
	GunMountScale=1.4
	GunnerTurretAttachOffsets(0)=(Z=2.5)
	GunnerTurretAttachOffsets(1)=(Z=2.5)
	GunnerTurretAttachOffsets(2)=(X=-2,Z=3)
	GunnerTurretAttachOffsets(3)=(X=-2,Z=3)


	DestroyedSkins = (Texture'ONSFullTextures.DeadTextures.MASdeadTEX')
	DestructionEffectClass=class'Onslaught.ONSVehicleExplosionEffect'
	DisintegrationEffectClass=class'PersesDeathExplosion'
	DestructionLinearMomentum=(Min=250000,Max=400000)
	DestructionAngularMomentum=(Min=100,Max=300)


	RedSkin=Shader'ONSFullTextures.MASGroup.MASRedShad'
	BlueSkin=Shader'ONSFullTextures.MASGroup.MASBlueShad'
	ShadowCullDistance=2000.0


	Health=7000
	HealthMax=7000
	DisintegrationHealth=0
	DriverDamageMult=0.0
	MomentumMult=0.01
	UpsideDownDamage=500.0
	RanOverDamageType=class'DamTypePersesRoadkill'
	CrushedDamageType=class'DamTypePersesPancake'


	ExplosionDamage=250.0
	ExplosionRadius=500.0


	AirPitchDamping=45.0


	FPCamPos=(X=-350,Y=0,Z=350)
	TPCamLookat=(X=-350,Y=0,Z=300)
	TPCamWorldOffset=(X=0,Y=0,Z=200)
	TPCamDistance=780
	TPCamDistRange=(Min=0,Max=2500)


	bDrawDriverInTP=False
	bDrawMeshInFP=True
	bAllowBigWheels=True


	CollisionHeight=+60.0
	CollisionRadius=+260.0
	NavigationPointRange=+190.0
	bSuperSize=true


	DrivePos=(X=16.921,Y=-40.284,Z=65.794)
	DriveRot=(Pitch=0)


	IdleSound=sound'ONSVehicleSounds-S.MAS.MASEng01'
	StartUpSound=sound'ONSVehicleSounds-S.MAS.MASStart01'
	ShutDownSound=sound'ONSVehicleSounds-S.MAS.MASStop01'
	EngineRPMSoundRange=8000
	SoundRadius=255
	SoundVolume=255
	IdleRPM=1000
	RevMeterScale=4000


	StartUpForce="MASStartUp"
	ShutDownForce="MASShutDown"


	SteerBoneName=""
	SteerBoneAxis=AXIS_Z
	SteerBoneMaxAngle=90


	EntryPosition=(X=0,Y=0,Z=0)
	EntryRadius=500.0


	ExitPositions(0)=(X=0,Y=-365,Z=200)
	ExitPositions(1)=(X=0,Y=365,Z=200)
	ExitPositions(2)=(X=0,Y=-365,Z=-100)
	ExitPositions(3)=(X=0,Y=365,Z=-100)


	WheelPenScale=1.0
	WheelPenOffset=0.01
	WheelSoftness=0.04
	WheelRestitution=0.1
	WheelAdhesion=0.0
	WheelLongFrictionFunc=(Points=((InVal=0,OutVal=0.0),(InVal=50.0,OutVal=1.0),(InVal=100.0,OutVal=0.9),(InVal=10000000000.0,OutVal=0.9)))
	WheelLongFrictionScale=0.9
	WheelLatFrictionScale=1.5
	WheelLongSlip=0.001
	WheelLatSlipFunc=(Points=((InVal=0.0,OutVal=0.0),(InVal=30.0,OutVal=0.009),(InVal=45.0,OutVal=0.00),(InVal=10000000000.0,OutVal=0.00)))
	WheelHandbrakeSlip=0.01
	WheelHandbrakeFriction=0.1
	WheelSuspensionTravel=40.0
	WheelSuspensionOffset=0.0
	WheelSuspensionMaxRenderTravel=40.0


	HandbrakeThresh=200
	FTScale=0.01
	ChassisTorqueScale=0.1


	MinBrakeFriction=4.0
	MaxBrakeTorque=20.0
	MaxSteerAngleCurve=(Points=((InVal=0,OutVal=40.0),(InVal=700.0,OutVal=20.0),(InVal=1000000000.0,OutVal=10.0)))
	SteerSpeed=110
	StopThreshold=100
	TorqueCurve=(Points=((InVal=0,OutVal=36.0),(InVal=200,OutVal=5.0),(InVal=1500,OutVal=6.0),(InVal=2500,OutVal=0.0)))
	EngineBrakeFactor=0.002
	EngineBrakeRPMScale=0.1
	EngineInertia=0.5
	WheelInertia=0.01


	TransRatio=0.11

	GearRatios[0]=-0.2
	GearRatios[1]=0.2
	NumForwardGears=1
	ChangeUpPoint=2000
	ChangeDownPoint=1000
	LSDFactor=1.0



	VehicleMass=12.0


	HeadlightCoronaOffset(0)=(X=365,Y=-87,Z=130)
	HeadlightCoronaMaterial=Material'EpicParticles.flashflare1'
	HeadlightCoronaMaxSize=120


	DamagedEffectOffset=(X=300,Y=0,Z=185)
	DamagedEffectScale=2.5


	Begin Object Class=KarmaParamsRBFull Name=KParams0
		KStartEnabled=True
		KFriction=0.5
		KLinearDamping=0.05
		KAngularDamping=0.05
		KImpactThreshold=500
		bKNonSphericalInertia=True
		bHighDetailOnly=False
		bClientOnly=False
		bKDoubleTickRate=True
		KInertiaTensor(0)=1.260000
		KInertiaTensor(1)=0
		KInertiaTensor(2)=0
		KInertiaTensor(3)=3.099998
		KInertiaTensor(4)=0
		KInertiaTensor(5)=4.499996


		KMaxSpeed=650.0


		KCOMOffset=(X=0,Y=0,Z=0)
		bDestroyOnWorldPenetrate=True
		bDoSafetime=True
	End Object
	KParams=KarmaParams'KParams0'


	Begin Object Class=SVehicleWheel Name=RightRearTIRE
		BoneName="RightRearTire"
		BoneRollAxis=AXIS_Y
		BoneSteerAxis=AXIS_Z
		BoneOffset=(X=0.0,Y=0.0,Z=0.0)
		WheelRadius=99
		bPoweredWheel=True
		SteerType=VST_Fixed

	End Object
	Wheels(0)=SVehicleWheel'RightRearTIRE'


	Begin Object Class=SVehicleWheel Name=LeftRearTIRE
		BoneName="LeftRearTire"
		BoneRollAxis=AXIS_Y
		BoneSteerAxis=AXIS_Z
		BoneOffset=(X=0.0,Y=0.0,Z=0.0)
		WheelRadius=99
		bPoweredWheel=True
		SteerType=VST_Fixed

	End Object
	Wheels(1)=SVehicleWheel'LeftRearTIRE'


	Begin Object Class=SVehicleWheel Name=RightFrontTIRE
		BoneName="RightFrontTire"
		BoneRollAxis=AXIS_Y
		BoneSteerAxis=AXIS_Z
		BoneOffset=(X=0.0,Y=0.0,Z=0.0)
		WheelRadius=99
		bPoweredWheel=True
		SteerType=VST_Steered

	End Object
	Wheels(2)=SVehicleWheel'RightFrontTIRE'


	Begin Object Class=SVehicleWheel Name=LeftFrontTIRE
		BoneName="LeftFrontTire"
		BoneRollAxis=AXIS_Y
		BoneSteerAxis=AXIS_Z
		BoneOffset=(X=0.0,Y=0.0,Z=0.0)
		WheelRadius=99
		bPoweredWheel=True
		SteerType=VST_Steered

	End Object
	Wheels(3)=SVehicleWheel'LeftFrontTIRE'


	bDriverHoldsFlag=false
	FlagBone=LeftFrontGunAttach
	bKeyVehicle=true
	bNeverReset=true


	bEnableProximityViewShake=true
	bOnlyViewShakeIfDriven=true
	ViewShakeRadius=1000.0
	ViewShakeOffsetMag=(X=0.7,Y=0.0,Z=2.7)
	ViewShakeOffsetFreq=7.0


	HornSounds(0)=sound'ONSVehicleSounds-S.LevHorn01'
	HornSounds(1)=sound'ONSVehicleSounds-S.LevHorn02'


	MaxDesireability=2.0
	ObjectiveGetOutDist=3000.0
}



Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: Do 14.8.2014 09:58:19.608 - Created with UnCodeX