HowToAddShips

From SfzWiki
Revision as of 11:18, 12 July 2007 by Ghoulsblade (Talk | contribs)

Jump to: navigation, search
  • 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)