GMod - What are you working on? January 2015 (#41)

At least you’re already comfortable modelling the roads instead of mapping them. You can always just keep replacing brushes with models :v:

Don’t forget about Propper. It will probably make your life easier.

Probably going to want this too

So i finally figured out how to use sound.PlayURL to use the Penis Corp TTS API

If its in TTT, you can only use it when alive, and on DarkRP it sends it to everyone when using OOC, or to people within 800 units


	local TP = function()
			if ( IsValid(tts) ) then

	local CheckDead = false
	local OOC = false
	if engine.ActiveGamemode()=="terrortown" then CheckDead = true end
	if engine.ActiveGamemode()=="darkrp" then OOC = true end
	if OOC and CheckDead==false then 
		if txt.Explode(" ")[1]==string.lower("/ooc") or txt.Explode(" ")[1]==string.lower("//") then 
			if ply:GetPos():Distance(LocalPlayer():GetPos())<800 then TP() end
	if CheckDead and OOC==false then 
		if dead==false and ply:IsSpec()==false then 
	if CheckDead==false and OOC==false then 

yes i know the variable names are terrible

On a side note, how do i play a sound on a player using this?

I decided that I had to finish my latest ATM update before I release my phone… So I’m working on a way to fully customize the ATM without having tough the code! Now people can model and add them to my ATMs with ease.

Although I didn't do it in the video, under the "Screen Display" tab, you can change the welcome screen.

I still have to work on customizing the money dispensing animation, the card insert animation, and the sounds.

[editline]25th January 2015[/editline]

You can also open the default and other custom setups to edit or derive for them. That way you can just change the colours and stuff without having to re-create the default ATM.

sexy bank + curved 3d2d scrolling text + npcs

It looks like you might be achieving that with multiple 3D2D contexts. Am I right?

I hope not, that could easily be a rendertarget texture on a model/mesh

It’d have less z fighting if it was rendered to a texture that was put on a curved mesh that rotates instead of rendering each letter seperately.

I am actually very curious how that was done and how soon it will be released to the public.
I’ve been wanting to make a Sword Art Online menu for a long time now.

Grab the current render target to a variable. It’s the screen. Set the render target to a new render target. Draw some plain 2d text. It won’t be visible on the screen, because the render target is not the screen. Copy the render target to a texture. Set the render target back to the screen. Use that texture in a material, on a rotating curved surface.

Good stuff man. Is this the map you said you almost hit the brush limit in? Looks sick.


Phongs are amazing guys, check out the difference:

For everyone who doesn’t know what it is, it’s an amazing way to enhance your model’s textures:

Here’s the code I use, please feel free to change the entity.

local entPolish = LocalPlayer( ).Vehicle

local materials = entPolish:GetMaterials( )

for index, matPath in pairs( materials ) do
	print( "PHONG MAT CREATED!", matPath )
	local iMat = Material( matPath )
		iMat:SetInt( "$phong", 1 )
		iMat:SetInt( "$phongexponent", 5 )
		iMat:SetString( "$phongexponenttexture", matPath )
		iMat:SetFloat( "$phongboost", 0.2 )
		iMat:SetString( "$PhongFresnelRanges", "[1 1 1]" )

I like the top image better than the bottom image. Did you label them right? because I think the top image is the one with phong.

Yeah it looks like the bottom image has no specular lighting.

Actually these planes use something that looks like a flight model but the stuka is a bad example :v: I’ve always gone for an easier to control approach. Real planes and helicopters are hard to control and with maps the size of a shoebox it’s just not fun having to spend 3/4th of the map taking off then spend the rest of the time flying in circles due to skybox limits.

I hate posting unless it’s something cool I’m showing, check this out:[/t]

That polish tho.

That bikini tho.

Sorry, I kind of got sidetracked and ended up looking at all of your screenshots. This project of yours is really cool and every post you make just makes me wish I spent less time on doing back-end stuff, sigh.

Back on topic, that looks pretty sweet but I suggest you turn down the exponent slightly to give it a less ‘glossy’ / ‘web 2.0’ look

Why are you such a creep?

Looking through someones screenshots doesnt necessarily mean their a creep, he could have just been browsing.

unless xavier has some kind of reputation of being a creep, then ignore me.

[editline]26th January 2015[/editline]

also hi i lurk this thread

How does that make him a creep?