Thread: (Beta) ff_amped
View Single Post
Old 09-27-2012, 12:04 AM   #19
squeek.
Stuff Do-er
Lua Team
Wiki Team
Fortress Forever Staff
 
squeek.'s Avatar
 
Join Date: Mar 2007
Location: Northern California
Class/Position: Rallygun Shooter
Gametype: Conc tag (you just wait)
Affiliations: Mustache Brigade
Posts Rated Helpful 352 Times
Send a message via AIM to squeek.
Alright, here's a working/improved Lua:

Code:
-- ff_amped.lua
-- Author: NzNexus (a.k.a Ambex)

-----------------------------------------------------------------------------
-- includes
-----------------------------------------------------------------------------
IncludeScript("base_respawnturret");
IncludeScript("base_ctf")

-----------------------------------------------------------------------------
-- global overrides
-----------------------------------------------------------------------------
POINTS_PER_CAPTURE = 10
FLAG_RETURN_TIME = 60
-----------------------------------------------------------------------------

-----------------------------------------------------------------------------
-- backpacks  smallpack1=bottomfloor  smallpack2=middlefloor  smallpack3=upperfloor
-----------------------------------------------------------------------------
smallpack = genericbackpack:new({
	grenades = 100,
	bullets = 100,
	nails = 100,
	shells = 100,
	rockets = 100,
	gren1 = 1,
	gren2 = 1,
      cells = 200,
	armor = 100,
	health = 100,
      respawntime = 30,
	model = "models/items/backpack/backpack.mdl",
	materializesound = "Item.Materialize",
	touchsound = "Backpack.Touch",
	touchflags = {},
	botgoaltype = Bot.kBackPack_Ammo
})
function smallpack:dropatspawn() return false end

redsmallpack1 = smallpack:new({ touchflags = {AllowFlags.kRed} })
redsmallpack2 = smallpack:new({ touchflags = {AllowFlags.kRed} })
redsmallpack3 = smallpack:new({ touchflags = {AllowFlags.kRed} })
bluesmallpack1 = smallpack:new({ touchflags = {AllowFlags.kBlue} })
bluesmallpack2 = smallpack:new({ touchflags = {AllowFlags.kBlue} }) 
bluesmallpack3 = smallpack:new({ touchflags = {AllowFlags.kBlue} })
__________________
#FF.Pickup ยค Fortress-Forever pickups

My Non-official Maps
Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic
Beta FF_Myth - FF_Redlight_Greenlight

Sick of the people on the internet, always moanin'. They just moan.
- Karl Pilkington
squeek. is offline   Reply With Quote