I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

UE2:HackTrigger (U2)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2 Object >> Actor >> HackTrigger
Package: 
U2
Direct subclasses:
DeploymentPoint, EnergySource, HackSwitch, HackTriggerProxied, ShieldWallTrigger

HackTrigger.uc

Constants

MaxTeams

Value: 4


Properties

Property group 'HackTrigger'

AlreadyHackedSound

Type: Sound

sound when a fully hacked trigger is used by hacked team

Default value: Sound'U2A.Hacking.AlreadyHacked'

bIgnoreAlreadyHacked

Type: bool

don't re-dispatch events when hack team re-uses us.

bTriggerTeam

Type: bool

whether to call SetTeam on all Event targets

DecayRate

Type: float

rate at which hacking progress decays

Default value: 0.4

Description

Type: string

shows up on the hud

Default value: "Panel"

HackAmbientSound

Type: Sound

sound while hacking

Default value: Sound'U2A.Hacking.HackAmbient'

HackCompletedSound

Type: Sound

sound when trigger is fully hacked

Default value: Sound'U2A.Hacking.HackCompleted'

HackStartSound

Type: Sound

sound when hacking begins

Default value: Sound'U2A.Hacking.HackStart'

RehackDelay

Type: float

seconds to wait between hacking attempts

Team

Type: int

-1 for neutral

Default value: 255

TotalHackSeconds

Type: float

total time needed to hack the object to a team

Default value: 3.0

Internal variables

HackGainedMessage

Type: class<LocalMessage>

game message for hack team

HackLostMessage

Type: class<LocalMessage>

game message for losing team

LastHackedTime

Type: float

time at which the object was last hacked

RepEvent

Type: name

replicated actor event

ReplicatedActorID

Type: string


TeamProgress

Type: float

Array size: 4 (MaxTeams)

time this object has been hacked by various teams

Users

Type: array<UserInfoT>

list of players currently using me

Default values

Property Value
bBlockNonZeroExtentTraces False
bCollideActors True
bProjTarget True
bShadowCast True
bStaticLighting True
bUsable True
DrawType DT_StaticMesh
SoundOcclusion OCCLUSION_None

Structs

UserInfoT

Modifiers: native

bool bUsing 
Controller
float Progress 

Functions

Events

PostBeginPlay

event PostBeginPlay ()

Overrides: Actor.PostBeginPlay


PreBeginPlay

event PreBeginPlay ()

Overrides: Actor.PreBeginPlay


Tick

event Tick (float DeltaTime)

Overrides: Actor.Tick


Other instance functions

ActiveUserCount

function int ActiveUserCount ()


AddUser

function AddUser (Controller NewUser)


DecayHackProgress

function DecayHackProgress (float DeltaTime)


Dispatch

function Dispatch ()


GetDescription

interface function string GetDescription (Controller User)

Overrides: Actor.GetDescription


GetTeam

simulated function int GetTeam ()

Overrides: Actor.GetTeam


GetTeamProgress

simulated function float GetTeamProgress (Controller C)


GetUseIconIndex

interface function int GetUseIconIndex (Controller User)

Overrides: Actor.GetUseIconIndex


GetUsePercent

interface function float GetUsePercent (Controller User)

Overrides: Actor.GetUsePercent


GetUserIndex

function int GetUserIndex (Controller C)


GetUserTeam

simulated function int GetUserTeam (Controller C)


HandleAlreadyHacked

function HandleAlreadyHacked ()


HandleAmbientSound

function HandleAmbientSound (Sound NewSound)


HandleHacked

function HandleHacked (int NewHackedTeam)


HandlePlaySound

function HandlePlaySound (Sound NewSound)


HasUseBar

interface function bool HasUseBar (Controller User)

Overrides: Actor.HasUseBar


IsHacking

function bool IsHacking (Controller C)


OnUnuse

function OnUnuse (Actor Other)

Overrides: Actor.OnUnuse


OnUse

function OnUse (Actor Other)

Overrides: Actor.OnUse


PlayHackedMessages

function PlayHackedMessages (int OldTeam, int NewTeam)


ProgressExists

function bool ProgressExists ()


RegisterHackScore

function RegisterHackScore (Controller PrimaryHacker, Controller SecondaryHacker)


RemoveIdleUsers

function RemoveIdleUsers ()


RemoveUser

function RemoveUser (Controller RemovedUser)


SetTeam

simulated function SetTeam (int NewTeam)

Overrides: Actor.SetTeam


UnDispatch

function UnDispatch ()


UserCount

function int UserCount (int DesiredTeam, optional bool bActiveUsers)