๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.games.unreal.tournament
Article #191412

Re: The final skill to master ... any advice?

#191412
From: goPostal
Date: Fri, 19 Dec 2008 00:46
100 lines
4370 bytes
"ยงฤร—darts" <sixdartsREMOVE@hotmail.com> wrote in message 
news:F-edneZLT_mYCdfUnZ2dnUVZ_u-dnZ2d@giganews.com...
>
> On 17-Dec-2008, "goPostal" <agutgopostal@hotmail.com> wrote:
>
>> Stupid OE screwed up the format. I'll fix it tonight.
>
> I know that feeling.
>
> Where did you learn all this stuff?  A couple years back when we first 
> "met"
> in this group, it was a different situation.
>
> Anyway, I'm very interested to know what can and can't be blocked.  I'm 
> also
> trying to figure out if blocking stuff can be done with either primary or
> secondary fire.

OK, I'll try dots and see if that holds the code right. If it does, I'll 
post an explanation in a moment:


.state Firing
.{
.    function AltFire(float F)
.    {
.    }
.
.    function Tick( float DeltaTime )
.    {
.        local Pawn P;
.        local Rotator EnemyRot;
.        local vector HitLocation, HitNormal, StartTrace, EndTrace, X, Y, Z;
.        local actor HitActor;
.
.        if ( bChangeWeapon )
.            GotoState('DownWeapon');
.
.        if (  Bot(Owner) != None )
.        {
.            if ( Bot(Owner).Enemy == None )
.                Bot(Owner).bFire = 0;
.            else
.                Bot(Owner).bFire = 1;
.        }
.        P = Pawn(Owner);
.        if ( P == None )
.        {
.            AmbientSound = None;
.            GotoState('');
.            return;
.        }
.        else if( P.bFire==0 )
.        {
.            TraceFire(0);
.            PlayFiring();
.            GoToState('FireBlast');
.            return;
.        }
.
.        ChargeSize += 0.75 * DeltaTime;
.
.        Count += DeltaTime;
.        if ( Count > 0.2 )
.        {
.            Count = 0;
.            Owner.MakeNoise(1.0);
.        }
.        if (ChargeSize > 1)
.        {
.            if ( !P.IsA('PlayerPawn') && (P.Enemy != None) )
.            {
.                EnemyRot = Rotator(P.Enemy.Location - P.Location);
.                EnemyRot.Yaw = EnemyRot.Yaw & 65535;
.                if ( (abs(EnemyRot.Yaw - (P.Rotation.Yaw & 65535)) > 8000)
.                    && (abs(EnemyRot.Yaw - (P.Rotation.Yaw & 65535)) < 
57535) )
.                    return;
.                GetAxes(EnemyRot,X,Y,Z);
.            }
.            else
.                GetAxes(P.ViewRotation, X, Y, Z);
.            StartTrace = P.Location + CalcDrawOffset() + FireOffset.X * X + 
FireOffset.Y * Y + FireOffset.Z * Z;
.            if ( (Level.NetMode == NM_Standalone) && P.IsA('PlayerPawn') )
.                EndTrace = StartTrace + 25 * X;
.            else
.                EndTrace = StartTrace + 60 * X;
.            HitActor = Trace(HitLocation, HitNormal, EndTrace, StartTrace, 
true);
.            if ( (HitActor != None) && (HitActor.DrawType == DT_Mesh) )
.            {
.                ProcessTraceHit(HitActor, HitLocation, HitNormal, 
vector(AdjustedAim), Y, Z);
.                PlayFiring();
.                GoToState('FireBlast');
.            }
.        }
.    } 
Technical Details
Message-ID: <2aC2l.8410$%z5.1580@newsfe09.iad>
Path: mbox-mo1.pugleaf.net!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder3.cambrium.nl!feed.tweaknews.nl!postnews.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe09.iad.POSTED!7564ea0f!not-for-mail
References: <VsadnYncI41oWNXUnZ2dnUVZ_gednZ2d@giganews.com> <T982l.10123$297.4107@newsfe23.iad> <Za82l.10124$297.4683@newsfe23.iad> <F-edneZLT_mYCdfUnZ2dnUVZ_u-dnZ2d@giganews.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder3.cambrium.nl!feed.tweaknews.nl!postnews.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe09.iad.POSTED!7564ea0f!not-for-mail
From: "goPostal" <agutgopostal@hotmail.com>
Newsgroups: alt.games.unreal.tournament
References: <VsadnYncI41oWNXUnZ2dnUVZ_gednZ2d@giganews.com> <T982l.10123$297.4107@newsfe23.iad> <Za82l.10124$297.4683@newsfe23.iad> <F-edneZLT_mYCdfUnZ2dnUVZ_u-dnZ2d@giganews.com>
Subject: Re: The final skill to master ... any advice?
Lines: 102
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Original
Message-ID: <2aC2l.8410$%z5.1580@newsfe09.iad>
NNTP-Posting-Host: ajhcoboonebdnpflemaihmdmaafnapij
X-Complaints-To: abuse@charter.net
X-Trace: gbibggbfamgkfdiofkhgnhldfhiklkalcplbmhlnbnblipgiajhcoboonebdnpflmbmokdamanibbeedncmpcogflafaecmocgpkmbbdmhfalaffnocibdpihgocheedbgjklipccefckbgb
NNTP-Posting-Date: Fri, 19 Dec 2008 00:46:54 UTC
Date: Thu, 18 Dec 2008 16:46:52 -0800
Bytes: 4394
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit