diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-30 21:01:18 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-30 21:01:18 -0400 |
| commit | d62058fcdea5fc6736a2a373f47dc6c14c70c319 (patch) | |
| tree | 79a1325190e3f1f1b6d6a2dbcdfc1ba3fa866ac9 /gamemode/items/ammo.lua | |
| parent | c38f00182ba6c282806eecb39a42e64d5feafa37 (diff) | |
| download | redead-d62058fcdea5fc6736a2a373f47dc6c14c70c319.tar.gz redead-d62058fcdea5fc6736a2a373f47dc6c14c70c319.tar.bz2 redead-d62058fcdea5fc6736a2a373f47dc6c14c70c319.zip | |
Removed exessive whitespace so future commits will be cleaner
Diffstat (limited to 'gamemode/items/ammo.lua')
| -rw-r--r-- | gamemode/items/ammo.lua | 61 |
1 files changed, 30 insertions, 31 deletions
diff --git a/gamemode/items/ammo.lua b/gamemode/items/ammo.lua index a554382..cd90f8d 100644 --- a/gamemode/items/ammo.lua +++ b/gamemode/items/ammo.lua @@ -13,33 +13,33 @@ PRICE_ENERGYCELL = 8 function FUNC_AMMO( ply, id ) local tbl = item.GetByID( id ) - + if not tbl.Ammo then return true end ply:AddAmmo( tbl.Ammo, tbl.Amount ) return true - + end function FUNC_DROPAMMO( ply, id, drop ) local tbl = item.GetByID( id ) - + if not tbl.Ammo then return end ply:AddAmmo( tbl.Ammo, -tbl.Amount, true ) - + return true // we don't want to override spawning the prop end -item.Register( { - Name = "Pistol Rounds", +item.Register( { + Name = "Pistol Rounds", Description = "40 pistol rounds per box.", - Stackable = true, + Stackable = true, Type = ITEM_AMMO, - Weight = 0.75, + Weight = 0.75, Price = PRICE_PISTOL, Rarity = 0.20, Model = "models/items/357ammo.mdl", @@ -48,15 +48,15 @@ item.Register( { PickupFunction = FUNC_AMMO, DropFunction = FUNC_DROPAMMO, CamPos = Vector(14,13,4), - CamOrigin = Vector(0,0,3) + CamOrigin = Vector(0,0,3) } ) -item.Register( { - Name = "Buckshot", +item.Register( { + Name = "Buckshot", Description = "20 shotgun rounds per box.", - Stackable = true, + Stackable = true, Type = ITEM_AMMO, - Weight = 0.75, + Weight = 0.75, Price = PRICE_BUCKSHOT, Rarity = 0.20, Model = "models/items/boxbuckshot.mdl", @@ -68,12 +68,12 @@ item.Register( { CamOrigin = Vector(0,0,4) } ) -item.Register( { - Name = "SMG Rounds", +item.Register( { + Name = "SMG Rounds", Description = "60 SMG rounds per box.", - Stackable = true, + Stackable = true, Type = ITEM_AMMO, - Weight = 0.75, + Weight = 0.75, Price = PRICE_SMGROUNDS, Rarity = 0.50, Model = "models/items/boxsrounds.mdl", @@ -85,12 +85,12 @@ item.Register( { CamOrigin = Vector(0,0,4) } ) -item.Register( { - Name = "Rifle Rounds", +item.Register( { + Name = "Rifle Rounds", Description = "60 automatic rifle rounds per box.", - Stackable = true, + Stackable = true, Type = ITEM_AMMO, - Weight = 0.75, + Weight = 0.75, Price = PRICE_RIFLEROUNDS, Rarity = 0.80, Model = "models/items/boxmrounds.mdl", @@ -102,12 +102,12 @@ item.Register( { CamOrigin = Vector(0,0,5) } ) -item.Register( { - Name = "Sniper Rounds", +item.Register( { + Name = "Sniper Rounds", Description = "30 sniper rounds per box.", - Stackable = true, + Stackable = true, Type = ITEM_AMMO, - Weight = 0.75, + Weight = 0.75, Price = PRICE_SNIPERROUNDS, Rarity = 0.75, Model = "models/items/boxqrounds.mdl", @@ -119,12 +119,12 @@ item.Register( { CamOrigin = Vector(4,0,-1) } ) -item.Register( { - Name = "Prototype Energy Cell", +item.Register( { + Name = "Prototype Energy Cell", Description = "15 energy charges per cell.", - Stackable = true, + Stackable = true, Type = ITEM_AMMO, - Weight = 1.25, + Weight = 1.25, Price = PRICE_ENERGYCELL, Rarity = 0.85, Model = "models/items/battery.mdl", @@ -133,6 +133,5 @@ item.Register( { PickupFunction = FUNC_AMMO, DropFunction = FUNC_DROPAMMO, CamPos = Vector(15,15,8), - CamOrigin = Vector(0,0,5) + CamOrigin = Vector(0,0,5) } ) - |
