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

UnrealShare.FemaleBody


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
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
//=============================================================================
// FemaleBody.
//=============================================================================
class FemaleBody expands HumanCarcass;

#exec MESH IMPORT MESH=Fem1Body ANIVFILE=MODELS\F1Dead_a.3D DATAFILE=MODELS\Female_d.3D ZEROTEX=1
#exec MESH ORIGIN MESH=Fem1Body X=-30 Y=400 Z=20 YAW=64 ROLL=-64

#exec MESH SEQUENCE MESH=Fem1Body SEQ=All     STARTFRAME=0  NUMFRAMES=39
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Slump1  STARTFRAME=0  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Slump2  STARTFRAME=1  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Hang1   STARTFRAME=2  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Hang2   STARTFRAME=3  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Drape1  STARTFRAME=4  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Drape2  STARTFRAME=5  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Twist1  STARTFRAME=6  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Fold1   STARTFRAME=7  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Twist2  STARTFRAME=8  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Half1   STARTFRAME=9  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Hole1   STARTFRAME=10  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Drape3  STARTFRAME=11  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Dead2   STARTFRAME=12  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Dead3   STARTFRAME=13  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Dead4   STARTFRAME=14  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Dead5   STARTFRAME=15  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Dead6   STARTFRAME=16  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Dead7   STARTFRAME=17  NUMFRAMES=1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Dead1   STARTFRAME=18  NUMFRAMES=1	GROUP=Dead1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Dead1A  STARTFRAME=19  NUMFRAMES=10	GROUP=Dead1
#exec MESH SEQUENCE MESH=Fem1Body SEQ=Dead1B  STARTFRAME=29  NUMFRAMES=10	GROUP=Dead1

#exec MESHMAP SCALE MESHMAP=Fem1Body X=0.056 Y=0.056 Z=0.112
#exec TEXTURE IMPORT NAME=Sonya FILE=MODELS\Sonya.PCX GROUP=Skins 
#exec TEXTURE IMPORT NAME=JFemale1 FILE=MODELS\Sonya.PCX GROUP=Skins  // REMOVE THIS!!!!!
#exec MESHMAP SETTEXTURE MESHMAP=Fem1Body NUM=0 TEXTURE=Sonya

#exec AUDIO IMPORT FILE="Sounds\Female\convulse.WAV" NAME="ConvulseFem" GROUP="Female"

var bool bFullyDead;

function Trigger( actor Other, pawn EventInstigator )
{
    if ( bFullyDead )
        return;
    if ( GetAnimGroup(AnimSequence) != 'Dead1' )
        bFullyDead = true;
    else if ( !IsAnimating() )
    {
        if ( FRand() < 0.5 )
            PlayAnim('Dead1A');
        else
            PlayAnim('Dead1B');
        bFullyDead = (FRand() < 0.5);
    }
        
}

function TakeDamage( int Damage, Pawn InstigatedBy, Vector Hitlocation, 
                        Vector Momentum, name DamageType)
{
    if ( !bFullyDead )
    {
        if ( GetAnimGroup(AnimSequence) != 'Dead1' )
            bFullyDead = true;
        else if ( !IsAnimating() )
        {
            if ( FRand() < 0.5 )
                PlayAnim('Dead1A');
            else
                PlayAnim('Dead1B');
            bFullyDead = (FRand() < 0.5);
        }
    }

    Super.TakeDamage(Damage, instigatedBy, HitLocation, Momentum, DamageType);
}

function Convulse()
{
    PlaySound(sound'ConvulseFem',SLOT_Interact);
}

defaultproperties
{
     MasterReplacement=Class'UnrealShare.femalemasterchunk'
     Physics=PHYS_None
     LifeSpan=0.000000
     AnimSequence=Slump1
     AnimFrame=0.000000
     Mesh=Mesh'UnrealShare.Fem1Body'
     Mass=100.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.805 - Created with UnCodeX