Four GMod/Wiremod Quaternion based flight systems.

Half_life_2_logoOne of the few things better than having wiremod quaternion based flight systems is having lots of them.
Here are a few including the Expression 2 code and advdupe files. Win.

All of these vehicles are a seat mounted on a giant E2 chip. They’re based on roughly the same code, so you can mix and match bits to your liking ūüôā¬†The Adv Dupe and Expression2 downloads are at the bottom of the page.

Continue reading

Fixing XBox error 0020 – On the cheap.


Having never owned an XBox, I jumped at the chance to have a peek into the guts of a friend’s broken machine. ¬†It took all of 5 minutes to google the extended error code (0020) and no more than an hour to fix it without resorting to buying an X-Clamp fix kit, heat gun, ramming erasers under the chips or sticking the thing in the oven. As¬†an added bonus, you can also do this without removing the heatsinks or having to re-apply thermal paste.

Continue reading

Fixing ADB shell colors in the windows command prompt.


At some point this morning I was suddenly and without warning struck with the urge¬†to get the old AALib demo “BB” running on my ‘droid. Eventually I had an ARM build¬†of Debian running and BB installed without any fuss. (apt-get install bb).

What I hadn’t anticipated though was that using ADB shell from the windows command¬†prompt would result in color code escape sequences being printed straight to the¬†screen. Worse still, I couldn’t Ctrl+C out of a program without killing ADB shell,¬†and other keys such as the arrows and escape key were being ignored completely.

So without further ado, here are a few solutions :

Faster Number rounding with bitwise operators in AS3.

Time and time again, AS3 reaffirms its place in my heart as one of the most well planned, well implemented and functional languages I’ve had the pleasure of using. So when I came across this little gem – someone trying to perform a bitwise shift left on a floating point number – I wasn’t sure whether to be intrigued, impressed or confused.

var Y:Number = 5.5; 
var X:int = Y << 8; 

I found myself asking why this functionality was included, what would be the outcome, why it worked, and if it did work what sort of rounding  was going on behind the scenes.(Also why would anyone attempt this, but that was fairly tertiary.)

As it turns out, AS3’s SHL operator can actually be used as a very fast and quite useful form of rounding.¬†Read on for an explanation, some examples and calculated times.¬†

Continue reading

Combustable Lemons for Portal2, Garry’s Mod and Left 4 Dead 2.

Since people won’t shut up about it, I hacked together this little pack initially for L4D2, then stripped it back for GMod, Portal2, etc.¬†It should work on most source games, but failing that, give me a shout, and I’ll do my best to update it.¬†

All instructions are included in the .zip file [Download]