• What Are You Working On? V10 -- April 2012 Edition
    313 replies, posted
  • Avatar of jackool
  • [img]http://www.devolved.us/waywo/logo.png[/img] Hey Facepunch! What are [i]you[/i] working on? [url=http://facepunch.com/threads/1167339][img]http://www.devolved.us/waywo/past_thread.png[/img][/url] ————————————————————————————————————————————— [img]http://www.devolved.us/waywo/highlights.png[/img] [b]Personalized license plates by highvoltage[/b] [img_thumb]http://cloud.steampowered.com/ugc/488877446831679899/8C680EC9C884E9E30ECA242EE50032FAF07F881B/[/img_thumb] [b]More of Fantym420's marble racing gamemode[/b] [video=youtube;olCZTf8gBdE]http://www.youtube.com/watch?v=olCZTf8gBdE[/video] [img_thumb]http://cloud.steampowered.com/ugc/506892105040815021/4C67A0429E236D629E4CF940D72D8875388A5821/[/img_thumb] [b]Prop resizer by Gran PC on GMod 13[/b] [img_thumb]http://www.peniscorp.com/stuff/GarrysMod13-2012-03-03_11.00.52.png[/img_thumb] [b]Physical clip tool (original by ralle105, fixed by cmdrmatthew on GMod13)[/b] [img_thumb]http://cloud.steampowered.com/ugc/486626006544603456/1AD98F885C7C7DA13779D486223EF132774051BF/[/img_thumb] [b]"Keypad Checker" by FPtje[/b] [img_thumb]http://i.imgur.com/lzcq0.jpg[/img_thumb] [b]Hentie's guitar hero frets using uvwrapping[/b] [vid]http://dl.dropbox.com/u/1428136/hl2%202012-03-04%2022-15-50-29.webm[/vid] [img_thumb]http://puu.sh/juUa[/img_thumb] [b]OCRP bank system + reward system by crap-head[/b] [img_thumb]http://cloud.steampowered.com/ugc/504640497376737709/FD1EAABCF773A07B0FCFEC4713D6A39460889B19/[/img_thumb] [img_thumb]http://cloud.steampowered.com/ugc/504640497376734397/7C5CA994010D956156BE47F87CE9C4624CECAB07/[/img_thumb] [b]Spencer Sharkey's tile-game using derma[/b] [vid]http://puu.sh/jM7g[/vid] [b]Gmod4ever's pretty powerups/effects[/b] [img_thumb]http://dl.dropbox.com/u/8416055/Arsenal/ars_arena_v1d0001.jpg[/img_thumb] [img_thumb]http://dl.dropbox.com/u/8416055/Arsenal/ars_arena_v1d0000%20%282%29.jpg[/img_thumb] [b]More progress on Hentie's zombie gamemode[/b] [vid]http://puu.sh/k9Ar[/vid] [b]Thermadyle's pro gamemode[/b] [video=youtube;gvbhPjDGvGw]http://www.youtube.com/watch?v=gvbhPjDGvGw[/video] [b]Hentie's letter-wrapping textentry control (also created a word-wrapping one).[/b] [vid]http://puu.sh/klWU[/vid] [b]_Chewgum's inventory[/b] [img_thumb]http://puu.sh/l1sL[/img_thumb] [b]Weltensturm's Cessna plane[/b] [video=youtube;iPqBpRnEg6k]http://www.youtube.com/watch?v=iPqBpRnEg6k[/video] [b]BEN[/b] by Aska49 [video=youtube;SJ7pGVXPq_k]http://www.youtube.com/watch?v=SJ7pGVXPq_k[/video] [b]Illusion of a full city by Hentie[/b] [video=youtube;HJAyTIQ4-KM]http://www.youtube.com/watch?v=HJAyTIQ4-KM[/video] [b]LEETNOOB's loadout menu[/b] [img_thumb]http://cloud.steampowered.com/ugc/560937156376026645/A893FC850CCB3B44DD098B34B55E8AB9647672FC/[/img_thumb] [b]"Shrinking map thing" (enterable 3d skybox) by Fantym420[/b] [video=youtube;xNbNgUfgZoI]http://www.youtube.com/watch?v=xNbNgUfgZoI[/video] [b]F-18 Bat Chatillon by Hoffa1337[/b] [video=youtube;eNmvX0VKgY8]http://www.youtube.com/watch?v=eNmvX0VKgY8[/video]
  • Avatar of jackool
  • [QUOTE=Wizard of Ass;35414716]OP needs lots of work.[/QUOTE] Of course, on page 6 of the old thread currently getting highlights. Will be finished soon. Tell me any suggestions you have. [b]Edit:[/b] Pretty much done, any suggestions? [b]Edit:[/b] Could a mod please change the "V9" in the title to "V10"? My mistake.
  • Avatar of Hentie
  • needs less hentie [editline]3rd April 2012[/editline] flattered by the features though :blush:
  • Avatar of jackool
  • [QUOTE=Hentie;35418196]needs less hentie [editline]3rd April 2012[/editline] flattered by the features though :blush:[/QUOTE] You posted a [b]lot[/b] of great stuff in the past thread, and it seems there wasn't as much content as the past WAYWO V8 thread.
  • Avatar of Hoffa1337
  • Not a mention of my vehicles :( Here's a video: [video=youtube;eNmvX0VKgY8]http://www.youtube.com/watch?v=eNmvX0VKgY8[/video]
  • Avatar of ollie
  • [QUOTE] [IMG]http://cloud.steampowered.com/ugc/578952599720122415/6BF5244CEA38D1DF326F081CD9F1175671EF1A55/[/IMG] [IMG]http://cloud.steampowered.com/ugc/578952599720120388/32F4C0CC144FB0EA9043C7A4DC43866360CE7E16/[/IMG] [IMG]http://cloud.steampowered.com/ugc/578952599720123891/C7A2391A62A019CF217D9E82196CFE13E2330D80/[/IMG] [IMG]http://cloud.steampowered.com/ugc/578952599720125828/0EE802580D54B4E79A5603D228220507644F1016/[/IMG] [/QUOTE] It draws .png or .jpg images on your screen trough php and lua. Gets kinda laggy when drawing 80x80 images. Which is 6 400 pixels, lol.
  • Avatar of FPtje
  • Why not use a HTML element instead? I'm sure that would be less laggy.
  • Avatar of ollie
  • [QUOTE=FPtje;35423970]Why not use a HTML element instead? I'm sure that would be less laggy.[/QUOTE] I'm not planning to actually draw images on players huds, this was just a test if you can actually draw them pixel by pixel.
  • Avatar of Gran PC
  • [QUOTE=ollie;35424013]I'm not planning to actually draw images on players huds, this was just a test if you can actually draw them pixel by pixel.[/QUOTE] Why would you be unable to do so?
  • Avatar of ollie
  • [QUOTE=Gran PC;35424042]Why would you be unable to do so?[/QUOTE] Huh? I just tried if [B]i[/B] can code something like this. [QUOTE][IMG]http://cloud.steampowered.com/ugc/578952599720981244/68278E804F2E5D2E8D6D486AA53722CA01050B2E/[/IMG][/QUOTE] Apparently it works with 3d2d too, well why shouldn't it work..
  • Avatar of jackool
  • [QUOTE=Hoffa1337;35423113]Not a mention of my vehicles :( Here's a video: -video snip-[/QUOTE] Not sure how I missed that. Added it :) [QUOTE=Gran PC;35424042]Why would you be unable to do so?[/QUOTE] Could you change the "V9" in the title to "V10" for me. Not sure if only mods can do this, but it won't let me go advanced on the OP anyway.
  • Avatar of LilRobot
  • i'm making some wonderful waffles [video=youtube;7qC9Bk5ooJE]http://www.youtube.com/watch?v=7qC9Bk5ooJE&feature=youtu.be[/video]
  • Avatar of LilRobot
  • [QUOTE=werewolf0020;35428073]no offense but that reload animation is turrible[/QUOTE] it's a temporary as of right now, considering there hasn't been a way to port anims yet.
  • Nothing at all near completion, But this is the principles: [code] GAMEMDOE2 = {} GAMEMODE2:functions = {} GAMEMODE2._Core = {} function GAMEMODE2._Core:Initialize() for k,v in pairs(_G) do GAMEMODE2:functions[tostring(k)] = table.Copy(v) end local t = 91 local t2 = 0 local IsDone = false local function GetCompleteSet(Blah) if Type(Blah) != "Table" then return end local Count = #Blah for k,v in pairs(Blah) do if Type(v) == "Table" then Count = GetCompleteSet(v) + Count end end return count end while (t2<t && !IsDone) do if (!IsDone && t2 < t) and GetCompleteSet(GAMEMODE2:functions) == GetCompleteSet(_G) then t2 = t IsDone = true else t2=2 end if !IsDone then print("Failed to comlpete Initialize") end end function GAMEMODE2._Core:CallFunc(func,...) local extras = {...} // ? :D local funky = GAMEMODE2:functions[func] funky(table.concat(extras,",") end function GAMEMODE2._Core:ReplaceFunc(func,func2) local funky = GAMEMODE2:functions[func] func2(funky) end [/code] What it should do: Replicates all the function in GMod, And Store and exact copy of what they do in a GAMEMODE2 table , Then the user can chose to derive those functions, And edit them. What i expect should happen at the moment: fuck all, This was codded in 20, and has many usless things ... What i potential i want it to have: Be used in some anti cheats: For detecting when somthing is called, And .... Blahz.
  • Avatar of James
  • [QUOTE=dingusnin;35428928]Nothing at all near completion, But this is the principles: [code] GAMEMODE2:functions[tostring(k)] --> GAMEMODE2.functions[tostring(k)] GAMEMODE2:functions[func] --> Same local funky = GAMEMODE2:functions[func] --> Ditto [/code] What it should do: Replicates all the function in GMod, And Store and exact copy of what they do in a GAMEMODE2 table , Then the user can chose to derive those functions, And edit them. What i expect should happen at the moment: fuck all, This was codded in 20, and has many usless things ... What[B] i potential i want[/B] [ 2 subjects ] it to have: [B]Be used[/B] [ either infinitive or 3rd person? ] in some anti cheats: For detecting when somthing is called, And .... Blahz.[/QUOTE] No, I'm not a grammar Nazi, I just fell on some errors in your code and thought that I should also help with your grammar/syntax. I will also post my solution to this problem soon.
  • I dont see a problem with my code, however repetitive it may be. But as I see you like reading ( and also correcting ) my posts... Mind reading the first line again? The one that says it is no where near finished. Any how... I will complete the ret of the code tomorrow.
  • Avatar of James
  • Not being finished and having syntax errors are not the same thing.
  • Avatar of HighVoltage
  • I made it into the OP? :D That reminds me, would anybody be interested in me releasing the code for the text? I just translated it over from UT2K4 and added a few things.
  • Avatar of Hentie
  • [QUOTE=dingusnin;35428928]Nothing at all near completion, But this is the principles: [code] GAMEMDOE2 = {} GAMEMODE2:functions = {} GAMEMODE2._Core = {} function GAMEMODE2._Core:Initialize() for k,v in pairs(_G) do GAMEMODE2:functions[tostring(k)] = table.Copy(v) end local t = 91 local t2 = 0 local IsDone = false local function GetCompleteSet(Blah) if Type(Blah) != "Table" then return end local Count = #Blah for k,v in pairs(Blah) do if Type(v) == "Table" then Count = GetCompleteSet(v) + Count end end return count end while (t2<t && !IsDone) do if (!IsDone && t2 < t) and GetCompleteSet(GAMEMODE2:functions) == GetCompleteSet(_G) then t2 = t IsDone = true else t2=2 end if !IsDone then print("Failed to comlpete Initialize") end end function GAMEMODE2._Core:CallFunc(func,...) local extras = {...} // ? :D local funky = GAMEMODE2:functions[func] funky(table.concat(extras,",") end function GAMEMODE2._Core:ReplaceFunc(func,func2) local funky = GAMEMODE2:functions[func] func2(funky) end [/code] What it should do: Replicates all the function in GMod, And Store and exact copy of what they do in a GAMEMODE2 table , Then the user can chose to derive those functions, And edit them. What i expect should happen at the moment: fuck all, This was codded in 20, and has many usless things ... What i potential i want it to have: Be used in some anti cheats: For detecting when somthing is called, And .... Blahz.[/QUOTE] I still don't understand.
  • Avatar of alexojm
  • [QUOTE=LilRobot;35427998]i'm making some wonderful waffles [video=youtube;7qC9Bk5ooJE]http://www.youtube.com/watch?v=7qC9Bk5ooJE&feature=youtu.be[/video][/QUOTE] I made one once [IMG]http://i42.tinypic.com/4g3c47.jpg[/IMG]
  • Avatar of HighVoltage
  • Here is the code for the licence plate text: [lua]concommand.Add( "TextToLicensePlate", function( ply, cmd, args ) if args[1] then MsgN(TextToLicensePlate(args[1])) end end ) function TextToLicensePlate(name) name = string.lower(name) if (string.len(name) > 8) then -- Lets remove all the unnecessary crap so your name will fit name = string.gsub(name,"xxx","") -- I hate these people name = string.gsub(name,'[\\/:%*%?"<>|]',"") name = string.gsub(name,"%p","") -- Punctuation name = string.gsub(name,"for","4") -- Change words to a shorter version name = string.gsub(name,"one","1") -- name = string.gsub(name,"ate","8") -- hate = h8 name = string.gsub(name,"too","2") name = string.gsub(name,"to","2") name = string.gsub(name,"two","2") name = string.gsub(name,"you","u") if (string.len(name) > 8) then -- Still not small enough? name = string.gsub(name," ","") end if (string.len(name) > 8) then name = string.gsub(name,"%d","") -- Remove numbers end if (string.len(name) > 8) then -- Still not small enough?! Characters = string.Explode("", name) -- Remove vowels or double letters one by one from right to left local numleft = table.Count(Characters) for i=table.Count(Characters), 0, -1 do if numleft > 8 then if Characters[i] == "a" or Characters[i] == "e" or Characters[i] == "i" or Characters[i] == "o" or Characters[i] == "u" or Characters[i] == Characters[i-1] then Characters[i] = "" numleft = numleft - 1 end end end name = string.Implode("", Characters) end end name = string.Left(name, 8) -- You can't say I didn't try, but just in case your name is insane... name = string.upper(name) -- Make it upper case return name end[/lua] Its not the best and there is probably better ways to do a lot of it but like I said I pretty much just transferred it from UT2K4 and added some stuff. It includes a concommand for people that quickly want to mess around with their names.
  • Avatar of samm5506
  • I've been working on a Zombie Escape gamemode for Garry's Mod, on and off for the past few months. Some Zombie Escape maps have map-based "bosses," so I ended up networking the health. :) [thumb]http://i44.tinypic.com/2aim2h1.png[/thumb] This is the boss 'Bahamut' from the map ze_ffvii_mako_reactor_v5_1. If you've ever played Zombie Escape before, I think this feature will be very pleasing to you.
  • Avatar of Deadman123
  • Well, I was bored last night, so I made this thing so you can chat with another player on the server from a derma menu. Almost positive it works, it worked with myself and a bot, so I don't see why it wouldn't on an actual server. Have Some Code(I know it looks gross as hell): [lua] if CLIENT then text = {} target = "" usermessage.Hook("RecieveMessage", function(msg) local txt = msg:ReadString() local pl = msg:ReadString() text[#text + 1] = os.date("(%I:%M)"..pl.." : ")..txt //print "tabled" end) function shit() if ChatFrame != nil then ChatFrame:Remove() end Chatframe = vgui.Create("DFrame") Chatframe:SetSize(500, 500) Chatframe:Center() Chatframe:SetTitle("Chat") Chatframe:SetDraggable(false) Chatframe:MakePopup() local panel = vgui.Create("DPanel", Chatframe) panel:SetSize(480, 460) panel:SetPos(10, 30) panel.Paint = function() draw.RoundedBox(2, 0, 0, panel:GetWide(), panel:GetTall(), Color(50, 50, 50, 255)) end local textentry = vgui.Create("DTextEntry", panel) textentry:SetSize(150, 20) textentry:SetPos(panel:GetWide() / 2 - 75, panel:GetTall() - 40) textentry:SetEditable(true) textentry.OnEnter = function() RunConsoleCommand("pl_select", target) RunConsoleCommand("pl_sender", LocalPlayer():Nick()) RunConsoleCommand("chat_text", textentry:GetValue()) textentry:SetValue("") end local panellist = vgui.Create("DPanelList", panel) panellist:SetPos(480/2-150, 50) panellist:SetSize(300, 360) panellist:SetSpacing(5) panellist:SetPadding(5) panellist:EnableHorizontal(false) panellist:EnableVerticalScrollbar(true) panellist.Paint = function() draw.RoundedBox(2, 0, 0, panellist:GetWide(), panellist:GetTall(), Color(0, 0, 0, 0)) end timer.Create("Check_Chat", 0.2, 0, function() for k, v in pairs(text) do local lab = vgui.Create("DLabel") lab:SetFont("default") lab:SetWrap(true) lab:SetColor(Color(255, 255, 255, 255)) lab:SetText(v) lab:SizeToContents() lab:SetTall(20) lab.Think = function() lab:SetText(v) end text[k] = nil panellist:AddItem(lab) end end) local lb = vgui.Create("DLabel", panel) lb:SetPos(20, 5) lb:SetFont("default") lb:SetColor(Color(255, 255, 255, 255)) lb:SetText("Choose your chat target") lb:SizeToContents() local list = vgui.Create("DMultiChoice", panel) list:SetPos(40, 20) list:SetSize(80, 20) for k, v in pairs(player.GetAll()) do if v != LocalPlayer() then list:AddChoice(v:Nick()) list.OnSelect = function(panel,index,value,data) target = value end end end end usermessage.Hook("Hi", shit) end if SERVER then local pl = "" local sender = "" function FindPlayerByName(info) for k, v in pairs(player.GetAll()) do if string.find(v:Nick(), info) then return v end end return nil end concommand.Add("chat_open", function(ply, cmd, args) //print "hola" umsg.Start("Hi", ply) umsg.End() end) concommand.Add("chat_text", function(ply, cmd, args) //print "hi" local RP = RecipientFilter() RP:AddPlayer(ply) RP:AddPlayer(pl) umsg.Start("RecieveMessage", RP) umsg.String(table.concat(args, " ")) umsg.String(sender) umsg.End() end) concommand.Add("pl_select", function(ply, cmd, args) //print "player Selected" pl = FindPlayerByName(args[1]) end) concommand.Add("pl_sender", function(ply, cmd, args) sender = table.concat(args, " ") end) end [/lua] Edit: [t]http://cloud.steampowered.com/ugc/558686202419474392/27EE917DFDDDB2FF5C8F01FB9FB32049519EA3BE/[/t]
  • Avatar of marvincmarvin
  • I'm working on a console like thing, because I need some practice with derma. [IMG]http://i.imgur.com/0uXhk.png[/IMG] [IMG]http://i.imgur.com/dfWkK.png[/IMG] You can run commands, and create custom ones as well. Here's the layout of a custom command. [lua] COMMAND.name="name" COMMAND.description="" function COMMAND.callback(...) end function COMMAND.arglist() return {} end [/lua]
  • Avatar of jackool
  • I posted this in the past thread... [video=youtube;gQOAcf7Urrg]http://www.youtube.com/watch?v=gQOAcf7Urrg[/video] and decided to finish it earlier [video=youtube;4vk1SrnoMXM]http://www.youtube.com/watch?v=4vk1SrnoMXM[/video] [b](HD 1080p)[/b] Not completely done, still need to switch spawnicons to dmodelpanel.
  • Avatar of Feihc
  • [QUOTE=samm5506;35450493]I've been working on a Zombie Escape gamemode for Garry's Mod, on and off for the past few months. Some Zombie Escape maps have map-based "bosses," so I ended up networking the health. :) [thumb]http://i44.tinypic.com/2aim2h1.png[/thumb] This is the boss 'Bahamut' from the map ze_ffvii_mako_reactor_v5_1. If you've ever played Zombie Escape before, I think this feature will be very pleasing to you.[/QUOTE] That's a sexy ass HUD
  • Avatar of Johnny Guitar
  • Working on an APB Styled HUD. [IMG_THUMB]http://cloud.steampowered.com/ugc/595841084581244698/CF74B959961AA0A840B0FB2144235031050CE720/[/IMG_THUMB]