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

WVHoverTankV3.NephthysTank


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
/******************************************************************************
NephthysTank

Creation date: 2012-11-28 23:58
Last change: $Id$
Copyright © 2012, 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.
Please ask for permission first, if you intend to make money off reused code.
******************************************************************************/

class NephthysTank extends HoverTank;


function bool RecommendLongRangedAttack()
{
	return true;
}

function TakeDamage(int Damage, Pawn instigatedBy, Vector Hitlocation, Vector Momentum, class<DamageType> DamageType)
{
	local vector X, Y, Z, HitDir;
	local float ArmorEfficiency;

	if (DamageType.default.bLocationalHit)
	{
		GetAxes(Rotation, X, Y, Z);
		if (VSize(HitLocation - Location) > 10)
			HitDir = Normal(HitLocation - Location);
		else
			HitDir = -Normal(Momentum);

		ArmorEfficiency = FMax(HitDir dot Normal(X + 2 * Z) + 0.2, 0.0);
		Damage -= Damage * 0.5 * FMin(ArmorEfficiency, 1.0);
	}
	Super.TakeDamage(Damage, instigatedBy, Hitlocation, Momentum, damageType);
}


//=============================================================================
// Default values
//=============================================================================

defaultproperties
{
	VehiclePositionString = "in a Nephthys"
	VehicleNameString     = "Nephthys"
	VehicleDescription    = "Nephthys played an important role in ancient Egypt death ceremonies and is often characterized as a rather ferocious and dangerous divinity. While this hover tank has little to offer in the defensive department, it will wreck havoc upon enemies if left unattended for too long."

	DriverWeapons(0)    = (WeaponClass=Class'NephthysTurret',WeaponBone=Weapon02_b)
	PassengerWeapons(0) = (WeaponPawnClass=class'NephthysLightningTurretPawn',WeaponBone=Nekomata_turret_b_Gun)

	FPCamPos=(X=-70,Y=38,Z=120)
	FPCamViewOffset=(X=90,Y=0,Z=0)
	//bFPNoZFromCameraPitch=True
	TPCamLookat=(X=-50,Y=0,Z=0)
	TPCamWorldOffset=(X=0,Y=0,Z=200)
	TPCamDistance=375

	Mesh       = SkeletalMesh'NekomataChassisMesh'
	StaticMesh = StaticMesh'NekomataChassisSM'
	RedSkin    = Shader'NephthysShaderRed'
	BlueSkin   = Shader'NephthysShaderBlue'

	//DisintegrationHealth       = -125
	DestroyedVehicleMesh       = StaticMesh'NekomataChassisSM'
	DestructionEffectClass     = class'ONSVehicleExplosionEffect'
	DisintegrationEffectClass  = class'NephthysExplosionEffect'
	DestructionLinearMomentum  = (Min=250000,Max=400000)
	DestructionAngularMomentum = (Min=100,Max=300)
	DamagedEffectOffset        = (X=60,Y=35,Z=20)

	RanOverDamageType = class'DamTypeNephthysRoadkill'
	CrushedDamageType = class'DamTypeNephthysPancake'

	CollisionRadius = 200.0
	bCollideWhenPlacing = True
	bUseCollisionStaticMesh = True

	MaxGroundSpeed = 700.0
	VehicleMass    =  11.0

	HoverPenScale         = 3.0
	CrouchedHoverPenScale = 2.0
	HoverCheckDist        = 170
	RaisedHoverCheckDist  = 200

	// repulsors
	ThrusterOffsets(0)  = (X=208,Y=96,Z=30)
	ThrusterOffsets(1)  = (X=208,Y=0,Z=30)
	ThrusterOffsets(2)  = (X=208,Y=-96,Z=30)
	ThrusterOffsets(3)  = (X=70,Y=96,Z=30)
	ThrusterOffsets(4)  = (X=70,Y=0,Z=30)
	ThrusterOffsets(5)  = (X=70,Y=-96,Z=30)
	ThrusterOffsets(6)  = (X=-70,Y=96,Z=30)
	ThrusterOffsets(7)  = (X=-70,Y=0,Z=30)
	ThrusterOffsets(8)  = (X=-70,Y=-96,Z=30)
	ThrusterOffsets(9)  = (X=-208,Y=96,Z=30)
	ThrusterOffsets(10) = (X=-208,Y=0,Z=30)
	ThrusterOffsets(11) = (X=-208,Y=-96,Z=30)

	// dust
	HoverDustOffset = () // clear first, because inheriting length 10 and only want 8
	HoverDustOffset(0) = (X=146,Y=-104,Z=-50)
	HoverDustOffset(1) = (X=54,Y=-104,Z=-50)
	HoverDustOffset(2) = (X=-40,Y=-104,Z=-50)
	HoverDustOffset(3) = (X=-132,Y=-104,Z=-50)
	HoverDustOffset(4) = (X=146,Y=104,Z=-50)
	HoverDustOffset(5) = (X=54,Y=104,Z=-50)
	HoverDustOffset(6) = (X=-40,Y=104,Z=-50)
	HoverDustOffset(7) = (X=-132,Y=104,Z=-50)
}


Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: So 1.12.2013 17:36:56.000 - Creation time: Do 14.8.2014 09:58:45.479 - Created with UnCodeX