GMod Gamemodes & Addons - WAYWO - #28

http://img268.imageshack.us/img268/7968/waywo.png

http://img254.imageshack.us/img254/3458/waywo12.png

http://img819.imageshack.us/img819/2337/waywopre.png

Highlights from the last thread:

Deep Space 3!

IDE

Minigolf

Awesome looking GM

devcon’s MMO

Some fancy stuff here that I have no idea what’s going on

PAC on NPCs

Bletotum’s amazing balls!

That HUD I made a while ago

Garrymon!

Hammer Export thingy

Day/Night Cycle

DOOM

iMesh Roads!

Proning!

Cool looking HUD

Metro-styled menu!

KUSTOM VEPONRY STUFF

A good old 70s Ray-gun

I’m Fam Sisher!

Can’t go wrong with floating buildings

http://4st.me/xagqI.png

sniff

Finally managed to get this bloody thing stable and working as it should, so here are few shots of gameplay:

Does this remind anyone of BioShock?

How did cat boi get banned anyways?

He got banned in the idiot cull.
http://forum.facepunch.com/showthread.php?t=1248593&p=39681775&viewfull=1#post39681775
Being permabanned once was apparently still not enough for him.

What in the fuck

[editline]13th April 2013[/editline]

That looks awesome

I’ve gotten back into coding because of this NextBot stuff. Here is the spider mines from Unreal Tournament 2004:

http://puu.sh/2zxFz

Almost done them I think, all I need to do it make the gun that deploys them and make them only hunt the other team and rival NPCs.

[img_thumb]http://cloud-2.steampowered.com/ugc/884104767900126870/04976D4DBD13FAA4148914B5876F7A834F09A306/[/img_thumb]
Click to zoom in.

Anyways, I can take someone’s screenshot despite the heavy compression. Will need to divide up the networking to send parts of the image and recompile it.
The person said they didn’t experience any lag at all so it’s all good. Overall it takes about a second or two to get the image after typing a command to get someone’s screenshot.

Awesome! Keep up with the good work!

But how do they handle obstacles?

Captured higher quality images now, they take a bit longer. Like about ~5 seconds.

[img_thumb]http://cloud-2.steampowered.com/ugc/884104767901068753/80F43F65E8E98719318CE93E01433A675916CC3D/[/img_thumb]

Any suggestions?

Do you plan on sharing? If not… could you at least reveal what hook :stuck_out_tongue:

Me and Morten made a library to play ogg and wav files from both url and local using html 5 audio.

here’s some doc

[lua]
– todo:

– loop points??
– finish filters (since we’re doing our own mixing we need to make our own type of filter)
– wave shaping

local stream = webaudio.Stream(URL)

– All Set should have a Get

– start/stop
stream:Start()
stream:Stop()

stream:Pause()
stream:Resume()

stream:Restart()

stream:SetMaxLoopCount(num) – anything equal or below 0 will make it play forever

– modifications
stream:SetPitch(num) – like pitch, normal is 1. you can even play it in reverse!
stream:SetVolume(frac)

stream:SetSamplePosition(num)
stream:SetPosition(frac) – helper for SetSamplePostition, 0 = start, 1 = end

stream:GetLength() – returns length in samples

– filter
webaudio.FILTER =
{
NONE = 0,
LOWPASS = 1,
HIGHPASS = 2,
}

stream:SetFilterType(webaudio.FILTER.*)
stream:SetFilterFraction(num)

– echo (this is per stream)
stream:SetEcho(b)
stream:SetEchoDelay(sec)
stream:SetEchoFeedback(frac)

– 3d stuff
stream:Enable3D(b)
stream:EnableDoppler(b) – this is also wip
stream:Set3DPos(vec)
stream:Set3DRadius(num)

stream:SetSourceEntity(ent, dont_remove)
[/lua]

you can find the code here:

https://github.com/CapsAdmin/pac3/blob/master/lua/pac3/core/client/libraries/urlogg.lua

More features may be added. May also recode it sometime in the future. We just kinda made it today and I’m now hoping to mass test it with PAC3.

Heh, looks similar to my thing, annoying to do javascript stuff with gmod

Does it still suffer from the issue of not obeying game volume?
I remember the last time Morten messed with HTML5 based sound… My ears are still not the same.

It never does. But it would be easy to add that

(Late Post Incoming)
I really like the new aspect you have given to DeathMatch. The server is nice so everyone can test it. My only problem, and it may just be me, but I find it very annoying in the face that nobody was really Playing, but everyone just went into the Garage and boosted.

It obeys volume and mute focus. There’s also another cvar to scale that volume or turning it completely off.