• GMod - What are you working on? October 2014 (#38)
    706 replies, posted
[QUOTE=LUModder;46183777]Working on a HUD for my upcoming server. [t]https://dl.dropboxusercontent.com/u/67402346/ShareX/2014/10/2014-10-08_12-07-03.jpg[/t] Just need to get the bars and ammo implimented and everything updating correctly. Only the ping and FPS really update.[/QUOTE] How are you setting the transparency? and will the right side of the HUD include a picture of the weapon you are using or is it just displaying information? I really like it though :)
[QUOTE=bluebull107;46184878][B]How are you setting the transparency?[/B] and will the right side of the HUD include a picture of the weapon you are using or is it just displaying information? I really like it though :)[/QUOTE] The surface library if I am correct.
[QUOTE=Blasphemy;46176946][QUOTE=Cardcapture1;46175131]Now you just need a joint that you can smoke on the go and be able to pass to other players.[/QUOTE]Does anyone know how to pose the viewmodel hands without making a completely new model? If so, I'll totally make one. I'll also make cigarettes that work the same way.[/QUOTE] You might be able to use: [CODE]ViewModel:AddCallback("BuildBonePositions",function( self, BoneCount ) end)[/CODE] That is what I used to make this except I did it on the playermodel: [IMG]http://puu.sh/c4Ii6/53479c8b70.png[/IMG] [B]EDIT:[/B] Bonus image of Breen when I was screwing around with his bones: [URL]http://puu.sh/c4wcd/aaea542aba.jpg[/URL]
[QUOTE=Cardcapture1;46185449][URL]http://puu.sh/c4wcd/aaea542aba.jpg[/URL][/QUOTE] you need meeee
[QUOTE=Pigbear;46186774]you need meeee[/QUOTE] [url=https://www.youtube.com/watch?v=TBsdWW7MOew]YOU NEED NEED ME. YOU NEED NEED ME. YOU NEED NEED ME. YOU NEED NEED ME. YOU NEED NEED ME.[/url] Still [i]the[/i] most horrifying abomination ever to exist.
been making a ton of weapons for a TTT server i help run plasma is truely the future [quote] [video]http://youtube.com/watch?v=XbpBLiyCMTs[/video] [video]http://youtube.com/watch?v=9KBVqHrdL0g[/video] [video]http://youtube.com/watch?v=ePzdUec2l78[/video] [video]http://youtube.com/watch?v=fz291dWkmiQ[/video] [/quote]
[QUOTE=AJ10017;46188569]been making a ton of weapons for a TTT server i help run plasma is truely the future[/QUOTE] They look really good, but there's only one problem : plasma weapons don't eject shells.
easy to fix, he can just intercept the shells using FireAnimationEvent.
[QUOTE=Steinman78;46189420]They look really good, but there's only one problem : plasma weapons don't eject shells.[/QUOTE] ill work on fixing that :) on a side note the smg now recharges ammo if you dont fire it, but it also can only fire 20 rounds before being depleted
[video=youtube;PDTTW4WXTpE]http://www.youtube.com/watch?v=PDTTW4WXTpE[/video] Megamanx 8 Zero!! i download megamanx8 zero model and sound then i put motions, code, and so on [video=youtube;HGGZ56yBWGw]http://www.youtube.com/watch?v=HGGZ56yBWGw[/video] bonus video~
-snip-
[QUOTE=cbh9308;46190247]-stuffs-[/QUOTE] Holy jesus that freaking big ass hud ew
Some drugs progress: I feel like most of my time coding this is going to be spent spacing out to the effects [vid]http://beigelands.com/files/drugs.webm[/vid]
Came back to gmod, asked someone what to do in gmod and told me to do some boot rocket launcher. So I did, but it changed to an entirely different weapon. I present to you, Junk Launcher (Apparently the person who I asked told me this feels like Scavgun if I kept adding more features to it, which I will overtime.) [video=youtube;MvqSW4t891Q]http://www.youtube.com/watch?v=MvqSW4t891Q[/video]
Hey, pretty much just finished all of the features I wanted to add to mysqloo. You can now get multiple results from one query: [LUA] local query = Database:query("SELECT * FROM users LIMIT 1; SELECT * FROM characters LIMIT 1;") function query:onSuccess(data) PrintTable(data) --user data if(self:hasMoreResults()) then PrintTable(self:getNextResults()) end end query:start() [/LUA] This of course only works if you have multi statements enabled (disabled by default because of security reasons) The other thing is that prepared statements can now be used to easily execute multiple selects/inserts/etc. of the same type: [LUA] local preparedQuery = Database:prepare("CALL GetPlayerInformation(?)") --Calling stored procedures safely. for i = 1, 10000 do preparedQuery:setNumber(1, math.random(1,10000)) if(i != 10000) then preparedQuery:putNewParameters(); end end function preparedQuery:onSuccess(data) while(data) do PrintTable(data) data = nil if(self:hasMoreResults()) then data = self:getNextResults() --Rach ResultSet is the data from one procedure call end end end preparedQuery:start() [/LUA] The database connections are now also set to auto reconnect in case they lose connection (enabled by default, can be disabled though). You can also have multiple inserts in a statement and get the insertid for each of the inserts: [LUA] local query = Database:query("INSERT INTO test VALUES(); INSERT INTO test VALUES();") function query:onSuccess(data) print(self:lastInsert()) -- InsertID of first insert self:getNextResults() print(self:lastInsert()) -- InsertID of second insert end query:start() [/LUA] Same also applies for using multiple inserts with prepared statements. All of this is working already, so I am hoping I can release this soon. I just need some people to test it and maybe find some bugs, so if you are interested send me a pm or add me on steam.
[QUOTE=Blasphemy;46194479]Some drugs progress: I feel like most of my time coding this is going to be spent spacing out to the effects [vid]http://beigelands.com/files/drugs.webm[/vid][/QUOTE] Weed doesn't do this and that's not a crack pipe. :X
[img]http://i.imgur.com/7BWQO7j.png[/img] Coming soon. [sp]Whenever the goddamn CSS updates[/sp]
the thing i miss most with the new wiki is the server/client icon differentiating the availability really
[QUOTE=Giraffen93;46199087]the thing i miss most with the new wiki is the server/client icon differentiating the availability really[/QUOTE] And code snippets
Matrix v0.1 [IMG]http://puu.sh/c6NSy/eca5c75db8.png[/IMG] [lua] lignes = 10 local function generatechar(nbr) if nbr == 0 then return tostring(math.random(0,9)) end if nbr > math.random(0, lignes) then return " " else return tostring(math.random(0,9)) end end local function generateline(distance_from_base) local strng = "" local w = ScrW()/7 local i = 0; while i<w do strng = strng .. generatechar(distance_from_base) i = i +1 end return strng end hook.Add("HUDPaint", "lapingsweg", function() local i = 0; while i < lignes do draw.SimpleText(generateline(i), "BudgetLabel", 10,i*20 , Color(0,255,0,255), 0, 0) i = i+1 end end) [/lua] Matrix v0.3 Better but slow [IMG]http://puu.sh/c6NJ6/e5b460b010.png[/IMG] [lua] local lignes = 10 local function generatechar(adr, nbr, past_line) if adr == 0 then return tostring(math.random(0,9)) end if past_line[nbr] == " " then return " " end if adr > math.random(0, lignes) then return " " else return tostring(math.random(0,9)) end end local function generateline(distance_from_base, past_line) local strng = "" local w = ScrW()/7 local i = 0; while i<w do strng = strng .. generatechar(distance_from_base, i+1,past_line) i = i +1 end return strng end local function generate_block() local tbl = {} local strng = "" local i = 0 while i < lignes do if table.IsEmpty(tbl) then table.insert(tbl, generateline(i, nil)) else strng = generateline(i, tbl[i]) table.insert(tbl,strng) end i = i+1 end return tbl end tablematrix = {} timer.Create("Matrix", 0.5, 0, function() tablematrix = generate_block() end) hook.Add("HUDPaint", "lapingsweg", function() for k, v in pairs(tablematrix) do draw.SimpleText(v, "BudgetLabel", 10,(k-1)*20 , Color(0,255,0,255), 0, 0) end end) timer.Simple(10, function() timer.Remove("Matrix") hook.Remove("HUDPaint", "lapingsweg") end) [/lua]
Nothing crazy [t]http://i.imgur.com/M3sO513.jpg[/t]
[QUOTE=Robotboy655;46199076][img]http://i.imgur.com/7BWQO7j.png[/img] Coming soon. [sp]Whenever the goddamn CSS updates[/sp][/QUOTE] are the blue arrows to go straight to the page for the hooks? like going to the effects hooks page?
Should they look this blurry and be grey? [IMG]http://imgur.com/37g8rxl.png[/IMG]
[QUOTE=Dummore;46200323]Should they look this blurry and be grey? [IMG]http://imgur.com/37g8rxl.png[/IMG][/QUOTE] The CS:S on mediawiki is not updated instantly.
you might mean cascading style sheets, not counter-strike: source
[QUOTE=LittleBabyman;46201249]you might mean cascading style sheets, not counter-strike: source[/QUOTE] Fuck, I have typed CS:S too many times. :v:
Now make the function name's color change depending on its realm!
[QUOTE=Tenrys;46202524]Now make the function name's color change depending on its realm![/QUOTE] It's not as simple as "make it", I will have to redo the whole sidebar backend for that.
[t]http://i.imgur.com/R7zBYVd.png[/t] [t]http://i.imgur.com/zM79kl7.png[/t] Oh you know, just stencil buffers and render targets :P Working on a world portals extension to e2, similiar to holograms, but you create portals that link to one another. Can't currently walk though them though.
I really love stencils, awesome work!
Sorry, you need to Log In to post a reply to this thread.