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

BonusPack.CrateActor


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
class CrateActor extends Actor;

#exec OBJ LOAD FILE=TowerStatic.usx
#exec OBJ LOAD FILE=Egypt_techmeshes_Epic.usx
#exec OBJ LOAD FILE=HumanoidHardware.usx

function PostBeginPlay()
{
    local Actor OwnerBase;
    local vector HitNormal, HitLocation;
    
    SetBase(Owner);
    if ( Owner.Base != None )
        OwnerBase = Owner.Base;
    else
        OwnerBase = Trace(HitLocation, HitNormal, Owner.Location - vect(0,0,300), Owner.Location, false);

    if ( TerrainInfo(OwnerBase) != None )
        SetTerrainMesh();
    else
        SetIndoorMesh();
}

function SetTerrainMesh()
{
    if ( Level.OutdoorCamouflageMesh == None )
    {
        if ( (Level.Title ~= "Facing Worlds 3") || (Level.Title ~= "Temple Of Anubis") || (Level.Title ~= "Sun Temple") )
        {
            Level.OutdoorCamouflageMesh = StaticMesh'Egypt_techmeshes_Epic.Deco.egypt_techpassagesec6';
            Level.OutdoorMeshDrawScale = 0.8;
        }
        else
        {
            Level.OutdoorCamouflageMesh = StaticMesh'TowerStatic.TowerStoneC';
            Level.OutDoorMeshDrawScale = 0.235;
        }
    }   
    SetStaticMesh(Level.OutdoorCamouflageMesh);
    SetDrawScale(Level.OutDoorMeshDrawScale);
}

function SetIndoorMesh()
{
    if ( Level.IndoorCamouflageMesh == None )
    {
        if ( (Level.Title ~= "Facing Worlds 3") || (Level.Title ~= "Temple Of Anubis") || (Level.Title ~= "Sun Temple") )
        {
            Level.IndoorCamouflageMesh = StaticMesh'Egypt_techmeshes_Epic.Deco.egypt_techpassagesec6';
            Level.IndoorMeshDrawScale = 0.8;
        }           
        else
        {
            Level.IndoorCamouflageMesh = StaticMesh'HumanoidHardware.jribbedcolumn01HA';
            Level.IndoorMeshDrawScale = 0.45;
        }           
    }
    SetStaticMesh(Level.IndoorCamouflageMesh);
    SetDrawScale(Level.IndoorMeshDrawScale);
}

defaultproperties
{
     DrawType=DT_StaticMesh
     StaticMesh=StaticMesh'TowerStatic.Rock.TowerStoneC'
     bStasis=True
     bAlwaysZeroBoneOffset=True
     NetUpdateFrequency=10.000000
     DrawScale=0.235000
     bOwnerNoSee=True
     bHardAttach=True
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Wed 2/8/2006 16:29:42.000 - Creation time: Wed 7/2/2007 19:16:36.015 - Created with UnCodeX