Under the multiplayer options tab in your mod you may notice an ‘Advanced’ button which by default has nothing in it. This screen allows the user to set client side options through the use of cvars.
To add your own entries all you need to do is create a user_default.scr file in the cfg directory with [...]

Just some useful code I came accross; I’ve no idea if I wrote this or if I found it somewhere, so if it’s not mine, credit to whoever’s it is.
If it is mine, credit to Me
123456789101112131415161718192021222324252627//JB: find the nearest ally
CHL2MP_Player* CHL2MP_Player::FindNearestAlly()
{
    const Vector &  vAbsOrigin      = GetAbsOrigin();
    float   [...]

In our first beta test of the Orange Box version of Jailbreak we had a problem where all chat messages where showing up as “HL2MP_Chat_All”, or “HL2MP_Chat_Team”.
Turns out this is quite simple to fix; in the resources directory you should have one or more language files named like yourmod_language.txt (e.g. jailbreak_english.txt) which simplifies making your [...]

If you’ve followed the weapon dropping post, you may have noticed you can get yourself inifinite ammo by dropping a weapon and picking it up again – not so good!
In order to fix that we need to make it so that when a weapon is dropped, it records how much ammo it has and only [...]

Jailbreak has a couple of very powerful heavy weapons; the chaingun and the rocket launcher.
In order to keep things fairly balanced we decided to not allow players to sprint when either weapon is deployed, and slow down the player even further when firing the chaingun in order to make them more vulnerable.
This was achieved by [...]

When using tracelines (which I will cover in another post at some point) it is occasionally desireable to skip certain entities that we don’t care about.
There are a couple of ways to do this, but in this tutorial I will be covering TraceFilters, which appear to give you the most control as they allow you [...]