| Home Page | Recent Changes | Preferences

# Code References

This is a page for various code references off the UT2003 code. Any corrections would be helpful. Arrows indicate an Extends relationship with the leftmost class being the parent and subsequent classes being its children.

### XAdmin

### XEffects

### XGame

### XGame_rc

### XInterface

### XPickups

TournamentPickup → TournamentHealth → HealthPack

TournamentPickup → TournamentHealth → MiniHealthPack

TournamentPickup → TournamentHealth → SuperHealthPack?

TournamentPickup → AdrenalinePickup

TournamentPickup → UDamagePack

TournamentPickup → ShieldPickup? → ShieldPack

TournamentPickup → ShieldPickup? → SuperShieldPack?

### XPickups_rc

### XWeapons

#### Flak Cannon (UT2003)

ProjectileFire? → FlakAltFire

#### Minigun (UT2003)

Weapon → Minigun

UTWeaponPickup? → MinigunPickup

InstantFire → MinigunFire → MinigunAltFire

Ammunition → MinigunAmmo

UTAmmoPickup → MinigunAmmoPickup

xWeaponAttachment? → MinigunAttachment

### XWeapons_rc

### XWebAdmin

### Core

### Engine

### Gameplay

### Vehicles

### UnrealGame

## Comments

Dragonmaw: I'm gonna try and update this page at least once a week (usually Saturday) with a few more code references. Any corrections will be helpful.

Wormbo: I doubt this will help "n00bs who don't want to decompile and figure it out themselves". UnrealWiki class pages like Actor, Interaction, WeaponFire or also Minigun should contain a list of properties, structs, enums and methods declared and used in that class. Just copying the code is pointless and ineffective, concidering there are over 1300 classes only in UT2003 and the Wiki also describes UT classes. See those other pages for how class pages should look like.

Sobiwan: Is this supposed to be what http://unreal.student.utwente.nl/uncodex/ is all about?

Wormbo: That's just the UnCodeX output of the UT2003 classes plus El Muerte's own stuff. A wiki class page should look like e.g. ZoneInfo. Quoting the code of entire classes isn't useful, even if there are a lot of comments in it.

Tarquin: All the commented default properties should be listed as properties on the relevant class page. ("AttachLoc" for example. Which class defines this?) It might be useful to have a few commented class scripts as tutorials, but not the whole lot!

Dragonmaw: Maybe I'm just a bit ambitious. Besides, I'm bored, and figuring out the code will help me learn UScript. If you want I won't do all of them, but I plan on doing a few Engine classes. Sorry if I did something wrong

RDGDanClark: I don't think you did anything wrong... but this is a bit too much. I think it's a great idea to have heavily commented examples of a few classes from each category, especially weapons and pickups. I respectfully disagree with Wormbo – when I was first learning to code C++, it helped me immeasurably to have a block of working, heavily commented code to help me trace through the functionality. The only thing that would concern me on a page like this is the likelihood that classes will change with each patch and especially with UT2004. That being the case, each class laid out should have a build number at the top of the page.

Dragonmaw: I went ahead and cut down the classes to be commented to the main areas people will have difficulty in. And I have to agree with Clark, commented code really helps along the learning process.

Tarquin: Could you follow the standard layout for pages named after classes? If it makes the whole page too long, I suggest you put the code analysis at {{classname/script}}

RDGDanClark: No problem.

Tarquin: It would be nice to tie this in with the "how stuff works" section on the UnrealScript page: How UT2003 Weapons Work. Also, you could make longer comments to the code and take them out of the code, like on How UT2003 Weapons Work/Firing A Weapon.

RDGDanClark: I think the idea, especially in the case of the weapon examples, is that someone could simply copy/paste the entire block of code, put it into a compliler, and have a working weapon – one problem I always had with script tutorials is that very often there are bits left out between code blocks that cause the code to fail when compiled. No offense to the author, but the Creating A New Weapontype tutorial is rather vague and near impossible to follow for someone new to scripting. By seeing all the original code in one place with heavy comments and notes on how to change it (which is my project for tonight), this could be the perfect newbie weapon tutorial.

Tarquin: We seem to have lots of pages which are just script with extra comments. What I think would be more useful would be see single pages that explain things with text and maybe the odd snip fform the code to illustrate.

Category Class (UT2003)

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Image Uploads

Random Page

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

Mapping Topics

Mapping Lessons

UnrealEd Interface

Questions&Answers

Scripting Topics

Scripting Lessons

Making Mods

Class Tree

Questions&Answers

Modeling Topics

Questions&Answers

Log In