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

WVPersesMAS.PersesRocketPack

Extends
ONSWeapon

PersesRocketPack Creation date: 2011-08-19 21:45 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
   |   
   +-- Onslaught.ONSWeapon
      |   
      +-- WVPersesMAS.PersesRocketPack

Constants Summary
Inherited Contants from Engine.Actor
MAXSTEPHEIGHT, MINFLOORZ

Variables Summary
intCurrentOffsetIndex
intCurrentProjectileType
floatProjectileSwitchTime
byteRepProjectileType
PersesRocketPack
array<vector>FireOffsets
array<TProjectileType>ProjectileTypes
Inherited Variables from Onslaught.ONSWeapon
AIInfo[2], AimLockReleaseTime, AimTraceRange, AltFireForce, AltFireInterval, AltFireProjectileClass, AltFireSoundClass, AltFireSoundRadius, AltFireSoundVolume, AmbientEffectEmitter, AmbientEffectEmitterClass, AmbientSoundScaling, bActive, bAimable, bAmbientAltFireSound, bAmbientFireSound, bCallInstigatorPostRender, bCorrectAim, bDoOffsetTrace, bDualIndependantTargeting, bForceCenterAim, bInheritVelocity, bInstantFire, bInstantRotation, bIsAltFire, bIsRepeatingFF, BlueSkin, bReflective, bShowAimCrosshair, bShowChargingBar, CurrentAim, CurrentHitLocation, DamageMax, DamageMin, DamageType, DebugInfo, DualFireOffset, EffectEmitter, EffectEmitterClass, FireCountdown, FireForce, FireInterval, FireIntervalAimLock, FireSoundClass, FireSoundPitch, FireSoundRadius, FireSoundVolume, FlashCount, FlashEmitter, FlashEmitterClass, GunnerAttachmentBone, HitCount, LastHitLocation, LastRotation, Momentum, OldFlashCount, OldHitCount, PitchBone, PitchDownLimit, PitchUpLimit, ProjectileClass, Projectiles, RedSkin, RotateSound, RotateSoundThreshold, RotationsPerSecond, SavedFireProperties[2], ShakeOffsetMag, ShakeOffsetRate, ShakeOffsetTime, ShakeRotMag, ShakeRotRate, ShakeRotTime, Spread, Team, TraceRange, WeaponFireAttachmentBone, WeaponFireLocation, WeaponFireOffset, WeaponFireRotation, WeaponOffset, YawBone, YawConstraintDelta, YawEndConstraint, YawStartConstraint
Inherited Variables from Engine.Actor
Acceleration, AccumKarmaAngleError, ActorRenderData, AmbientGlow, AmbientSound, AntiPortal, Attached, AttachmentBone, AttachTag, bAcceptsProjectors, bActorShadows, bAlreadyPrecachedMaterials, bAlreadyPrecachedMeshes, bAlwaysFaceCamera, bAlwaysRelevant, bAlwaysTick, bAlwaysZeroBoneOffset, bAnimByOwner, Base, bAttenByLife, bAutoAlignToTerrain, bBadStateCode, bBlockActors, bBlockKarma, bBlockNonZeroExtentTraces, bBlockPlayers, bBlockProjectiles, bBlocksTeleport, bBlockZeroExtentTraces, bBounce, bCanBeDamaged, bCanTeleport, bClientAnim, bClientAuthoritative, bClientDemoNetFunc, bClientDemoRecording, bClientTrigger, bCollideActors, bCollideWhenPlacing, bCollideWorld, bCompressedPosition, bCorona, bDeferRendering, bDeleteMe, bDemoOwner, bDemoRecording, bDestroyInPainVolume, bDetailAttachment, bDirectional, bDirectionalCorona, bDisableSorting, bDisturbFluidSurface, bDramaticLighting, bDynamicLight, bEdShouldSnap, bEdSnap, bFixedRotationDir, bForceSkelUpdate, bFullVolume, bGameRelevant, bHardAttach, bHidden, bHiddenEd, bHiddenEdGroup, bHighDetail, bHurtEntry, bIgnoreEncroachers, bIgnoreOutOfWorld, bIgnoreTerminalVelocity, bIgnoreVehicles, bInterpolating, bJustTeleported, bLightChanged, bLightingVisibility, bLockLocation, bMovable, bNetDirty, bNetInitial, bNetInitialRotation, bNetNotify, bNetOwner, bNetRelevant, bNetTemporary, bNoDelete, bNoRepMesh, bNotifyLocalPlayerTeamReceived, bNotOnDedServer, bObsolete, bOnlyAffectPawns, bOnlyDirtyReplication, bOnlyDrawIfAttached, bOnlyOwnerSee, bOnlyRelevantToOwner, bOrientOnSlope, bOrientToVelocity, bOwnerNoSee, bPathColliding, bPathTemp, bPendingDelete, bProjTarget, bRepClientDemo, bReplicateAnimations, bReplicateInstigator, bReplicateMovement, bRotateToDesired, Brush, bScriptInitialized, bSelected, bShadowCast, bShouldBaseAtStartup, bShouldStopKarma, bShowOctreeNodes, bSkipActorPropertyReplication, bSmoothKarmaStateUpdates, bSpecialLit, bStasis, bStatic, bStaticLighting, bSuperHighDetail, bTearOff, bTempEditor, bTicked, bTimerLoop, bTraceWater, bTrailerAllowRotation, bTrailerPrePivot, bTrailerSameRotation, bTravel, bUnlit, Buoyancy, bUpdateSimulatedPosition, bUseCollisionStaticMesh, bUseCylinderCollision, bUseDynamicLights, bUseLightingFromBase, bWasSNFiltered, bWorldGeometry, CachedLocalToWorld, CachedLocation, CachedRotation, ClientOverlayCounter, ClientOverlayTimer, CollisionHeight, CollisionRadius, CollisionTag, ColLocation, CullDistance, Deleted, DesiredRotation, DrawScale, DrawScale3D, DrawType, Event, ExcludeTag[8], FluidSurfaceShootStrengthMod, ForcedVisibilityZoneTag, ForceNoise, ForceRadius, ForceScale, ForceType, Group, HardRelMatrix, HighDetailOverlay, InitialState, Instigator, Inventory, JoinedTag, KParams, KStepTag, LastRenderTime, LatentFloat, Leaves, Level, LifeSpan, LightBrightness, LightCone, LightEffect, LightHue, LightPeriod, LightPhase, LightRadius, LightRenderData, LightSaturation, LightType, Location, LODBias, Mass, MaxLights, Mesh, MeshInstance, MessageClass, NetPriority, NetTag, NetUpdateFrequency, NetUpdateTime, OctreeBox, OctreeBoxCenter, OctreeBoxRadii, OctreeNodes, OverlayMaterial, OverlayTimer, Owner, PendingTouch, Physics, PhysicsVolume, PrePivot, Projectors, Region, RelativeLocation, RelativeRotation, RemoteRole, RenderRevision, RepSkin, Role, Rotation, RotationRate, ScaleGlow, SimAnim, Skins, SoundOcclusion, SoundPitch, SoundRadius, SoundVolume, StaticFilterState, StaticMesh, StaticMeshInstance, StaticMeshProjectors, StaticSectionBatches, Style, SurfaceType, Tag, Texture, TimerCounter, TimerRate, Touching, TransientSoundRadius, TransientSoundVolume, UV2Mode, UV2Texture, Velocity, XLevel

Enumerations Summary
Inherited Enumerations from Engine.Actor
EDoubleClickDir, EDrawType, EFilterState, EFlagState, EForceType, eKillZType, ELightEffect, ELightType, EMusicTransition, ENetRole, EPhysics, ERenderStyle, ESoundOcclusion, ESoundSlot, ESurfaceTypes, ETravelType, EUV2Mode

Structures Summary
TProjectileType
ProjectileClass, FireSound, FireInterval, BarWeaponIcon, BarBorderScaledPosition, BarBorder, BarWeaponSlot
Inherited Structures from Onslaught.ONSWeapon
ONSWeaponAIInfo
Inherited Structures from Engine.Actor
ActorRenderDataPtr, AnimRep, BatchReference, FireProperties, KRBVec, KRigidBodyState, KSimParams, LightRenderDataPtr, PointRegion, ProjectorRenderInfoPtr, StaticMeshProjectorRenderInfoPtr

Functions Summary
eventbool AttemptFire (Controller C, bool bAltFire))
functionbyte BestMode ()))
function CalcWeaponFire ()))
functionbool CanAttack (Actor Other))
function ChangeProjectile (byte NewProjectileType))
function DrawWeaponBar (Canvas C))
functionbool LineOfSightTo (Actor Other))
function PostNetReceive ()))
Inherited Functions from Onslaught.ONSWeapon
AdjustAim, AltFire, AttemptFire, BestMode, CalcWeaponFire, CanAttack, CeaseFire, ChargeBar, ClientPlayForceFeedback, ClientSpawnHitEffects, ClientStartFire, ClientStopFire, Destroyed, DestroyEffects, DisplayDebug, DoCombo, Fire, FlashMuzzleFlash, InitEffects, LimitPitch, MaxRange, OwnerEffects, PostBeginPlay, PostNetBeginPlay, SetFireRateModifier, SetGRI, SetTeam, ShakeView, SimulateTraceFire, SpawnBeamEffect, SpawnHitEffects, SpawnProjectile, StaticPrecache, StopForceFeedback, TraceFire, WeaponCeaseFire
Inherited Functions from Engine.Actor
*, +, -, AddToPackageMap, AdjustVolume, AllActors, AllowMusicPlayback, AnimBlendParams, AnimBlendToAlpha, AnimEnd, AnimIsInGroup, AnimStopLooping, Attach, AttachToBone, AutonomousPhysics, BaseChange, BasedActors, BecomeViewTarget, BeginEvent, BeginPlay, BlocksShotAt, BoneRefresh, BroadcastLocalizedMessage, Bump, CanSplash, ChangeBaseParamsFeedbackEffect, ChangeSpringFeedbackEffect, CheckForErrors, CheckMaxEffectDistance, ChildActors, ClearStayingDebugLines, ClientTrigger, Clock, CollidingActors, ConsoleCommand, CopyObjectToClipboard, Crash, CurrentLIPSincAnim, DebugClock, DebugUnclock, DemoPlaySound, Destroy, Destroyed, Detach, DetachFromBone, DisplayDebug, DrawDebugCircle, DrawDebugLine, DrawDebugSphere, DrawStayingDebugLine, DynamicActors, EffectIsRelevant, EnableChannelNotify, EncroachedBy, EncroachingOn, EndedRotation, EndEvent, Error, Falling, FastTrace, FellOutOfWorld, FinishAnim, FinishedInterpolation, FinishInterpolation, ForceFeedbackSupported, FreezeAnimAt, GainedChild, GetAllInt, GetAllIntDesc, GetAnimParams, GetBoneCoords, GetBoneRotation, GetCacheEntry, GetClosestBone, GetCollisionExtent, GetDebugName, GetHumanReadableName, GetLocalString, GetMapName, GetMeshName, GetNextInt, GetNextIntDesc, GetNextSkin, GetNotifyChannel, GetRenderBoundingSphere, GetRootLocation, GetRootLocationDelta, GetRootRotation, GetRootRotationDelta, GetSoundDuration, GetURLMap, GetUrlOption, HasAnim, HasLIPSincAnim, HealDamage, HitWall, HurtRadius, IsAnimating, IsInPain, IsInVolume, IsJoinedTo, IsPlayingLIPSincAnim, IsStationary, IsTweening, KAddAngularImpulse, KAddBoneLifter, KAddImpulse, KApplyForce, KDisableCollision, KDrawRigidBodyState, KEnableCollision, KFreezeRagdoll, KGetActorGravScale, KGetCOMOffset, KGetCOMPosition, KGetDampingProps, KGetFriction, KGetImpactThreshold, KGetInertiaTensor, KGetMass, KGetRBQuaternion, KGetRestitution, KGetRigidBodyState, KGetSimParams, KGetSkelMass, KilledBy, KImpact, KIsAwake, KIsRagdollAvailable, KMakeRagdollAvailable, KRBVecFromVector, KRBVecToVector, KRemoveAllBoneLifters, KRemoveLifterFromBone, KScaleJointLimits, KSetActorGravScale, KSetBlockKarma, KSetCOMOffset, KSetDampingProps, KSetFriction, KSetImpactThreshold, KSetInertiaTensor, KSetMass, KSetRestitution, KSetSimParams, KSetSkelVel, KSetStayUpright, KSetStayUprightParams, KSkelConvulse, KUpdateState, KVelDropBelow, KWake, Landed, LinkMesh, LinkSkelAnim, LIPSincAnimEnd, LockRootMotion, LoopAnim, LostChild, MakeNoise, MatchStarting, Move, MoveCacheEntry, MoveSmooth, NearSpot, NotifyLocalPlayerDead, NotifyLocalPlayerTeamReceived, OnlyAffectPawns, PauseStream, PawnBaseDied, PhysicsVolumeChange, PlayAnim, PlayerCanSeeMe, PlayFeedbackEffect, PlayLIPSincAnim, PlayMusic, PlayOwnedSound, PlaySound, PlayStream, PlayTeleportEffect, PostBeginPlay, PostLoadSavedGame, PostNetBeginPlay, PostNetReceive, PostTeleport, PostTouch, POVChanged, PreBeginPlay, PrecacheAnnouncer, PreSaveGame, PreTeleport, RadiusActors, RanInto, RecoverFromBadStateCode, RenderOverlays, RenderTexture, Reset, ResetStaticFilterState, SeekStream, SelfTriggered, SetAnimFrame, SetBase, SetBoneDirection, SetBoneLocation, SetBoneRotation, SetBoneScale, SetCollision, SetCollisionSize, SetDefaultDisplayProperties, SetDelayedDamageInstigatorController, SetDisplayProperties, SetDrawScale, SetDrawScale3D, SetDrawType, SetGRI, SetInitialState, SetLocation, SetOverlayMaterial, SetOwner, SetPhysics, SetRelativeLocation, SetRelativeRotation, SetRotation, SetStaticMesh, SetTimer, ShouldBeHidden, Sleep, Spawn, SpecialHandling, StartInterpolation, StopAllMusic, StopAnimating, StopFeedbackEffect, StopLIPSincAnim, StopMusic, StopStream, SuggestFallVelocity, TakeDamage, TeamLink, TextToSpeech, Tick, Timer, TimerPop, TornOff, Touch, TouchingActor, TouchingActors, Trace, TraceActors, TraceThisActor, TravelPostAccept, TravelPreAccept, Trigger, TriggerEvent, TweenAnim, UnClock, UnTouch, UnTrigger, UntriggerEvent, UpdateAnnouncements, UpdatePrecacheMaterials, UpdatePrecacheStaticMeshes, UpdateURL, UsedBy, VisibleActors, VisibleCollidingActors, ZoneChange


Variables Detail

CurrentOffsetIndex Source code

var int CurrentOffsetIndex;

CurrentProjectileType Source code

var int CurrentProjectileType;

ProjectileSwitchTime Source code

var float ProjectileSwitchTime;

RepProjectileType Source code

var byte RepProjectileType;

PersesRocketPack

FireOffsets Source code

var(PersesRocketPack) array<vector> FireOffsets;

ProjectileTypes Source code

var(PersesRocketPack) array<TProjectileType> ProjectileTypes;


Structures Detail

TProjectileType Source code

struct TProjectileType
{
var(PersesRocketPack) HudBase.SpriteWidget BarBorder;
var(PersesRocketPack) float BarBorderScaledPosition;
var(PersesRocketPack) HudBase.SpriteWidget BarWeaponIcon;
var(PersesRocketPack) HudBase.NumericWidget BarWeaponSlot;
var(PersesRocketPack) float FireInterval;
var(PersesRocketPack) Sound FireSound;
var(PersesRocketPack) class<PersesProjectileBase> ProjectileClass;
};



Functions Detail

AttemptFire Source code

event bool AttemptFire ( Controller C, bool bAltFire) )

BestMode Source code

function byte BestMode ( ) )

CalcWeaponFire Source code

simulated function CalcWeaponFire ( ) )

CanAttack Source code

function bool CanAttack ( Actor Other) )

ChangeProjectile Source code

simulated function ChangeProjectile ( byte NewProjectileType) )

DrawWeaponBar Source code

simulated function DrawWeaponBar ( Canvas C) )

LineOfSightTo Source code

function bool LineOfSightTo ( Actor Other) )
Controller.LineOfSightTo() checks from point above pawn center, which is very very wrong for the rocket pack. This implementation should be similar to the Controller version, except that it actually checks from a useful location.

PostNetReceive Source code

simulated function PostNetReceive ( ) )


Defaultproperties

defaultproperties
{
	ProjectileClass  = class'PersesMercuryMissile';
	FireSoundClass   = Sound'MercIgnite';
	FireInterval     = 0.4;
	Spread           = 0.001;
	
	bNetNotify = True;
	ProjectileTypes(0) = (ProjectileClass=class'PersesMercuryMissile',FireSound=Sound'MercIgnite',FireInterval=0.4,BarBorder=(WidgetTexture=Texture'HudContent.Generic.HUD',DrawPivot=DP_LowerMiddle,RenderStyle=STY_Alpha,TextureCoords=(X1=0,Y1=39,X2=94,Y2=93),TextureScale=0.53,PosX=0.40,PosY=1.0,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(G=255,R=255,B=255,A=200),Tints[1]=(G=255,R=255,B=255,A=200)),BarBorderScaledPosition=0.48,BarWeaponIcon=(WidgetTexture=Texture'PersesHud',DrawPivot=DP_LowerMiddle,RenderStyle=STY_Alpha,TextureCoords=(X1=123,Y1=1,X2=249,Y2=28),TextureScale=0.35,PosX=0.40,PosY=1.0,OffsetX=0,OffsetY=-15,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(G=255,R=255,B=255,A=255),Tints[1]=(G=255,R=255,B=255,A=255)),BarWeaponSlot=(RenderStyle=STY_Alpha,TextureScale=0.265,DrawPivot=DP_LowerMiddle,PosX=0.40,PosY=1.0,OffsetX=-65,OffsetY=-60,Tints[0]=(B=255,G=255,R=255,A=255),Tints[1]=(B=255,G=255,R=255,A=255)));
	ProjectileTypes(1) = (ProjectileClass=class'PersesHomingMissile',FireSound=Sound'HomingMissileFire',FireInterval=0.7,BarBorder=(WidgetTexture=Texture'HudContent.Generic.HUD',DrawPivot=DP_LowerMiddle,RenderStyle=STY_Alpha,TextureCoords=(X1=0,Y1=39,X2=94,Y2=93),TextureScale=0.53,PosX=0.48,PosY=1.0,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(G=255,R=255,B=255,A=200),Tints[1]=(G=255,R=255,B=255,A=200)),BarBorderScaledPosition=0.52,BarWeaponIcon=(WidgetTexture=Texture'PersesHud',DrawPivot=DP_LowerMiddle,RenderStyle=STY_Alpha,TextureCoords=(X1=11,Y1=29,X2=110,Y2=63),TextureScale=0.35,PosX=0.48,PosY=1.0,OffsetX=0,OffsetY=-10,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(G=255,R=255,B=255,A=255),Tints[1]=(G=255,R=255,B=255,A=255)),BarWeaponSlot=(RenderStyle=STY_Alpha,TextureScale=0.265,DrawPivot=DP_LowerMiddle,PosX=0.48,PosY=1.0,OffsetX=-65,OffsetY=-60,Tints[0]=(B=255,G=255,R=255,A=255),Tints[1]=(B=255,G=255,R=255,A=255)));
	ProjectileTypes(2) = (ProjectileClass=class'PersesFragMissile',FireSound=Sound'FragMissileFire',FireInterval=0.5,BarBorder=(WidgetTexture=Texture'HudContent.Generic.HUD',DrawPivot=DP_LowerMiddle,RenderStyle=STY_Alpha,TextureCoords=(X1=0,Y1=39,X2=94,Y2=93),TextureScale=0.53,PosX=0.56,PosY=1.0,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(G=255,R=255,B=255,A=200),Tints[1]=(G=255,R=255,B=255,A=200)),BarBorderScaledPosition=0.56,BarWeaponIcon=(WidgetTexture=Texture'PersesHud',DrawPivot=DP_LowerMiddle,RenderStyle=STY_Alpha,TextureCoords=(X1=9,Y1=0,X2=110,Y2=29),TextureScale=0.35,PosX=0.56,PosY=1.0,OffsetX=0,OffsetY=-13,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(G=255,R=255,B=255,A=255),Tints[1]=(G=255,R=255,B=255,A=255)),BarWeaponSlot=(RenderStyle=STY_Alpha,TextureScale=0.265,DrawPivot=DP_LowerMiddle,PosX=0.56,PosY=1.0,OffsetX=-65,OffsetY=-60,Tints[0]=(B=255,G=255,R=255,A=255),Tints[1]=(B=255,G=255,R=255,A=255)));
	ProjectileTypes(3) = (ProjectileClass=class'PersesNapalmRocket',FireSound=Sound'NapalmRocketFire',FireInterval=0.6,BarBorder=(WidgetTexture=Texture'HudContent.Generic.HUD',DrawPivot=DP_LowerMiddle,RenderStyle=STY_Alpha,TextureCoords=(X1=0,Y1=39,X2=94,Y2=93),TextureScale=0.53,PosX=0.64,PosY=1.0,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(G=255,R=255,B=255,A=200),Tints[1]=(G=255,R=255,B=255,A=200)),BarBorderScaledPosition=0.60,BarWeaponIcon=(WidgetTexture=Texture'PersesHud',DrawPivot=DP_LowerMiddle,RenderStyle=STY_Alpha,TextureCoords=(X1=123,Y1=28,X2=249,Y2=64),TextureScale=0.35,PosX=0.64,PosY=1.0,OffsetX=0,OffsetY=-10,ScaleMode=SM_Right,Scale=1.000000,Tints[0]=(G=255,R=255,B=255,A=255),Tints[1]=(G=255,R=255,B=255,A=255)),BarWeaponSlot=(RenderStyle=STY_Alpha,TextureScale=0.265,DrawPivot=DP_LowerMiddle,PosX=0.64,PosY=1.0,OffsetX=-65,OffsetY=-60,Tints[0]=(B=255,G=255,R=255,A=255),Tints[1]=(B=255,G=255,R=255,A=255)));


	FireOffsets[0]  = (Y=41,Z=19);
	FireOffsets[1]  = (Y=-65,Z=19);
	FireOffsets[2]  = (Y=65,Z=0);
	FireOffsets[3]  = (Y=-41,Z=0);
	FireOffsets[4]  = (Y=41,Z=-19);
	FireOffsets[5]  = (Y=-65,Z=-19);
	FireOffsets[6]  = (Y=65,Z=19);
	FireOffsets[7]  = (Y=-41,Z=19);
	FireOffsets[8]  = (Y=41,Z=0);
	FireOffsets[9]  = (Y=-65,Z=0);
	FireOffsets[10] = (Y=65,Z=-19);
	FireOffsets[11] = (Y=-41,Z=-19);


	Mesh=Mesh'ONSFullAnimations.MASRocketPack';
	DrawScale=0.8;
	YawBone=RocketPivot;
	YawStartConstraint=0;
	YawEndConstraint=65535;
	PitchBone=RocketPacks;
	PitchUpLimit=16300;
	PitchDownLimit=60000;
	FireForce="RocketLauncherFire";
	WeaponFireAttachmentBone=RocketPackFirePoint;
	WeaponFireOffset=0.0;
	bAimable=True;
	CollisionRadius=+60.0;
	DualFireOffset=50.0; 
	
	AIInfo(0)=(bLeadTarget=true,bTrySplash=true,WarnTargetPct=0.5);
}



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