Named Game of the Year by over 50 publications, Valve's début title blends action and adventure with award-winning technology to create a frighteningly realistic world where players must think to survive. Also includes an exciting multiplayer mode that allows you to play against friends and enemies around the world.
This tutorial will teach you how to edit the ammo per clip, how fast you walk with a weapon and much more! Check it out... For Half-life 1
Posted by Davik on Dec 7th, 2005 digg this super bookmark
Basic Client Side Coding.
[page=Introduction]
Okay Just click on a chapter/Subject you want to Change
also you are working in the weapon.h the whole tutorial
[page=Weapon Capacities]
open weapons.h and go to line 108
There you will see:
**Remember, This is how much you can carry on you at a time for a reload. lets say you get a glock 7/200 <<< thats the number your changing
[page=Weight Factors(how fast you run with weapon etc)]
Okay, Line 92, search it... in the Weapon.h.
now you should see this...
Explanation: 0 = Normal Speed of running, the higher it gets the slower the player runs... if you go below zero -10 for say, you run faster then normal... So change it on your accord. 20 is the heaviest in this case.
[page=Ammo in a Clip]
This is abit easy all the Value changes are under each other heres the next one
Okay well simply Change the Glock to like a 7 so now it has 7 bullets per clip :P so change the number, unless you want it to have no clip there for you would use the Value WEAPON_NOCLIP
[page=Ammo in gun at pickup]
okay this is the next line, this just shows or repersents how much ammo is given with the gun when you first pick it up. this can be changed, by simply changing the numbers.
[page=Ammo Box Pick ups]
Okay this is the last one. but it speaks for itself, you pick up bullets or a box of bullets and it adds the amount that you have typed in here
[page=Disabling Weapons you dont want used]
Okay this is a quick explanation how you can stop a weapon from being used. ill use some codes from here and ill disable the RPG ill do them in according chapter order to!
heres a little punishment for those people who use amx and make the rocket accesible
that i just defined is practically, well not moving
and the last code to change...
Now your done when they get the weapon it will show up
but they cannot pull it out or use it. and if amx modders get by that. they have to worry about weight issues, you wont be able to walk. but thats something i pulled on my friend, he tried to fix the rpg weight for days, then i told him :D
ANYWAYS HOPE YOU ENJOYED IT its easy as hell a newb could understand this.
Only registered members can share their thoughts. So come on! Join the community today (totally free) and do things you never thought possible.
Hmm... its a good enough tut. HOWEVER you did not specify what game it is (I assume Half-Life 2?) and what editor you are using to make it (Hammer?) and because of that, this is useless.
u r really sily, u faggot.
retarded...
hey says if you CAN read for half-life 1
Why do you think there's a big Half-Life 1 logo in front of the title :P
how about adding new weapons then?
i have steam and can't find the "weapon.h" file
SBC, the weapon.h file is in the half life sdk. Just google "half life sdk 2.3." You'll also have to get a c++ compiler.
this is probly the most easy mod there is on the face of the world..... if you cannot do this mod... you are clearly a dumb*** lol
Need a C++ Compiler? Get "DevC++" (Google it. It is free and it has one of the best c++ environments..... and yes this compiler can open .h files :) and .cpp and many more...... and also very easy to use..... :)
No... in order to add weapons your gonna need some knowledge in DX.... if you need help on that kind of subject, check this page out. This page does not tell you about DX it just basicaly talks about a guy wanted to creat a mod for hl and ppl are telling him what is what...... Halflife2.net
that page is only helpful to find y u need DX :)
Please, do not get the "Dev C++" It does not compile the source code... (and no, I don't mean source as in hl2 or cs:s, source as in the source code "sc" like in SDK) Just download or buy Microsoft Visual C++ ....works like a charm..
And great guide!!!! Helped soo much.....
you could use codeblocks, search for it on the VERC forums
nice, but i can't find weapon.h, the closest thing to it is skill.cfg...
Whoo, Jesus I sounded like an idiot back then, eh?
(No comments on "lol u always sound leik an idiot")
Good tut now that I actually came to need it, by the way.
i have won version of half-life. but i can not find Weapons.h file
you need the HL source code at: Articles.thewavelength.net
and visual studio 2003 (google it) (not free)
i can get it free
thx i can get Free ;)
i know how to change weapon damage in half-life. My glock makes more damage than the shotgun
This tutorial helped me, but is there a tutorial for adding weapons in half-life
this can be done too in skill.cfg but than you can make enemy's bad etc.
i have edited the file with notepad. and what the hell should i do now? where should i put the damn file?
hl1 tut but were is weapons.h located.
hey can someone help me with my coding problem. I have the source code of half-life and I really want to code. but without doing anything to it I compiled it and it had about 200 errors, so it failed. any suggestions
A better compiler.
Hello. as is called the file??? greetings
i now have the c++ compiler but in wich file format should i save it?