There is no spoon

UE2:TextureHelperGeneric (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> LegendObjectComponent >> TextureHelperGeneric
Package: 
U2
Direct subclasses:
BodyLandTextureHelperGeneric, LandTextureHelperGeneric, MoveTextureHelperGeneric, ProneTextureHelperGeneric

TextureHelperGeneric.uc $Author: Mfox $ $Date: 12/15/02 6:43p $ $Revision: 31 $

Constants

TraceTextureFudgeFactor

Value: 128.0


Properties

Property group 'U2Textures'

BasePitch

Type: float

Modifiers: config

pitch multiplier

Default value: 1.0

BaseVolume

Type: float

Modifiers: config

volume multiplier (for NPCs -- player scaled down)

Default value: 1.0

DefaultTextureType

Type: Material.ETextureType

Modifiers: config

default texture type (if none hit)

Default value: TT_Stone

PitchVariancePercent

Type: float

Modifiers: config

percentage to vary final pitch by +/-

Default value: 10.0

PlaySoundRadius

Type: float

Modifiers: config

radius to use with PlaySound

Default value: 75.0

TextureEffects

Type: EffectInfoT

Array size: 128 (128 )

Modifiers: config

texture-specific sounds -- assumes that texturetypes are compacted (no gaps) and sorted

VolumeVariancePercent

Type: float

Modifiers: config

percentage to vary final volume by +/-

Default value: 10.0

Internal variables

MakeNoiseVolumeMultiplier

Type: float

amount to scale volume by for use with MakeNoise

Default value: 0.35

RunningSoundSpeed

Type: float

below this speed walking sounds used (lower volume)

Default value: 200.0

WalkVolumeMultiplier

Type: float


Default value: 0.25

Structs

EffectInfoT

Material.ETextureType TextureType 
texture on which sound plays
string SoundStr 
name of actual sound to play
float Volume 
Volume to use
float Pitch 
string EffectName 
if set, name of class to spawn along with sound

Static functions

CheckForWater

static function bool CheckForWater (U2Pawn U2P)


DetermineTextureEffect

static function DetermineTextureEffect (U2Pawn U2P, Material.ETextureType TextureType, float VolumeMultiplier)


DoTextureEffect

static function DoTextureEffect (U2Pawn U2P, Sound SelectedSound, float SelectedVolume, float SelectedPitch, class<ActorEffectC)


GetTextureParameters

static function bool GetTextureParameters (U2Pawn U2P, Material.ETextureType TextureType, out Sound SoundOut, out float VolumeOut, out float PitchOut, out class<ActorEffectOut)


GetTextureString

static function string GetTextureString (Material.ETextureType TextureType)


GetTextureType

static function Material.ETextureType GetTextureType (U2Pawn U2P)


HandleLandingOnTexture

static function HandleLandingOnTexture (U2Pawn U2P, float ImpactSpeed)


HandleMovingOnTexture

static function HandleMovingOnTexture (U2Pawn U2P)


MaybeMakeNoise

static function MaybeMakeNoise (U2Pawn U2P, float SelectedVolume)


SelectEffect

static function int SelectEffect (U2Pawn U2P, Material.ETextureType TextureType)


TextureError

static function TextureError (U2Pawn U2P, coerce string strMsg, Material.ETextureType TextureType)