• Growing Weed Plant For Darkrp
    56 replies, posted
There are two entitys an empty pot and a seed. When you drop the pot on the seed it starts to grow and when it is has a white outline it is ready to harvest. When you harvest you will recieve an empty pot and 1 bag of weed. These are only useable for darkrp. But I must say again I do not claim any credit on the models or materials. [url=http://www.garrysmod.org/downloads/?a=view&id=99724][img]http://www.garrysmod.org/img/?t=dll&id=99724[/img][/url]
[noparse][url=http://www.garrysmod.org/downloads/?a=view&id=99724][img]http://www.garrysmod.org/img/?t=dll&id=99724[/img][/url][/noparse] Use this please.
[QUOTE=Spiderfacev3;22247265][noparse][url=http://www.garrysmod.org/downloads/?a=view&id=99724][img]http://www.garrysmod.org/img/?t=dll&id=99724[/img][/url][/noparse] Use this please.[/QUOTE] Thanks sorry for my noobness.
No problem.
Gah, that one looks almost just as the one i made :saddowns: still nice though [editline]08:50AM[/editline] But mine wasent for DarkRP
[QUOTE=Tobba;22251692]Gah, that one looks almost just as the one i made :saddowns: still nice though [editline]08:50AM[/editline] But mine wasent for DarkRP[/QUOTE] Yeah i didnt expect to be that original this idea has been floating around for a while and I have seen it on different servers. But this idea can be built on a lot such as adding randomness to the weed spawn when you harvest so it can spawn 2 or even 3. And i give permission for anyone to do any of that to it and upload it for everyone else.
Hi, I think i have seen this somewhere, oh yeah, PERP :downs: It's exactly the same, did you even make this?
[QUOTE=Proost;22247192] But I must say again I do not claim any credit on the models or materials.[/QUOTE] :downs:
[QUOTE=beanhead;22314442]:downs:[/QUOTE] Yeah im trying to piss off as few many people as I can on my first upload but I already got someone claiming that I copied this. But its the internet and that's how its gonna stay.
Well this isnt like the one in perp. This one spawns weed, the one on perp grows and when its done you pick it up. Also this uses like 7 models for the growing part, perp uses 1. So its not stolen.
[QUOTE=yuriman;22322250]Well this isnt like the one in perp. This one spawns weed, the one on perp grows and when its done you pick it up. Also this uses like 7 models for the growing part, perp uses 1. So its not stolen.[/QUOTE] Yes i have gotten the idea from perp but it is not exactly the same. [QUOTE=kill3r;22305220]Hi, I think i have seen this somewhere, oh yeah, PERP :downs: It's exactly the same, did you even make this?[/QUOTE] Also did you even check the download?
[QUOTE=Proost;22331334]Yes i have gotten the idea from perp but it is not exactly the same. Also did you even check the download?[/QUOTE] Do you just ask if they even checked the download when they have obviously seen the fucking operation of the ent already. I even checked the code and the fucking guy cant code for shit. It's very similar to my version, but you know what who cares. It's LUA coding and it's open source. What I do care about is your piss poor attempt at using timer.create to change the models. There is a way easier way to run those functions to change the models.
[QUOTE=Kronophonix;22357878]Do you just ask if they even checked the download when they have obviously seen the fucking operation of the ent already. I even checked the code and the fucking guy cant code for shit. It's very similar to my version, but you know what who cares. It's LUA coding and it's open source. What I do care about is your piss poor attempt at using timer.create to change the models. There is a way easier way to run those functions to change the models.[/QUOTE] Firstly its my first upload and lua attempt. Secondly if you can make a better one do so and if you have, why are you whinging about mine? Thirdly thanks for the criticism :D
[QUOTE=Kronophonix;22357878]Do you just ask if they even checked the download when they have obviously seen the fucking operation of the ent already. I even checked the code and the fucking guy cant code for shit. It's very similar to my version, but you know what who cares. It's LUA coding and it's open source. What I do care about is your piss poor attempt at using timer.create to change the models. There is a way easier way to run those functions to change the models.[/QUOTE] Nobody's heard of you, you don't know that Lua is not an acronym, I call bullshit.
[QUOTE=|FlapJack|;22364635]Nobody's heard of you, you don't know that Lua is not an acronym, I call bullshit.[/QUOTE] Want my code? PM me...
Why would I want to PM you for your code? If yours is "so much better" and think that you are "better" at coding than everyone else, why not post some examples of your code to prove so? I really don't like it when people come into this section with the "better than you" attitude without backing it up.
[QUOTE=Kronophonix;22365128]Want my code? PM me...[/QUOTE] print("I can print too!")
Never said I was better, I said that his was similar to mine. It is also funny how this kid comes out of nowhere knowing Lua and you all trust him over some other random guy. Here is part of the init.lua [lua] function ENT:Initialize() self:SetModel("models/nater/weedplant_pot.mdl") timer.Simple(30, self.CreateGrowth, self) end function ENT:CreateGrowth() self:SetModel("models/nater/weedplant_pot_dirt.mdl") timer.Simple(math.random(100, 350), self.CreateGrowth1, self) end function ENT:CreateGrowth1() self:SetModel("models/nater/weedplant_pot_planted.mdl") timer.Simple(math.random(100, 350), self.CreateGrowth2, self) end function ENT:CreateGrowth2() self:SetModel("models/nater/weedplant_pot_growing1.mdl") timer.Simple(math.random(100, 350), self.CreateGrowth3, self) end function ENT:CreateGrowth3() self:SetModel("models/nater/weedplant_pot_growing2.mdl") timer.Simple(math.random(100, 350), self.CreateGrowth4, self) end function ENT:CreateGrowth4() self:SetModel("models/nater/weedplant_pot_growing3.mdl") timer.Simple(math.random(100, 350), self.CreateGrowth5, self) end function ENT:CreateGrowth5() self:SetModel("models/nater/weedplant_pot_growing4.mdl") timer.Simple(math.random(100, 350), self.CreateGrowth6, self) end function ENT:CreateGrowth6() self:SetModel("models/nater/weedplant_pot_growing5.mdl") timer.Simple(math.random(100, 350), self.CreateGrowth7, self) end function ENT:CreateGrowth7() self:SetModel("models/nater/weedplant_pot_growing6.mdl") timer.Simple(math.random(100, 350), self.CreateGrowth8, self) end function ENT:CreateGrowth8() self:SetModel("models/nater/weedplant_pot_growing7.mdl") end [/lua] Happy now? EDIT: For all those wondering where the rest of the code is, I only showed the change model and initialize for the model and timer for the functions because it's all you need to know.
[QUOTE=Kronophonix;22368298] Happy now? [/QUOTE] Win
I apologise for the print comment... SetModel("I can set models too.mdl")
[QUOTE=AngryChairR;22368418]I apologise for the print comment... SetModel("I can set models too.mdl")[/QUOTE] Oh, you mean that you are a half ass coder and have to go back and recode everything? Or you are sorry you are stupid? [highlight](User was banned for this post ("Flaming" - grea$emonkey))[/highlight]
[QUOTE=Kronophonix;22368447]Oh, you mean that you are a half ass coder and have to go back and recode everything? Or you are sorry you are stupid?[/QUOTE] flaming much, I would use this if it wasn't so big.
[QUOTE=Kronophonix;22368298]It is also funny how this kid comes out of nowhere knowing Lua and you all trust him over some other random guy.[/QUOTE] My initial opinion on someone is based on attitude, not skill. Skill is something I can judge after judging their character.
Hmm so i come out of no where and make an easy entity? WTF STOLEN HAXSS!111 Also congratulations on randomizing the timer. [QUOTE=mishappp;22378262]flaming much, I would use this if it wasn't so big.[/QUOTE] He has also flamed me on my gmod upload in the comments aswell. I guess some people just have nothing else to do. [QUOTE=Kronophonix;22368298]Never said I was better, I said that his was similar to mine. It is also funny how this kid comes out of nowhere knowing Lua and you all trust him over some other random guy.[/QUOTE] You called my attempt "piss poor" and maybe the reason they trust me is because I'm not accusing everyone of anything and I'm not flaming others that disagree with me. Lastly if you've never uploaded it how the hell am I supposed to have copied it.
[QUOTE=Proost;22381526]Lastly if you've never uploaded it how the hell am I supposed to have copied it.[/QUOTE] Ohhh shit, /argument over.
[QUOTE=Kronophonix;22368298]Never said I was better, I said that his was similar to mine. It is also funny how this kid comes out of nowhere knowing Lua and you all trust him over some other random guy. Here is part of the init.lua -code snip- Happy now? EDIT: For all those wondering where the rest of the code is, I only showed the change model and initialize for the model and timer for the functions because it's all you need to know.[/QUOTE] Jesus that code is fugly. The least you could have done is put the model paths in a table, and only used one function. [lua] function ENT:Initialize() // Models Table // self.Models = {} self.Models[1] = "MODEL HERE" self.Models[2] = "OH LOOK ANOTHER MODEL" self.Models[3] = "MODEL" self.Models[4] = "LOADSA WEED" self.Entity:SetModel("First model here") self.Entity:SetNWInt("growLevel", 0) timer.Simple(50, self.Entity:Grow, self) end function ENT:Grow() local growLevel = self.Entity:GetNWInt("growLevel") if growLevel > 4 then self.Entity:MakeWeed return end self.Entity:SetModel(self.Models[growLevel]) timer.Simple(50, self.Entity:Grow, self) self.Entity:SetNWInt("growLevel", growLevel + 1) end function ENT:MakeWeed() local weed = ents.Create("class for weed here") weed:SetPos(self.Entity:GetPos()) weed:Spawn() self.Entity:Remove() --[[ if you want you could just do self.Entity:SetNWInt("growLevel", 0) self.Entity:SetModel("back to the first model again") end [/lua] EDIT: Heck, you even did the entity set model stuff wrong. It's self.Entity:SetModel() not self.SetModel()
Good to see someone got some use out of those old models. I intended to remake them, but I never got around to it, and I'm so unfamiliar with the modelling program now.
[QUOTE=David_h102;22436907]Jesus that code is fugly. EDIT: Heck, you even did the entity set model stuff wrong. It's self.Entity:SetModel() not self.SetModel()[/QUOTE] self:SetModel("blah") also works.
[QUOTE=David_h102;22436907]Jesus that code is fugly. The least you could have done is put the model paths in a table, and only used one function. [lua]Luas [/lua] EDIT: Heck, you even did the entity set model stuff wrong. It's self.Entity:SetModel() not self.SetModel()[/QUOTE] Firstly your code is no prettier and isn't valid, and secondly self.Entity is old, redundant, depreciated and left in only to stop ancient scripts from breaking. It should never be used, and any script that does use it should be updated.
Well aside from all that could somebody help me fix the bugs in it which are: You can pocket them. You cannot gravity gun the seed.(Which is bugbait) I think i might need to choose a new model for the seed.
Sorry, you need to Log In to post a reply to this thread.