Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
How to Create a New Missile Type by Ranger.

The following tutorial describes how to create a new missile type using an existing missile type as a template.
This tutorial also assumes that you have the undumped Lua files unzipped into your game's "Data" directory and that you have a basic understanding of Microsoft Windows operations.

From this point on the template missile will be referred to as <template_missile>, and the new missile will be referred to as <new_missile>. Replace these names with the appropriate missile names (e.g., hgn_longrangetorpedo for the template missile, and rng_phoenix2missile for the new missile).

  1. Using Spooky's Relic Archive Tool, extract the ".hod" file for <template_missile> from the "homeworld2.big" file. The ".hod" file will automatically be placed in the game's "Data\missile\<template_missile>" directory.
  2. Go to the game's "Data\missile" directory.
  3. Copy and paste the "<template_missile>" directory to your desktop. Rename the copy to "<new_missile>".
  4. Go to the "<new_missile>" directory.
  5. Rename the "<template_missile>.events", "<template_missile>.miss" and "<template_missile>.hod" files to "<new_missile>.events", "<new_missile>.miss" and "<new_missile>.hod", respectively.
  6. Go to the game's "Data\scripts\weaponfire" directory.
  7. Copy and paste the "<template_missile>" directory to your desktop. Rename the copy to "<new_missile>".
  8. Go to the "<new_missile>" directory.
  9. Rename "<template_missile>.wf" file to "<new_missile>.wf".
  10. Make any desired modifications to the new missile's stats by modifying the corresponding ".events", ".miss", and ".wf" files. If you merely want an exact copy of <template_missile>, you will not need to change anything.
  11. Create a new weapon (".wepn") file -- or modify an existing one -- and have it use your new missile.
    Note: see the StartWeaponConfig function for more information.
  12. Start the game and play a skirmish match to test your new missile.

Steps 10 and 11 are the only steps where you will need to edit the contents of any files (using a text editor, such as Notepad). All other steps merely require you to copy, paste, and rename directories and files.

Related Pages:

There are 2 comments on this page. [Display comments]

:: ::