05-09-2008, 04:29 AM | #1 |
Community Member
Server Owner
Beta Tester Forum Moderator Join Date: Mar 2007
Location: Hawthorne, California
Class/Position: Soldier/Spy/Scout Gametype: AvD Affiliations: :e0:Eternal Order Leader Posts Rated Helpful 12 Times
|
Avanti LUA
Got it off the ff_dev_avanti in the beta file for anyone who needs it
Code:
-- ff_dev_avanti.lua ----------------------------------------------------------------------------- -- includes ----------------------------------------------------------------------------- IncludeScript("base_id"); ----------------------------------------------------------------------------- -- global overrides ----------------------------------------------------------------------------- POINTS_PER_CAPTURE = 10; POINTS_PER_PERIOD = 1; PERIOD_TIME = 10; NUM_PHASES = 4; INITIAL_ROUND_DELAY = 20; ROUND_DELAY = 15; detpack_wall_open = nil function onroundreset() -- close the door if detpack_wall_open then -- there's no "close".. wtf OutputEvent("detpack_wall", "Toggle") detpack_wall_open = nil end end detpack_trigger = info_ff_script:new({}) function detpack_trigger:onexplode(player) -- open the door when detpacked if not detpack_wall_open and player:GetTeamId() == attackers then ConsoleToAll("The door has been blown open!") OutputEvent("detpack_wall", "Toggle") detpack_wall_open = true end end
__________________
|
|
05-10-2008, 12:02 AM | #2 |
D&A Member
Wiki Team Fortress Forever Staff Join Date: Apr 2007
Posts Rated Helpful 31 Times
|
Or you can just copy from palermo's lua. It has all that and it also switches teams on the respawn turrets when the map resets.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|