05-16-2008, 08:32 PM | #1 |
Wiki Team
Fortress Forever Staff Join Date: Sep 2007
Location: Greeley, CO
Class/Position: Med / Solly Gametype: PAYLOAD Affiliations: DET- Posts Rated Helpful 19 Times
|
What is the code for shotty ammo?
Ok so I have this as a trigger in my map:
Code:
-- Gives player concs / removes all other ammo function fullresupply( player ) player:AddHealth( 100 ) player:AddArmor( 300 ) player:RemoveAmmo( Ammo.kNails, 400 ) player:RemoveAmmo( Ammo.kShells, 400 ) player:RemoveAmmo( Ammo.kRockets, 400 ) player:RemoveAmmo( Ammo.kCells, 400 ) player:RemoveAmmo( Ammo.kManCannon, 1 ) player:RemoveAmmo( Ammo.kGren1, 4 ) player:AddAmmo( Ammo.kGren2, 4 ) end
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf (Beta) alchimy_b1 (Lua) base_payload_2015 (Models) props_trainyard |
|
05-16-2008, 09:03 PM | #2 |
Keep On Keepin' On
|
i tried it and it works fine.... do you have something that looks like this under your code? resupplyzone would be the name of your trigger_ff_script. Removes everything but whats in the gun's clip already.
Code:
resupplyzone = trigger_ff_script:new({ }) function resupplyzone:allowed( allowed_entity ) if IsPlayer( allowed_entity ) then local player = CastToPlayer( allowed_entity ) fullresupply( player ) end return true end |
|
05-16-2008, 09:32 PM | #3 |
Wiki Team
Fortress Forever Staff Join Date: Sep 2007
Location: Greeley, CO
Class/Position: Med / Solly Gametype: PAYLOAD Affiliations: DET- Posts Rated Helpful 19 Times
|
yep that's there...not sure why it's not removing it.
I'll run a few test though...got all the time I need now!
__________________
(Released) conc_school | hellion_classic | ksour_PAYLOAD | mulch_faf (Beta) alchimy_b1 (Lua) base_payload_2015 (Models) props_trainyard |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|