mirror of
https://github.com/fortressforever/fortressforever-scripts.git
synced 2024-11-14 08:50:39 +00:00
Merge pull request #64 from DexterHaslem/324-refill-jetpack-script
script changes for fortressforever #324 woooopieee cross-repo comments dont auto merge
This commit is contained in:
commit
c965029436
1 changed files with 4 additions and 0 deletions
|
@ -373,6 +373,7 @@ basecap = trigger_ff_script:new({
|
||||||
gren2 = 4,
|
gren2 = 4,
|
||||||
item = "",
|
item = "",
|
||||||
team = 0,
|
team = 0,
|
||||||
|
jetpackfuel = 100,
|
||||||
-- teampoints and fortpoints are defined as functions here for backwards compatibility (to always get the current value of the global variable)
|
-- teampoints and fortpoints are defined as functions here for backwards compatibility (to always get the current value of the global variable)
|
||||||
-- when defining capture points that inherit from basecap, teampoints and fortpoints can be set to numbers instead
|
-- when defining capture points that inherit from basecap, teampoints and fortpoints can be set to numbers instead
|
||||||
teampoints = function(cap, team) return POINTS_PER_CAPTURE end,
|
teampoints = function(cap, team) return POINTS_PER_CAPTURE end,
|
||||||
|
@ -472,6 +473,9 @@ function basecap:ontrigger ( trigger_entity )
|
||||||
if self.gren1 ~= nil and self.gren1 ~= 0 then player:AddAmmo(Ammo.kGren1, self.gren1) end
|
if self.gren1 ~= nil and self.gren1 ~= 0 then player:AddAmmo(Ammo.kGren1, self.gren1) end
|
||||||
if self.gren2 ~= nil and self.gren2 ~= 0 then player:AddAmmo(Ammo.kGren2, self.gren2) end
|
if self.gren2 ~= nil and self.gren2 ~= 0 then player:AddAmmo(Ammo.kGren2, self.gren2) end
|
||||||
|
|
||||||
|
-- restock player specials
|
||||||
|
if self.jetpackfuel ~= nil then player:SetJetpackFuel(self.jetpackfuel) end
|
||||||
|
|
||||||
self:oncapture( player, v )
|
self:oncapture( player, v )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue