Skip to main content

Programming

Name / Description
Site/Author
More 3rd Person Camera Upgrades
This is an update to chrono's snippet.
Adding Single-Player Weapons to Half-Life 2
The purpose of this article is to help you add the code for new weapons to your Half-Life 2 mod.
Static Ragdolls
Ragdolls attached to their spawnpoint by a ragdoll constraint
An Exploration Of Weapon_RPG: Part 1A
A fully documented exploration into the weapon_rpg class, starting with the basecombatweapon class and moving up the inheritance stack. The first part of the article disects basecombatweapon_shared.
Coding a Mod by Lord Ned (188)
You wanna make a mod? This tutorial focuses on the behind the scenes aspect, and less on the content.
Setting up Visual Studio .net 2005 Beta C++ for Source
This is a quick and painless Artical on how to setup Visual Studio .net 2005 Beta, for use with Source Mods.
Adding explosion to the Xbow bolt
Remember HL1's cross bow bolt exploded when it hit? Get that, in HL2.
GameUI
Explanation on handling VGUI without having a connection to a game.
Third Person Camera Upgrades
Collision check, translucency
Enabling Spectator Mode
How to get spectator mode working. Based on HL2MP SDK
3 State Zoom For Any Weapon
I missed the zooming feature of the 357 that was in HL1 so I thought as a beginner tutorial I'd write a weapon zooming lesson. I then carried it out to a 3-stage zoom.
Fix MP Grenade Auto-Switching
A basic fix for stopping the grenade from auto-switching to the next best weapon after you throw one. Also allows more than one grenade to be thrown.
Game Movement Series #2: Analog Jumping and Floating
How to set up analog jumping (the longer you hold jump, the higher you go) and floating (pressing jump as you are falling decelerates your fall)
Making Bots Join A Team
Make the bots join whichever team you wish. So easy, even I can do it!
Making Your HL2DM Mod a Perfect Clone of HL2DM
This article let's you know how to setup your HL2DM mod to be exactly like HL2DM.
Smoke Grenade
Change the frag grenade in MP HL to a smoke grenade
Adding Muting to your Scoreboard
A Small tutorial that explains how to put in simple muting on your scoreboard.
Storing weapons on ladder
like Raven Shield or BF2
Scoreboard
Setting up a basic scoreboard (with teams!) in the HL2 FROM SCRATCH MP SDK
Implementation of a string lookup table
A string lookup table is a set of functions that is used to convert strings to pre-defined values
Game Movement Series #1: Wall jumping
How to setup wall jumping in half-life 2
Debugging your half-life 2 mod
I go through both methods for debugging your modification
How to add Ammocrates for missing ammo type and/or create new ammo types
This tutorial will cover the code needed to add Slams and SGM1 Grenades as Ammocrate types, and also fix the graphics for two of the existing ones.
Super Phys Cannon Impulse
Get blue phys cannon with impulse 12
Adding Simple Pick up in Multiplayer
allows players to pick up objects with +use in multiplayer.
Add Far Clipping/Fading to Particles
This will let you optionally set far clipping/fading on particles, so you can fade particles out at a certain distance from you.
Three Firing Modes for Pistol
Explains how to create 3 firing modes for the pistol: semi-automatic, burst-fire, and fully-automatic.
3rd person View in Multiplayer
How to enable it in HL2DM
Attaching VGUIScreens to viewmodels
An article explaining how to attach dynamic vguiscreens to a weapons viewmodel
An Exploration Of Weapon_RPG: Part 1B
A fully documented exploration into the weapon_rpg class, starting with the basecombatweapon class and moving up the inheritance stack. The first part of the article disects basecombatweapon_shared.
Coding a flashlight to secondary attack by Lord Ned (189)
Changing a weapon's secondary fire to toggling the flashlight
Display player bounding box
Adds a console command to output the players bounding box mins & maxs to the console, and also draw's the bounding box in the world.