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

UnrealI.Translator


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
//=============================================================================
// Translator.
//=============================================================================
class Translator expands Pickup;

#exec AUDIO IMPORT FILE="Sounds\Pickups\HEALTH1.WAV" NAME="HEALTH1" GROUP="Pickups"

#exec TEXTURE IMPORT NAME=I_Tran FILE=TEXTURES\HUD\i_TRAN.PCX GROUP="Icons" MIPS=OFF

#exec MESH IMPORT MESH=TranslatorMesh ANIVFILE=MODELS\tran_a.3D DATAFILE=MODELS\tran_d.3D X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=TranslatorMesh X=0 Y=0 Z=0 YAW=0
#exec MESH SEQUENCE MESH=TranslatorMesh SEQ=All    STARTFRAME=0  NUMFRAMES=1
#exec TEXTURE IMPORT NAME=JTranslator1 FILE=MODELS\tran.PCX GROUP="Skins" 
#exec MESHMAP SCALE MESHMAP=TranslatorMesh X=0.04 Y=0.04 Z=0.08
#exec MESHMAP SETTEXTURE MESHMAP=TranslatorMesh NUM=1 TEXTURE=JTranslator1

var() string[255] NewMessage;
var string[255] OldMessage, OlderMessage, Hint;
var bool bNewMessage, bNotNewMessage, bShowHint;

replication
{
    // Things the server should send to the client.
    reliable if( Role==ROLE_Authority && bNetOwner )
        NewMessage, bNewMessage, bNotNewMessage;
}

state Activated
{

Begin: 
}

state Deactivated
{
Begin:
    bShowHint = False;
    bNewMessage = False;
    bNotNewMessage = False;
}

function ActivateTranslator(bool bHint)
{
    if (bHint && Hint=="")
    {
        bHint=False;
        Return;
    }
    bShowHint = bHint;
    Activate();
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: za 22-4-2006 12:52:32.000 - Creation time: za 22-4-2006 12:53:47.406 - Created with UnCodeX