Main Menu

BakerCo

Started by BakerCo, August 07, 2007, 09:45:05 PM

Previous topic - Next topic

iservealot

Alright, I'll PM that now.

-EDIT- PM system doesn't work. lol

contact me via MSN or Xfire

Xfire: moosexllama
MSN: anamadavis@attbi.com

Overstatement

#16
Quote

//TO:do MouseWheel Controls walk/run/sprintSpeed - PlayerInput class?
//TO:do Lock Camera To shoulder
//TO:do implement view switch

class SpyController extends PlayerController config(user);

//vars
var bool bAimWeapon;    //used to determine whether we are aiming

//Setup our view
event PlayerCalcView(out actor ViewActorout vector CameraLocationout rotator CameraRotation )
{
     
bBehindView=true;
     
ViewActor ViewTarget;

     
CameraLocation ViewActor.Location;
     
CameraLocation.Z+=50;
     
CameraLocation CameraLocation 100 vector(CameraRotation);
     
//Are we currently aiming a weapon
     
if (!bAimWeapon)
     {
          
//if not we must be in 3rd person so setup our view based on movement
          
if(IsInState('PlayerWalking') || IsInState('PlayerSwimming'))
          {
               if(
VSize(Pawn.Velocity) > 0)//while moving we need to bas our motion around our mouse to mimic SC
                    
bFreeCamera=false;
               else 
//not moving so we can rotate freely around ourself
                    
bFreeCamera=true;
          }
     }
     else   
//since we are aiming lets setup that view
     
{
          
bFreeCamera=false;

          
CameraLocation.Z-=(50-15); //I can't be bothered to take out a calculator -Overstatement
     
}
}
//reverse the walk/run key
function HandleWalking()
{
   if ( 
Pawn != None )
      
Pawn.SetWalking( (bRun == 0) && !Region.Zone.IsA('WarpZoneInfo') );
}

defaultproperties
{
      
bAimWeapon=false
}


Changed to make it shorter. Why did you make it so long? (Our php syntax highlighting colours suck)

Edit: Don't use if statements, use states instead!

Tidenburg

Argh. I still get confused by classes, I'm only just beginning to get what they do but for the most part that makes sense to me :) Glad to see some very very very basic things beginning to take shape!

Gawain

you have no idea how happy this makes me ^^

Overstatement

Quote from: BakerCo
Thanks for the opportunity but I can't the Coast Guard which I am currently serving has placed me active duty so I have been taken from my current station which would have made it easier to work for you guys sorry but unfortunately shit happens.


again thanks for your time and Overstatement you are the single most depressing person on the planet :D

find some peace man


reason3d

lol iservealot has no formal education iin scripting and you let him run this ? sad .

Tidenburg

GTFO we don't need your massive ego on these boards, don't get tetchy just because they don't want a schizophrenic on the team.

Westfall

Nice necropost. You're an idiot still, to no surprise.

LennardF1989

Quote from: reason3d on November 15, 2007, 05:18:50 PM
lol iservealot has no formal education iin scripting and you let him run this ? sad .

We never said he is a coder...

Westfall

Quote from: LennardF1989 on November 15, 2007, 07:51:31 PM
Quote from: reason3d on November 15, 2007, 05:18:50 PM
lol iservealot has no formal education iin scripting and you let him run this ? sad .

We never said he is a coder...

pwnt.

Gui Brazil

He's out mascot!










Just kidding.:P

iservealot

Quote from: LennardF1989 on November 15, 2007, 07:51:31 PM
Quote from: reason3d on November 15, 2007, 05:18:50 PM
lol iservealot has no formal education iin scripting and you let him run this ? sad .

We never said he is a coder...

Neither did I....  ???