GMod Progress

If you want to keep up to date with the development of the new GMod version I’m regularly dumping my screenshots to this folder on my website.

So here’s a few highlights of what’s in there so far. We’re working on Lua at the moment (I want to see how much of GMod I can program purely in Lua – it should make developing it faster and easier).

Scripted Weapons

Scripted weapons are about the same, except they have client-side scripts. These allow you to draw effects/draw to the HUD/do prediction.

Free Image Hosting at www.ImageShack.us Free Image Hosting at www.ImageShack.us

Movement/View control

Because we have Lua on the client now we can control the movement/camera without it being all laggy like crap. This allows for some new gamemodes. The ‘commander’ view opens up a lot of possibilities, gamemode wise.

Free Image Hosting at www.ImageShack.us Free Image Hosting at www.ImageShack.us

Scripted Entities

Scripted entities are like scripted weapons, only entities. They can be accessed just like any other entity (give entity_name, ent_removeall entity_name etc). You can put them in your map and use them like real inbuilt entities.

You have pretty much total control over them. In the draw look you can draw the model and stuff on it, or leave out the model and draw other stuff.

Free Image Hosting at www.ImageShack.us Free Image Hosting at www.ImageShack.us Free Image Hosting at www.ImageShack.us

This working turret gun is 100% scripted, see the FULL Lua source code here.

Free Image Hosting at www.ImageShack.us Free Image Hosting at www.ImageShack.us

Scripted Effects

The scripted effects allow you to override existing special effects, like bullet impacts/tracers etc or make a new one to be used with your SWEP/gamemode. This is still a WIP and I’ve only just got it implemented, but here’s what I managed to wrangle so far.

Bear in mind that these are both processed and drawn using Lua.. so they’re 100% customisable.

Free Image Hosting at www.ImageShack.us Free Image Hosting at www.ImageShack.us Free Image Hosting at www.ImageShack.us

Possibilities

All this shit opens up a lot of new possibilities using Lua in GMod. One of the gamemodes that will be released in the next version is a crazy golf gamemode. This uses pretty much everything mentioned.

The ball is a scripted entity. This is so we can draw a sprite instead of a ball model, we can make it a perfect sphere and we can change the physics to make it bounce more. When the ball hits an edge it make a cartoony wack sprite. The hole is a scripted entity that pulls the ball into the hole and tells the gamemode that we’ve scored. It uses the new commander interface, you click on the screen with the cursor to aim, fire to shoot.

Free Image Hosting at www.ImageShack.us