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 |
/** * Copyright 1998-2007 Epic Games, Inc. All Rights Reserved. */ class UTVWeap_HellBenderPrimary extends UTVehicleWeapon HideDropDown; var float LastFireTime; var float ReChargeTime; /** * returns true if should pass trace through this hitactor * turret ignores shock balls fired by hellbender driver */ simulated function bool PassThroughDamage(Actor HitActor) { return HitActor.IsA('UTProj_VehicleShockBall') || HitActor.IsA('Trigger') || HitActor.IsA('TriggerVolume'); } simulated function InstantFire() { Super.InstantFire(); LastFireTime = WorldInfo.TimeSeconds; } simulated function ProcessInstantHit( byte FiringMode, ImpactInfo Impact ) { local float DamageMod; DamageMod = FClamp( (WorldInfo.TimeSeconds - LastFireTime), 0, RechargeTime); DamageMod = FClamp( (DamageMod / 3), 0.05, 1.0); // cause damage to locally authoritative actors if (Impact.HitActor != None && Impact.HitActor.Role == ROLE_Authority) { Impact.HitActor.TakeDamage( InstantHitDamage[CurrentFireMode] * DamageMod, Instigator.Controller, Impact.HitLocation, InstantHitMomentum[FiringMode] * Impact.RayDir, InstantHitDamageTypes[FiringMode], Impact.HitInfo, self ); } } defaultproperties { RechargeTime=3.000000 FireTriggerTags(0)="BackTurretFire" DefaultImpactEffect=(Sound=SoundCue'A_Weapon_ShockRifle.Cue.A_Weapon_SR_AltFireImpactCue',ParticleTemplate=ParticleSystem'VH_Hellbender.Effects.P_VH_Hellbender_SecondImpact') VehicleClass=Class'UTGameContent.UTVehicle_HellBender_Content' bFastRepeater=True bZoomedFireMode(0)=0 bZoomedFireMode(1)=1 ZoomedTargetFOV=20.000000 ZoomedRate=60.000000 WeaponFireSnd(0)=SoundCue'A_Vehicle_Hellbender.SoundCues.A_Vehicle_Hellbender_TurretFire' WeaponFireTypes(1)=EWFT_None FireInterval(0)=0.500000 InstantHitDamage(0)=180.000000 InstantHitMomentum(0)=75000.000000 InstantHitDamageTypes(0)=Class'UTGameContent.UTDmgType_HellBenderPrimary' bInstantHit=True Begin Object Class=UTSkeletalMeshComponent Name=FirstPersonMesh ObjName=FirstPersonMesh Archetype=UTSkeletalMeshComponent'UTGame.Default__UTVehicleWeapon:FirstPersonMesh' ObjectArchetype=UTSkeletalMeshComponent'UTGame.Default__UTVehicleWeapon:FirstPersonMesh' End Object Mesh=FirstPersonMesh ItemName="Hellbender Gunner" Begin Object Class=SkeletalMeshComponent Name=PickupMesh ObjName=PickupMesh Archetype=SkeletalMeshComponent'UTGame.Default__UTVehicleWeapon:PickupMesh' ObjectArchetype=SkeletalMeshComponent'UTGame.Default__UTVehicleWeapon:PickupMesh' End Object DroppedPickupMesh=PickupMesh PickupFactoryMesh=PickupMesh Name="Default__UTVWeap_HellBenderPrimary" ObjectArchetype=UTVehicleWeapon'UTGame.Default__UTVehicleWeapon' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |