About Rainier

PC gamer, WorthPlaying EIC, globe-trotting couch potato, patriot, '80s headbanger, movie watcher, music lover, foodie and man in black -- squirrel!


'Star Trek: Elite Force 2' - Source code Available NOW

by Rainier on Nov. 5, 2003 @ 9:50 p.m. PST

Ritual Entertainment has released the Star Trek Elite Force II source code giving you the change to create single & multiplayer mods for Raven Software's shooter Star Trek Elite Force II. Read more for details & download links ...

Get the Star Trek Elite Force II Source code off Worthplaying (2.5mb)

This is the game source for Star Trek Elite Force II. The package contains all of the server side game code for singleplayer and multi-player and it includes all of the changes up to and including the 1.10 patch.

How To Use

When compiled it will create the file gamex86.dll which will be placed in the .executableDebug directory or the .executable elease directory depending on if you are creating a debug or a release build of the dll.

You can either replace the old gamex86.dll from the full game (although you should back it up) or you can change which game dll the executable uses by specifing which one to use at the command line.

ex. EF2 +set gamedll c:projectsEF2executabledebuggamex86.dll

NOTE: the code has only been tested under Visual Studio 6.0.

Quick layout of the code

multiplayer code:

mp_manager - manages all of the multiplayer code

mp_modeBase - the base class for all of the modes (dm, team, ctf, etc.)
mp_modeTeamBase - code that is shared between for all team related modes

mp_modeDM - all deathmatch related code
mp_modeTeamDM - all team deathmatch specific code
mp_modeCtf - all CTF related code

mp_modifiers - all of the code for the various modifiers (action hero, disintegration, etc.)

main class hierarchy:

  • class - base class, allows safe pointers
  • listener - adds event handling
  • entity - basic entity class
  • sentient - anything that thinks on its own
  • actor - AI creatures
  • player - the player(s) of course
  • trigger - a host of different kind of entities that are turned on in some manner (touch, damaged, etc) to do a specific task
  • item - your basic item
  • weapon - weapons that can be used by sentients (players or actors)
  • powerups - special items that can be picked up, are automatically used, and usually last a specific amount of time

This hierarchy only shows a small portion of the code base but it is a fairly good start at understanding it.


This code and the dll that it will build will only work with a full copy of Star Trek Elite Force II.

All code and contents included in this package are
Copyright (C) 1998 by Ritual Entertainment, Inc.
All rights reserved.

This entire package is supplied as is. Ritual and Activision will not provide any support.

See the file licenseAgreement.txt in this package for the full license agreement.

Related articles, Click here!

blog comments powered by Disqus