PDA

View Full Version : score keeping and hud elements


Andy_J
07-05-2007, 05:26 AM
Hi all, im asking this here because there seems to be a distinct lack of decent help to do with HL2 coding/programming

I set myself a little task of making what i thought would be a simple mod :P its just a mod of single player HL2 where zombies attack the player in large numbers, and the player gains points by holding back this horde.. and when the player is finally overwhelmed and killed, their score is displayed and perhaps stored in a high score table like an arcade game..

Just some simple tweaking, right? thats what I thought :P

so the requirements are:
1: the player's score is incremented each time he/she kills a zombie (different amounts of points may be awarded for increased distance of kill/melee kills etc... but that idea is secondary)
2: the player's score is to be displayed on screen (just above the health or ammo counter)
3: on player's death, score is displayed/stored in a high score table

I've been mapping for years and have just finished a degree in artificial intelligence so im not afraid of getting my hands dirty with high level languages... I just need someone to help me understand in as much detail as possible how to get these requirements up and running (so thats things like HUD elements).

So far ive got the zombies to spawn without the headcrab (thanks to valve's wiki) and changed the zombies blood colour to red :P also im using visual studio .NET 2003

lodle
07-06-2007, 01:32 AM
Best way is to look and copy current examples from the code and have a fiddle.

make sure you back up often as i went through 8 new builds cause i broke something i couldnt fix.