GMod - What are you working on? September 2017 (#73)
263 replies, posted
[QUOTE=BanterChicken;52682723]I just re-made the rating system from this site as a little gag![/QUOTE]
The number layout is a bit confusing and cluttered. Why don't you merge the numbers and icons together so that the numbers are a in the bottom right corner and tiny. Almost like "to the power of" but lower.
[QUOTE=kpjVideo;52682821]The number layout is a bit confusing and cluttered. Why don't you merge the numbers and icons together so that the numbers are a in the bottom right corner and tiny. Almost like "to the power of" but lower.[/QUOTE]
I agree, I don't know why I didn't think of that in the first place. (Don't mind the nick player being off, I am doing the resolution part right now)
[IMG]https://i.imgur.com/6lCZ8LD.png[/IMG]
I ever wanted to create a build editor
[vid]https://dl.dropboxusercontent.com/s/tovtkbzqvqmfujw/2017-09-14_22-19-27.mp4[/vid]
What's that? It's a wip system that lets you to build your base inside the property you bought, you can't go outside of the building neither you can't place props outside, i would liked to add gizmos, but i'm not that BRUTAL
Although that would pretty amazing, anyway, i want to implement snapping and some helpers like height and that stuff
snip i suck at reading
[QUOTE=gonzalolog;52682926]I ever wanted to create a build editor
[vid]https://dl.dropboxusercontent.com/s/tovtkbzqvqmfujw/2017-09-14_22-19-27.mp4[/vid]
What's that? It's a wip system that lets you to build your base inside the property you bought, you can't go outside of the building neither you can't place props outside, i would liked to add gizmos, but i'm not that BRUTAL
Although that would pretty amazing, anyway, i want to implement snapping and some helpers like height and that stuff[/QUOTE]
The whole point of having fun while building is the physgun though :V
Well, it's also fun grab a prop and trhow it to players causing rdming and minging as well :v
Players doesn't have access at spawnmenu, and inside building mode, everything is clientside until you spawn your stuff and everything is static, you can't grab it or drop it
[QUOTE=gonzalolog;52683142]Well, it's also fun grab a prop and trhow it to players causing rdming and minging as well :v
Players doesn't have access at spawnmenu, and inside building mode, everything is clientside until you spawn your stuff and everything is static, you can't grab it or drop it[/QUOTE]
So bases can't have moving parts?
[QUOTE=MPan1;52682598]I don't quite understand how you could do this. I'd really appreciate some example code, because I'm stuck with this problem:
[CODE]
local oldClip = render.EnableClipping( true )
render.PushCustomClipPlane( hole:GetForward(), hole:GetForward():Dot( hole:GetPos() - hole:GetForward() ) )
-- How do I clip the world in here?
-- game.GetWorld():DrawModel()?
-- game:GetWorld():Draw()?
-- None of these work and none of them make sense
-- I need to draw the world here somehow
-- help
render.PopCustomClipPlane()
render.EnableClipping( oldClip )
[/CODE][/QUOTE]
Oh, you'd still have to use RenderView, but you'd use the same eye position as the regular render and use stencils to hide it where you don't want it.
AFAIK, there's no way to render just the world (sadly), and I don't think it would even do you any good. Pre-render entity culling would mean objects behind the hole wouldn't show up consistently unless you explicitly render them with either RenderView or ent:DrawModel().
[QUOTE=NeatNit;52683962]Oh, you'd still have to use RenderView, but you'd use the same eye position as the regular render and use stencils to hide it where you don't want it.
AFAIK, there's no way to render just the world (sadly), and I don't think it would even do you any good. Pre-render entity culling would mean objects behind the hole wouldn't show up consistently unless you explicitly render them with either RenderView or ent:DrawModel().[/QUOTE]
You could return false in PreDrawOpaqueRenderables and PreDrawTranslucentRenderables during render.RenderView I think
[media]https://www.youtube.com/watch?v=wcbu3_7xcyQ[/media]
A damn hacky way .. but managed to give the Refract some sort of alpha.
[QUOTE=gonzalolog;52683142]Well, it's also fun grab a prop and trhow it to players causing rdming and minging as well :v
Players doesn't have access at spawnmenu, and inside building mode, everything is clientside until you spawn your stuff and everything is static, you can't grab it or drop it[/QUOTE]
Why not just disable prop throwing? It's really not that hard to override the physgun behaviour or even prop_physics behaviour. You could even put a little time into a Lua physgun if you wanted, but not having that core building mechanic strips away a lot of freedom in building.
Because we are not giving players access at tools/spawnmenu and we are running a server with 120 people, everything happens in clientside so building doesn't need to network/calculate anything else than just spawning
Monolith can get really slow sometimes, and we need move the charge to client and then we sanitize input in server than doing constants updates and such stuff
About building freedom, we can't do that much about this, we are managing a roleplay server, and i'm trying to give it something else, not a sandbox experience, but just a basic building functions where people can't exploit, since this is for decorating your rooms, just like gmod tower
[vid]https://giant.gfycat.com/AmazingEarlyJapanesebeetle.webm[/vid]
Cybernetic Arms: 25% recoil reduction and you can carry a 2nd Primary weapon
[QUOTE=gonzalolog;52687907]... where people can't exploit, ... [/QUOTE]
People can always exploit.
[QUOTE=Nak;52687705][media]https://www.youtube.com/watch?v=wcbu3_7xcyQ[/media]
A damn hacky way .. but managed to give the Refract some sort of alpha.[/QUOTE]
Remind me of my glasses when going out in rain :v:
Never coded before, its literally just a money printer with a couch model, I was just happy that I got the notification to work, it would spam "you rummaged around for $0" and I got it to not do that. Mostly followed code blues tutorial but found the notification stuff out myself which im proud of. Kinda lame but hey, baby steps.
edit: anyone know how I would be able to set it to only go to say, 5k and no more? kinda got a new real addon idea but i cant seem to get it right
[img_thumb]https://i.imgur.com/cL8A1LJ.jpg[/img_thumb]
[QUOTE=Nak;52687705][media]https://www.youtube.com/watch?v=wcbu3_7xcyQ[/media]
A damn hacky way .. but managed to give the Refract some sort of alpha.[/QUOTE]
I don't know how WIP this is but in my opinion the water droplets should be much 'closer' to the camera, a bit blurrier as well, otherwise it's more like a window parented half a meter away from the player's face
-snip-
[QUOTE=FireWolf2525;52689681]Not sure if this is the place to show this bit I have narrowed it down to StormFox breaking my health and armor bar.
[/QUOTE]
Post it here bud: [url]https://facepunch.com/showthread.php?t=1578224&p=52678048[/url]
[QUOTE=Yashirmare;52689734]Post it here bud: [url]https://facepunch.com/showthread.php?t=1578224&p=52678048[/url][/QUOTE]
Ah, I didn't see that. Thank you for telling me this!
[QUOTE=VIoxtar;52689458]I don't know how WIP this is but in my opinion the water droplets should be much 'closer' to the camera, a bit blurrier as well, otherwise it's more like a window parented half a meter away from the player's face[/QUOTE]
Sadly Refract is really limited, but I'm going to see what I can do. Thx for pointing out.
[QUOTE=Nak;52687705][media]https://www.youtube.com/watch?v=wcbu3_7xcyQ[/media]
A damn hacky way .. but managed to give the Refract some sort of alpha.[/QUOTE]
How exactly?
[QUOTE=a1steaksa;52690298]How exactly?[/QUOTE]
Took a copy of the screen, rendered the rain and then re-drew the screen with alpha. Damn source limits.
Surprisingly it doesn't take much to render it, only 2-4 FPS on my side.
Made a pretty basic Xanax pressing system for my own server, we have every other drug in the book but ive never seen Xanax as a drug system, so i thought I'd make it!
(Also super happy with this considering 16 hours ago the best thing I made was a couch that prints money so...)
[img_thumb]https://i.imgur.com/i1YN8oR.jpg[/img_thumb]
It feels like you're displaying some random "raindrops on window" video from stockphoto as overlay
[QUOTE=Nak;52687705][media]https://www.youtube.com/watch?v=wcbu3_7xcyQ[/media]
A damn hacky way .. but managed to give the Refract some sort of alpha.[/QUOTE]
i know it's a game and it's pretty cool. but it really does not make any sense to have steam all over the screen, it's like having a ton of water in my eyes when it rains.
[QUOTE=_Chewgum;52693369]i know it's a game and it's pretty cool. but it really does not make any sense to have steam all over the screen, it's like having a ton of water in my eyes when it rains.[/QUOTE]
I know. Edited it (made the effect a bit bigger) and included a setting to disable it as well.
I'll come back to re-make the effect later, after fixing some optimization and adding more options.
[QUOTE=_Chewgum;52693369]i know it's a game and it's pretty cool. but it really does not make any sense to have steam all over the screen, it's like having a ton of water in my eyes when it rains.[/QUOTE]
Yeah I agree I think the rain overlay from Fallout 4 is probably as far as he should go. Any more disrupts gameplay.
[QUOTE=_Chewgum;52693369]i know it's a game and it's pretty cool. but it really does not make any sense to have steam all over the screen, it's like having a ton of water in my eyes when it rains.[/QUOTE]
I replaced my similar addon with this on my server and it's working well and it's pretty cool etc. But as I felt with my own addon, over time it just gets in your way and I ended up disabling features and eventually making it only work on certain maps. I kinda forgot when I installed this. Again, it's really impressive but it does get in the way a lot of the time.
My server is a sandbox server though, but people don't build traditionally and it's more of a coding ground for developers and testing creative ideas with pac3 or e2 or whatever. Maybe that's the problem. Maybe it only makes sense in a serious roleplaying environment, even though I thought I wanted it in a sandbox (ish) environment to make the environment vary from time to time.
I'll keep the addon though as I wanna see how it evolves and all that. But sometimes I wish I could press a panic button to disable it for a moment.
[QUOTE=_Chewgum;52693369]i know it's a game and it's pretty cool. but it really does not make any sense to have steam all over the screen, it's like having a ton of water in my eyes when it rains.[/QUOTE]
In this case it does make sense since Gordon is running around with a camera recording what he sees and the water lands on the lens.
Sorry, you need to Log In to post a reply to this thread.