trouble modify in HL

Lost in space
Banned
Joined
Dec 13, 2006
Messages
130
Best answers
0
I'm start a modification of half-life and it seems to be trouble in weapon setting. included ammunition and weapon placing in HUD

for example, I was going to remove crowbar from the game and add pistol as the primary weapon. but the trouble is I cant find the source code to rewrite it. so is the ammunition, usually the pistol and smg were share the same cartridge and same number of ammo (250 round plus 50 in the magazine) but I want to reduce it into around 100 and no magazine reload. but yeah I cant do it due to I dont have the source code. any idea?
 

MC

New Member
💻 Oldtimer
Joined
May 24, 2003
Messages
3,989
Best answers
0
Location
United States, Florida
Ammunition code - Go into the "SDK" folder > "Single-Player" Source > "dlls" > "weapons.h" (open it in notepad)

Scroll down until you see the following line:

Code:
// weapon clip/carry ammo capacities
The definitions under that line dictate how much ammo each weapon is allowed to have (excluding clips).

If you scroll down some more, you'll find the following line:

Code:
// the maximum amount of ammo each weapon's clip can hold
The definitions under this line dictate how much ammo a single clip can hold.

As for removing the crowbar, I'm not too sure how you can do that without screwing up the game.

Here's a Half-Life coding message board you can use - http://www.chatbear.com/board.plm?a=boardlisting&b=590&v=flatold
 

Users who are viewing this thread

Top Bottom