Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- base_shutdown.lua
- -----------------------------------------------------------------------------
- -- includes
- -----------------------------------------------------------------------------
- IncludeScript("base");
- IncludeScript("base_ctf");
- IncludeScript("base_teamplay");
- -----------------------------------------------------------------------------
- -- global overrides
- -----------------------------------------------------------------------------
- POINTS_PER_CAPTURE = 10;
- -----------------------------------------------------------------------------
- -- startup
- -----------------------------------------------------------------------------
- function startup()
- SetGameDescription( "Capture the Flag" )
- -- set up team limits on each team
- SetPlayerLimit(Team.kBlue, 0)
- SetPlayerLimit(Team.kRed, 0)
- SetPlayerLimit(Team.kYellow, -1)
- SetPlayerLimit(Team.kGreen, -1)
- -- CTF maps generally don't have civilians,
- -- so override in map LUA file if you want 'em
- local team = GetTeam(Team.kBlue)
- team:SetClassLimit(Player.kCivilian, -1)
- team = GetTeam(Team.kRed)
- team:SetClassLimit(Player.kCivilian, -1)
- end
- -----------------------------------------------------------------------------
- -- Hurts
- -----------------------------------------------------------------------------
- ------------------------------------------------------My lua below
- --IncludeScript("base_shutdown");
- -----------------------------------------------------------------------------
- -- Resupply and Bags
- -----------------------------------------------------------------------------
- aardvarkresup = trigger_ff_script:new({ team = Team.kUnassigned })
- function aardvarkresup:ontouch( touch_entity )
- if IsPlayer( touch_entity ) then
- local player = CastToPlayer( touch_entity )
- if player:GetTeamId() == self.team then
- player:AddHealth( 400 )
- player:AddArmor( 400 )
- player:AddAmmo( Ammo.kNails, 400 )
- player:AddAmmo( Ammo.kShells, 400 )
- player:AddAmmo( Ammo.kRockets, 400 )
- player:AddAmmo( Ammo.kCells, 400 )
- end
- end
- end
- blue_supply = aardvarkresup:new({ team = Team.kBlue })
- red_supply = aardvarkresup:new({ team = Team.kRed })
Add Comment
Please, Sign In to add comment