Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GM.OCRP_Items["item_fishing_rod"] = {
- Name = "Fishing Rod",
- Angle = Angle(90,90,90),
- Desc = "For fishing at the lake.",
- Model = "models/props_junk/harpoon002a.mdl",
- Price = 20,
- Weight = 5,
- Max = 1,-- Total Number of items able to be carried.
- Illegalizeable = false,
- Weapondata = {Weapon = "weapon_fishing_rod",
- Setup = function(ply,item)
- end,
- Bone = "ValveBiped.Bip01_Spine4",
- Angle = Angle(10,90,90),
- Pos = function(obj)
- local leg = obj:LookupBone(GAMEMODE.OCRP_Items["item_ak47"].Weapondata.Bone)
- local pos,ang = obj:GetBonePosition( leg )
- return ang:Right() * 1 + ang:Forward() * -10
- end,
- },
- -- what it does don't touch it.
- Condition = function(ply,item) -- Checks to see if the player can use it.
- return false
- end,
- SpawnFunction =
- function(self)
- self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
- end,
- LootData = {Speed = 2,Level = 2,},
- }
- GM.OCRP_Items["item_fish_01"] = {
- Name = "Fish 01",-- The Name
- Angle = Angle(90,90,90),---- Allows for manual rotation on the display
- Desc = "You caught a fish! Woo!",-- The description
- Model = "models/FoodNHouseholdItems/fishbass.mdl",-- The model
- Price = 120,--Price
- Weight = 1,
- Max = 5,-- Total Number of items able to be carried.
- -- what it does don't touch it.
- SpawnFunction =
- function(self)
- self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
- end,
- LootData = {Speed = 3,Level = 1,},
- }
- GM.OCRP_Items["item_fish_02"] = {
- Name = "Fish 02",-- The Name
- Angle = Angle(90,90,90),---- Allows for manual rotation on the display
- Desc = "You caught a fish! Woo!",-- The description
- Model = "models/FoodNHouseholdItems/fishcatfish.mdl",-- The model
- Price = 150,--Price
- Weight = 1,
- Max = 5,-- Total Number of items able to be carried.
- -- what it does don't touch it.
- SpawnFunction =
- function(self)
- self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
- end,
- LootData = {Speed = 3,Level = 1,},
- }
- GM.OCRP_Items["item_fish_03"] = {
- Name = "Fish 03",-- The Name
- Angle = Angle(90,90,90),---- Allows for manual rotation on the display
- Desc = "You caught a fish! Woo!",-- The description
- Model = "models/FoodNHouseholdItems/fishgolden.mdl",-- The model
- Price = 200,--Price
- Weight = 1,
- Max = 5,-- Total Number of items able to be carried.
- -- what it does don't touch it.
- SpawnFunction =
- function(self)
- self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
- end,
- LootData = {Speed = 3,Level = 1,},
- }
- GM.OCRP_Items["item_fish_04"] = {
- Name = "Fish 04",-- The Name
- Angle = Angle(90,90,90),---- Allows for manual rotation on the display
- Desc = "You caught a fish! Woo!",-- The description
- Model = "models/props/CS_militia/fishriver01.mdl",-- The model
- Price = 300,--Price
- Weight = 1,
- Max = 5,-- Total Number of items able to be carried.
- -- what it does don't touch it.
- SpawnFunction =
- function(self)
- self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
- self:GetPhysicsObject():SetMass(10)
- end,
- LootData = {Speed = 3,Level = 1,},
- }
- GM.OCRP_Items["item_fish_05"] = {
- Name = "Fish 05",-- The Name
- Angle = Angle(90,90,90),---- Allows for manual rotation on the display
- Desc = "You caught a fish! Woo!",-- The description
- Model = "models/FoodNHouseholdItems/fishrainbow.mdl",-- The model
- Price = 500,--Price
- Weight = 1,
- Max = 5,-- Total Number of items able to be carried.
- -- what it does don't touch it.
- SpawnFunction =
- function(self)
- self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
- end,
- LootData = {Speed = 3,Level = 1,},
- }
- GM.OCRP_Items["item_fishinglure_01"] = {
- Name = "Fishing Lure 01",-- The Name
- Angle = Angle(90,90,90),---- Allows for manual rotation on the display
- Desc = ">5 minutes fishing",-- The description
- Model = "models/weapons/w_bugbait.mdl",-- The model
- Price = 20,--Price
- Weight = 1,
- Max = 5,-- Total Number of items able to be carried.
- -- what it does don't touch it.
- SpawnFunction =
- function(self)
- self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
- end,
- LootData = {Speed = 3,Level = 1,},
- Condition = function(ply, item)
- if ply:GetActiveWeapon():GetClass() == "weapon_fishing_rod" and !ply:GetActiveWeapon().GottenFish then
- return true
- else
- return false
- end
- end,
- Function = function(ply,item)
- ply:GetActiveWeapon().fishing_rod.lure = 1
- local ent = ents.Create("prop_physics")
- ent:SetModel("models/weapons/w_bugbait.mdl")
- ent:SetPos(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook:LocalToWorld(Vector(0,-2.5,-4)))
- ent:Spawn()
- ent:SetCollisionGroup(COLLISION_GROUP_WEAPON)
- ply:GetActiveWeapon().fishing_rod.bugbait = ent
- constraint.Weld(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook,ent,0,0,0,true)
- ent.Think = function() print("asd") end
- end,
- }
- GM.OCRP_Items["item_fishinglure_02"] = {
- Name = "Fishing Lure 02",-- The Name
- Angle = Angle(90,90,90),---- Allows for manual rotation on the display
- Desc = ">4 minutes fishing",-- The description
- Model = "models/weapons/w_bugbait.mdl",-- The model
- Price = 50,--Price
- Weight = 1,
- Max = 5,-- Total Number of items able to be carried.
- -- what it does don't touch it.
- SpawnFunction =
- function(self)
- self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
- end,
- LootData = {Speed = 3,Level = 1,},
- Condition = function(ply, item)
- if ply:GetActiveWeapon():GetClass() == "weapon_fishing_rod" and !ply:GetActiveWeapon().GottenFish then
- return true
- else
- return false
- end
- end,
- Function = function(ply,item)
- ply:GetActiveWeapon().fishing_rod.lure = 2
- local ent = ents.Create("prop_physics")
- ent:SetModel("models/weapons/w_bugbait.mdl")
- ent:SetPos(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook:LocalToWorld(Vector(0,-2.5,-4)))
- ent:Spawn()
- ent:SetCollisionGroup(COLLISION_GROUP_WEAPON)
- ply:GetActiveWeapon().fishing_rod.bugbait = ent
- constraint.Weld(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook,ent,0,0,0,true)
- ent.Think = function() print("asd") end
- end,
- }
- GM.OCRP_Items["item_fishinglure_03"] = {
- Name = "Fishing Lure 03",-- The Name
- Angle = Angle(90,90,90),---- Allows for manual rotation on the display
- Desc = ">3 minutes fishing",-- The description
- Model = "models/weapons/w_bugbait.mdl",-- The model
- Price = 120,--Price
- Weight = 1,
- Max = 5,-- Total Number of items able to be carried.
- -- what it does don't touch it.
- SpawnFunction =
- function(self)
- self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
- end,
- LootData = {Speed = 3,Level = 1,},
- Condition = function(ply, item)
- if ply:GetActiveWeapon():GetClass() == "weapon_fishing_rod" and !ply:GetActiveWeapon().GottenFish then
- return true
- else
- return false
- end
- end,
- Function = function(ply,item)
- ply:GetActiveWeapon().fishing_rod.lure = 3
- local ent = ents.Create("prop_physics")
- ent:SetModel("models/weapons/w_bugbait.mdl")
- ent:SetPos(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook:LocalToWorld(Vector(0,-2.5,-4)))
- ent:Spawn()
- ent:SetCollisionGroup(COLLISION_GROUP_WEAPON)
- ply:GetActiveWeapon().fishing_rod.bugbait = ent
- constraint.Weld(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook,ent,0,0,0,true)
- ent.Think = function() print("asd") end
- end,
- }
- GM.OCRP_Items["item_fishinglure_04"] = {
- Name = "Fishing Lure 04",-- The Name
- Angle = Angle(90,90,90),---- Allows for manual rotation on the display
- Desc = ">2 minutes fishing",-- The description
- Model = "models/weapons/w_bugbait.mdl",-- The model
- Price = 200,--Price
- Weight = 1,
- Max = 5,-- Total Number of items able to be carried.
- -- what it does don't touch it.
- SpawnFunction =
- function(self)
- self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
- end,
- LootData = {Speed = 3,Level = 1,},
- Condition = function(ply, item)
- if ply:GetActiveWeapon():GetClass() == "weapon_fishing_rod" and !ply:GetActiveWeapon().GottenFish then
- return true
- else
- return false
- end
- end,
- Function = function(ply,item)
- ply:GetActiveWeapon().fishing_rod.lure = 4
- local ent = ents.Create("prop_physics")
- ent:SetModel("models/weapons/w_bugbait.mdl")
- ent:SetPos(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook:LocalToWorld(Vector(0,-2.5,-4)))
- ent:Spawn()
- ent:SetCollisionGroup(COLLISION_GROUP_WEAPON)
- ply:GetActiveWeapon().fishing_rod.bugbait = ent
- constraint.Weld(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook,ent,0,0,0,true)
- ent.Think = function() print("asd") end
- end,
- }
- GM.OCRP_Items["item_fishinglure_05"] = {
- Name = "Fishing Lure 05",-- The Name
- Angle = Angle(90,90,90),---- Allows for manual rotation on the display
- Desc = ">1 minutes fishing",-- The description
- Model = "models/weapons/w_bugbait.mdl",-- The model
- Price = 280,--Price
- Weight = 1,
- Max = 5,-- Total Number of items able to be carried.
- -- what it does don't touch it.
- SpawnFunction =
- function(self)
- self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
- end,
- LootData = {Speed = 3,Level = 1,},
- Condition = function(ply, item)
- if ply:GetActiveWeapon():GetClass() == "weapon_fishing_rod" and !ply:GetActiveWeapon().GottenFish then
- return true
- else
- return false
- end
- end,
- Function = function(ply,item)
- ply:GetActiveWeapon().fishing_rod.lure = 5
- local ent = ents.Create("prop_physics")
- ent:SetModel("models/weapons/w_bugbait.mdl")
- ent:SetPos(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook:LocalToWorld(Vector(0,-2.5,-4)))
- ent:Spawn()
- ent:SetCollisionGroup(COLLISION_GROUP_WEAPON)
- ply:GetActiveWeapon().fishing_rod.bugbait = ent
- constraint.Weld(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook,ent,0,0,0,true)
- ent.Think = function() print("asd") end
- end,
- }
Add Comment
Please, Sign In to add comment