Guest User

Untitled

a guest
Feb 18th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.57 KB | None | 0 0
  1.  
  2.  
  3. GM.OCRP_Items["item_fishing_rod"] = {
  4. Name = "Fishing Rod",
  5. Angle = Angle(90,90,90),
  6. Desc = "For fishing at the lake.",
  7. Model = "models/props_junk/harpoon002a.mdl",
  8. Price = 20,
  9. Weight = 5,
  10. Max = 1,-- Total Number of items able to be carried.
  11. Illegalizeable = false,
  12. Weapondata = {Weapon = "weapon_fishing_rod",
  13. Setup = function(ply,item)
  14. end,
  15. Bone = "ValveBiped.Bip01_Spine4",
  16. Angle = Angle(10,90,90),
  17. Pos = function(obj)
  18. local leg = obj:LookupBone(GAMEMODE.OCRP_Items["item_ak47"].Weapondata.Bone)
  19. local pos,ang = obj:GetBonePosition( leg )
  20. return ang:Right() * 1 + ang:Forward() * -10
  21. end,
  22. },
  23. -- what it does don't touch it.
  24. Condition = function(ply,item) -- Checks to see if the player can use it.
  25. return false
  26. end,
  27. SpawnFunction =
  28. function(self)
  29. self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
  30. end,
  31. LootData = {Speed = 2,Level = 2,},
  32. }
  33.  
  34.  
  35.  
  36. GM.OCRP_Items["item_fish_01"] = {
  37. Name = "Fish 01",-- The Name
  38. Angle = Angle(90,90,90),---- Allows for manual rotation on the display
  39. Desc = "You caught a fish! Woo!",-- The description
  40. Model = "models/FoodNHouseholdItems/fishbass.mdl",-- The model
  41. Price = 120,--Price
  42. Weight = 1,
  43. Max = 5,-- Total Number of items able to be carried.
  44. -- what it does don't touch it.
  45. SpawnFunction =
  46. function(self)
  47. self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
  48. end,
  49. LootData = {Speed = 3,Level = 1,},
  50. }
  51.  
  52. GM.OCRP_Items["item_fish_02"] = {
  53. Name = "Fish 02",-- The Name
  54. Angle = Angle(90,90,90),---- Allows for manual rotation on the display
  55. Desc = "You caught a fish! Woo!",-- The description
  56. Model = "models/FoodNHouseholdItems/fishcatfish.mdl",-- The model
  57. Price = 150,--Price
  58. Weight = 1,
  59. Max = 5,-- Total Number of items able to be carried.
  60. -- what it does don't touch it.
  61. SpawnFunction =
  62. function(self)
  63. self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
  64. end,
  65. LootData = {Speed = 3,Level = 1,},
  66. }
  67. GM.OCRP_Items["item_fish_03"] = {
  68. Name = "Fish 03",-- The Name
  69. Angle = Angle(90,90,90),---- Allows for manual rotation on the display
  70. Desc = "You caught a fish! Woo!",-- The description
  71. Model = "models/FoodNHouseholdItems/fishgolden.mdl",-- The model
  72. Price = 200,--Price
  73. Weight = 1,
  74. Max = 5,-- Total Number of items able to be carried.
  75. -- what it does don't touch it.
  76. SpawnFunction =
  77. function(self)
  78. self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
  79. end,
  80. LootData = {Speed = 3,Level = 1,},
  81. }
  82. GM.OCRP_Items["item_fish_04"] = {
  83. Name = "Fish 04",-- The Name
  84. Angle = Angle(90,90,90),---- Allows for manual rotation on the display
  85. Desc = "You caught a fish! Woo!",-- The description
  86. Model = "models/props/CS_militia/fishriver01.mdl",-- The model
  87. Price = 300,--Price
  88. Weight = 1,
  89. Max = 5,-- Total Number of items able to be carried.
  90. -- what it does don't touch it.
  91. SpawnFunction =
  92. function(self)
  93. self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
  94. self:GetPhysicsObject():SetMass(10)
  95. end,
  96. LootData = {Speed = 3,Level = 1,},
  97. }
  98. GM.OCRP_Items["item_fish_05"] = {
  99. Name = "Fish 05",-- The Name
  100. Angle = Angle(90,90,90),---- Allows for manual rotation on the display
  101. Desc = "You caught a fish! Woo!",-- The description
  102. Model = "models/FoodNHouseholdItems/fishrainbow.mdl",-- The model
  103. Price = 500,--Price
  104. Weight = 1,
  105. Max = 5,-- Total Number of items able to be carried.
  106. -- what it does don't touch it.
  107. SpawnFunction =
  108. function(self)
  109. self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
  110. end,
  111. LootData = {Speed = 3,Level = 1,},
  112. }
  113.  
  114.  
  115. GM.OCRP_Items["item_fishinglure_01"] = {
  116. Name = "Fishing Lure 01",-- The Name
  117. Angle = Angle(90,90,90),---- Allows for manual rotation on the display
  118. Desc = ">5 minutes fishing",-- The description
  119. Model = "models/weapons/w_bugbait.mdl",-- The model
  120. Price = 20,--Price
  121. Weight = 1,
  122. Max = 5,-- Total Number of items able to be carried.
  123. -- what it does don't touch it.
  124. SpawnFunction =
  125. function(self)
  126. self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
  127. end,
  128. LootData = {Speed = 3,Level = 1,},
  129. Condition = function(ply, item)
  130. if ply:GetActiveWeapon():GetClass() == "weapon_fishing_rod" and !ply:GetActiveWeapon().GottenFish then
  131. return true
  132. else
  133. return false
  134. end
  135. end,
  136. Function = function(ply,item)
  137. ply:GetActiveWeapon().fishing_rod.lure = 1
  138. local ent = ents.Create("prop_physics")
  139. ent:SetModel("models/weapons/w_bugbait.mdl")
  140. ent:SetPos(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook:LocalToWorld(Vector(0,-2.5,-4)))
  141. ent:Spawn()
  142. ent:SetCollisionGroup(COLLISION_GROUP_WEAPON)
  143. ply:GetActiveWeapon().fishing_rod.bugbait = ent
  144. constraint.Weld(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook,ent,0,0,0,true)
  145. ent.Think = function() print("asd") end
  146. end,
  147. }
  148.  
  149. GM.OCRP_Items["item_fishinglure_02"] = {
  150. Name = "Fishing Lure 02",-- The Name
  151. Angle = Angle(90,90,90),---- Allows for manual rotation on the display
  152. Desc = ">4 minutes fishing",-- The description
  153. Model = "models/weapons/w_bugbait.mdl",-- The model
  154. Price = 50,--Price
  155. Weight = 1,
  156. Max = 5,-- Total Number of items able to be carried.
  157. -- what it does don't touch it.
  158. SpawnFunction =
  159. function(self)
  160. self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
  161. end,
  162. LootData = {Speed = 3,Level = 1,},
  163. Condition = function(ply, item)
  164. if ply:GetActiveWeapon():GetClass() == "weapon_fishing_rod" and !ply:GetActiveWeapon().GottenFish then
  165. return true
  166. else
  167. return false
  168. end
  169. end,
  170. Function = function(ply,item)
  171. ply:GetActiveWeapon().fishing_rod.lure = 2
  172. local ent = ents.Create("prop_physics")
  173. ent:SetModel("models/weapons/w_bugbait.mdl")
  174. ent:SetPos(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook:LocalToWorld(Vector(0,-2.5,-4)))
  175. ent:Spawn()
  176. ent:SetCollisionGroup(COLLISION_GROUP_WEAPON)
  177. ply:GetActiveWeapon().fishing_rod.bugbait = ent
  178. constraint.Weld(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook,ent,0,0,0,true)
  179. ent.Think = function() print("asd") end
  180. end,
  181. }
  182.  
  183. GM.OCRP_Items["item_fishinglure_03"] = {
  184. Name = "Fishing Lure 03",-- The Name
  185. Angle = Angle(90,90,90),---- Allows for manual rotation on the display
  186. Desc = ">3 minutes fishing",-- The description
  187. Model = "models/weapons/w_bugbait.mdl",-- The model
  188. Price = 120,--Price
  189. Weight = 1,
  190. Max = 5,-- Total Number of items able to be carried.
  191. -- what it does don't touch it.
  192. SpawnFunction =
  193. function(self)
  194. self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
  195. end,
  196. LootData = {Speed = 3,Level = 1,},
  197. Condition = function(ply, item)
  198. if ply:GetActiveWeapon():GetClass() == "weapon_fishing_rod" and !ply:GetActiveWeapon().GottenFish then
  199. return true
  200. else
  201. return false
  202. end
  203. end,
  204. Function = function(ply,item)
  205. ply:GetActiveWeapon().fishing_rod.lure = 3
  206. local ent = ents.Create("prop_physics")
  207. ent:SetModel("models/weapons/w_bugbait.mdl")
  208. ent:SetPos(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook:LocalToWorld(Vector(0,-2.5,-4)))
  209. ent:Spawn()
  210. ent:SetCollisionGroup(COLLISION_GROUP_WEAPON)
  211. ply:GetActiveWeapon().fishing_rod.bugbait = ent
  212. constraint.Weld(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook,ent,0,0,0,true)
  213. ent.Think = function() print("asd") end
  214. end,
  215. }
  216.  
  217. GM.OCRP_Items["item_fishinglure_04"] = {
  218. Name = "Fishing Lure 04",-- The Name
  219. Angle = Angle(90,90,90),---- Allows for manual rotation on the display
  220. Desc = ">2 minutes fishing",-- The description
  221. Model = "models/weapons/w_bugbait.mdl",-- The model
  222. Price = 200,--Price
  223. Weight = 1,
  224. Max = 5,-- Total Number of items able to be carried.
  225. -- what it does don't touch it.
  226. SpawnFunction =
  227. function(self)
  228. self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
  229. end,
  230. LootData = {Speed = 3,Level = 1,},
  231. Condition = function(ply, item)
  232. if ply:GetActiveWeapon():GetClass() == "weapon_fishing_rod" and !ply:GetActiveWeapon().GottenFish then
  233. return true
  234. else
  235. return false
  236. end
  237. end,
  238. Function = function(ply,item)
  239. ply:GetActiveWeapon().fishing_rod.lure = 4
  240. local ent = ents.Create("prop_physics")
  241. ent:SetModel("models/weapons/w_bugbait.mdl")
  242. ent:SetPos(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook:LocalToWorld(Vector(0,-2.5,-4)))
  243. ent:Spawn()
  244. ent:SetCollisionGroup(COLLISION_GROUP_WEAPON)
  245. ply:GetActiveWeapon().fishing_rod.bugbait = ent
  246. constraint.Weld(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook,ent,0,0,0,true)
  247. ent.Think = function() print("asd") end
  248. end,
  249. }
  250.  
  251. GM.OCRP_Items["item_fishinglure_05"] = {
  252. Name = "Fishing Lure 05",-- The Name
  253. Angle = Angle(90,90,90),---- Allows for manual rotation on the display
  254. Desc = ">1 minutes fishing",-- The description
  255. Model = "models/weapons/w_bugbait.mdl",-- The model
  256. Price = 280,--Price
  257. Weight = 1,
  258. Max = 5,-- Total Number of items able to be carried.
  259. -- what it does don't touch it.
  260. SpawnFunction =
  261. function(self)
  262. self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
  263. end,
  264. LootData = {Speed = 3,Level = 1,},
  265. Condition = function(ply, item)
  266. if ply:GetActiveWeapon():GetClass() == "weapon_fishing_rod" and !ply:GetActiveWeapon().GottenFish then
  267. return true
  268. else
  269. return false
  270. end
  271. end,
  272. Function = function(ply,item)
  273. ply:GetActiveWeapon().fishing_rod.lure = 5
  274. local ent = ents.Create("prop_physics")
  275. ent:SetModel("models/weapons/w_bugbait.mdl")
  276. ent:SetPos(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook:LocalToWorld(Vector(0,-2.5,-4)))
  277. ent:Spawn()
  278. ent:SetCollisionGroup(COLLISION_GROUP_WEAPON)
  279. ply:GetActiveWeapon().fishing_rod.bugbait = ent
  280. constraint.Weld(ply:GetActiveWeapon().fishing_rod.dt.attach.dt.hook,ent,0,0,0,true)
  281. ent.Think = function() print("asd") end
  282. end,
  283. }
Add Comment
Please, Sign In to add comment