| Home Page | Recent Changes

Quad

Quick Description

I exist. I code. I'm sure I'll say more things later. I'm making this account only because, as I've been writing more and more UnrealScript I've noticed things that aren't quite right in this here wiki.

I look forward to working and learning with everyone.

Projects

VA Move Test 1

I decided to get down and dirty quite quickly, so I'm writing an experimental mutator which dramatically modifies players' control, weapons, and etc. according to a design I haven't quite decided yet.

Journal

Should I make a DeveloperJournal/Quad??

Mon Jun 30 PDT 2003

I've finished the targetting, camera, and hud. Physics are coming along well. It's rather annoying and depressing, however, to deprogram xPlayer of all the features I don't need. Furthermore, it is annoying adding in the features I do need. (Why didn't dodge have diagonal support?)

Wed Jun 25 PDT 2003

Modifying the player's rotation without modifying PlayerController:

class RotTest extends Info;

var UnrealPawn target_pawn;

simulated function Tick (float DeltaTime)
{
  local PlayerController  PC;

  if (Role < ROLE_Authority)
    PC = Level.GetLocalPlayerController ();
  else
    PC = PlayerController (Owner);

  if (PC == None || PC.Pawn == None)
  {
    Self.Destroy ();

    return;
  }
  else if (Role == ROLE_Authority
           && (PC.IsDead ()
               || target_pawn == None
               || target_pawn.Controller == None
        )
          )
    target_pawn = None;

  if (Role >= ROLE_SimulatedProxy)
  {
    if (target_pawn == None)
      PC.bTurn180     = 0;
    else
    {   
      PC.TurnRot180   = rotator (target_pawn.Location - PC.Pawn.Location);
      PC.bSetTurnRot  = true;
      PC.bTurn180     = 1;   
    }
  }  
}    
     
replication
{
  reliable if (Role == ROLE_Authority)
    target_pawn;
}
 
defaultproperties
{
  RemoteRole      = ROLE_SimulatedProxy;
  bAlwaysRelevant = true;
}

Wormbo: Welcome to the Wiki and happy coding. ;)

Corran: We-hel-come to the WWW (Wonderful Wiki Website). :D


Category Personal Page

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

FAQs

Help Desk

Mapping Topics

Mapping Lessons

UnrealEd Interface

UnrealScript Topics

UnrealScript Lessons

Making Mods

Class Tree

Modeling Topics

Chongqing Page

Log In