Difference between revisions of "HowToAddShips"

From SfzWiki
Jump to: navigation, search
 
Line 1: Line 1:
 
* use the shipeditor to create a ship and save it,
 
* use the shipeditor to create a ship and save it,
 
* edit data/plugins/common.objecttypes.lua
 
* edit data/plugins/common.objecttypes.lua
* copy and adjust a line like  
+
* copy and adjust (change the first paramer, this is the typename) a line like  
 
   RegisterObjectType("stuff/customship/firefly", "stuff/customship", {ingame_name="firefly", gfx_shipfile="firefly.lua", hitrad=10, bHasHangar=true,hp=500, shield_max=500, cargo_max=1000, weapons={["weapontype/laser/red"]=1}  })
 
   RegisterObjectType("stuff/customship/firefly", "stuff/customship", {ingame_name="firefly", gfx_shipfile="firefly.lua", hitrad=10, bHasHangar=true,hp=500, shield_max=500, cargo_max=1000, weapons={["weapontype/laser/red"]=1}  })
 +
* edit data/config.lua
 +
* add a line like
 +
  gClient_PreferredBodyTypeName = "stuff/customship/firefly" 
 +
* and replace  "stuff/customship/firefly"    with the typename of your ship (first param)

Revision as of 11:18, 12 July 2007

  • use the shipeditor to create a ship and save it,
  • edit data/plugins/common.objecttypes.lua
  • copy and adjust (change the first paramer, this is the typename) a line like
 RegisterObjectType("stuff/customship/firefly",		"stuff/customship",	{ingame_name="firefly",		gfx_shipfile="firefly.lua", hitrad=10, bHasHangar=true,hp=500, shield_max=500, cargo_max=1000, weapons={["weapontype/laser/red"]=1}  })
  • edit data/config.lua
  • add a line like
 gClient_PreferredBodyTypeName = "stuff/customship/firefly"  
  • and replace "stuff/customship/firefly" with the typename of your ship (first param)