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

DeusEx.Fish2Generator


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
//=============================================================================
// Fish2Generator.
//=============================================================================
class Fish2Generator extends PawnGenerator;

function vector GenerateRandomVelocity()
{
    local vector newVector;
    local float  magnitude;

    magnitude = VSize(SumVelocities);
    if (magnitude < 0.01)
        magnitude = 0.01;
    newVector = Vector(Rand(32768)*2*rot(0,1,0))*magnitude*1.1;

    return newVector;
}

function float GenerateCoastPeriod()
{
    return (FRand()*5+3);
}

defaultproperties
{
     PawnClasses(0)=(Count=10,PawnClass=Class'DeusEx.Fish2')
     Alliance=Fish
     PawnHomeExtent=400.000000
     ActiveArea=1200.000000
     Radius=70.000000
     MaxCount=10
     bPawnsTransient=True
     bLOSCheck=False
     Focus=0.600000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Mon 8/11/2021 16:22:52.000 - Creation time: Mon 8/11/2021 16:31:26.381 - Created with UnCodeX