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

UnrealShare.FemaleTorso


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
//=============================================================================
// FemaleTorso.
//=============================================================================
class FemaleTorso expands HumanCarcass;

#exec MESH IMPORT MESH=Body1 ANIVFILE=MODELS\g_Bod1_a.3D DATAFILE=MODELS\g_Bod1_d.3D X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=Body1 X=0 Y=0 Z=-160 YAW=-64
#exec MESH SEQUENCE MESH=Body1 SEQ=All    STARTFRAME=0   NUMFRAMES=1
#exec MESH SEQUENCE MESH=Body1 SEQ=Still  STARTFRAME=0   NUMFRAMES=1
#exec TEXTURE IMPORT NAME=JBody11  FILE=MODELS\g_body1.PCX GROUP=Skins FLAGS=2
#exec MESHMAP SCALE MESHMAP=Body1 X=0.06 Y=0.06 Z=0.12
#exec MESHMAP SETTEXTURE MESHMAP=Body1 NUM=1 TEXTURE=JBody11

function Initfor(actor Other)
{
    Velocity = other.Velocity;
    Mass = 0.7 * Other.Mass;
    if (FRand() < 0.5)
        Buoyancy = 1.06 * Mass; // float corpse
    else
        Buoyancy = 0.9 * Mass;
}

function CreateReplacement()
{
    local carcass carc;

    if (bHidden)
        return; 
    carc = Spawn(class 'PHeart');
    if (carc != None)
    {
        carc.Bugs = Bugs;
        Bugs = None;
        carc.Initfor(self);
        carc.Velocity = velocity; //no rand
    }
    // arm, leg and thigh
    carc = Spawn(class 'Liver');
    if (carc != None)
        carc.Initfor(self);
    carc = Spawn(class 'Thigh');
    if (carc != None)
        carc.Initfor(self);
    carc = Spawn(class 'Liver');
    if (carc != None)
        carc.Initfor(self);
    carc = Spawn(class 'Stomach');
    if (carc != None)
        carc.Initfor(self);
    carc = Spawn(class 'PHeart');
    if (carc != None)
        carc.Initfor(self);
    carc = Spawn(class 'CreatureChunks');
    if (carc != None)
    {
        carc.Mesh = mesh 'CowBody1';
        carc.Initfor(self);
    }
}

function ReduceCylinder()
{
    bReducedHeight = true;
}

defaultproperties
{
     flies=4
     Mesh=Mesh'UnrealShare.Body1'
     CollisionHeight=6.000000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Sun 21/2/2010 23:48:40.000 - Creation time: Sun 21/2/2010 23:49:51.821 - Created with UnCodeX