Fortress Forever

Go Back   Fortress Forever > Editing > Mapping > Lua

Reply
 
Thread Tools Display Modes
Old 07-05-2008, 09:32 PM   #1
Menasor
 
Join Date: Mar 2008
Posts Rated Helpful 0 Times
need more help

I am nearing completion of a concmap i have been working on but theres 2 things i need to do before its playable
1) how do you add concbags?
2)the lua script to make it blue team only with class limits of scout medic soldier and demoman only, (needless to say soldier and demo have quad)

to be more specific i have no clue at all about the lua files i dont know how to create them, script them or anything of the sort
Menasor is offline   Reply With Quote


Old 07-05-2008, 09:44 PM   #2
Jester
Fortress Forever Staff
 
Jester's Avatar
 
Join Date: Sep 2007
Class/Position: O: Scout
Affiliations: {NFO} - New Family Order
Posts Rated Helpful 0 Times
Moved to appropriate area and this should help:
http://www.fortress-forever.com/foru...ad.php?t=11105
Jester is offline   Reply With Quote


Old 07-06-2008, 08:30 PM   #3
Dexter
internet user
Fortress Forever Staff
 
Dexter's Avatar
 
Join Date: Jun 2007
Posts Rated Helpful 42 Times
Conc only bags?
Code:
concpack = genericbackpack:new({
	gren2 = 4,
	respawntime = 5,
	model = "models/items/backpack/backpack.mdl",
	materializesound = "Item.Materialize",
	touchsound = "Backpack.Touch"
})
Off the top of my head, I think that will do it though.

For teams, try this startup
Code:
function startup()
	SetPlayerLimit( Team.kBlue, 0 )
	SetPlayerLimit( Team.kRed, -1 )
	SetPlayerLimit( Team.kYellow, -1 )
	SetPlayerLimit( Team.kGreen, -1 )

	local team = GetTeam( Team.kBlue )
	team:SetClassLimit( Player.kScout, 0 )
	team:SetClassLimit( Player.kSniper, -1 )
	team:SetClassLimit( Player.kSoldier, 0 )
	team:SetClassLimit( Player.kDemoman, 0 )
	team:SetClassLimit( Player.kMedic, 0 )
	team:SetClassLimit( Player.kHwguy, -1 )
	team:SetClassLimit( Player.kPyro, -1 )
	team:SetClassLimit( Player.kSpy, -1 )
	team:SetClassLimit( Player.kEngineer, -1 )
	team:SetClassLimit( Player.kCivilian, -1 )
end
As you see, set the classes and teams you want to disable to -1, its pretty straight-forward.

Oops, or you can use the stuff in base_conc
__________________
9:17 PM - DEXTER: can you teach me how to play o
9:17 PM - squeek.: you jump a lot
9:18 PM - squeek.: and do sweet moves

8:55 PM - FDA: fart in you fridge and blame it on wild animals
Dexter is offline   Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:22 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.