thomasfn

FTL: Overdrive Example Script

Sep 23rd, 2012
515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.92 KB | None | 0 0
  1. --[[
  2.     ****************************
  3.     * FTL: Overdrive - Vanilla *
  4.     ****************************
  5.     Loads the vanilla content into the game
  6. --]]
  7.  
  8. local function LoadLibrary()
  9.     -- Notify console
  10.     print( "[Vanilla] Loading content..." )
  11.    
  12.     -- Add weapon types
  13.     local w = library.AddWeapon( "artemis", "projectile" )
  14.     w.DisplayName = "Artemis"
  15.     w.Graphic = "img/weapons/missiles_1_strip3.png"
  16.     w.GlowGraphic = "img/weapons/missiles_1_glow.png"
  17.     w.PowerCost = 1
  18.     w.BypassShield = true
  19.     w.Damage = 1
  20.     w.HitChance = 1
  21.    
  22.     -- Add system types
  23.     local s = library.AddSystem( "bridge" )
  24.     s.DisplayName = "Bridge"
  25.     s.OverlayGraphic = "img/icons/s_pilot_overlay.png"
  26.     s.IconGraphics:Add( "img/icons/s_pilot_red1.png" )
  27.     s.IconGraphics:Add( "img/icons/s_pilot_green1.png" )
  28.     --s.SubSystem = true -- This crashes for some reason?
  29.     s.MinPower = 1
  30.     s.MaxPower = 3
  31.    
  32.     -- Add races
  33.    
  34.    
  35. end
  36. hook.Add( "Game.LoadLibrary", LoadLibrary )
Advertisement
Add Comment
Please, Sign In to add comment