Posts | ||
---|---|---|
Half Life coding tutorial, [simple] | Locked | |
Thread Options | ||
|
Apr 15 2010 Anchor | |
For those that want to be coders of half life mods, i will give you my knowing. Contents of the tutorial : What are scripts? What are scripts? Scripts are single piece of codes that could make a game with the Knowings of the language. it could depend of what are you coding if is c++, java, pascal, etc. Making a weapon in half life. To start a weapon, open the notepad and copy this in the note pad
That is to define the "headers" written in the language C++ . if you delete something here on the list, your weapon won´t work very good. lets proceed with the animations :
Please note the "WEAPON" at the start of the animations change that "WEAPON" for the name of your pistol. for example "FSEVEN" (five seven) or "USP" (you cant put glock because the "GLOCK" is used by the original pistol of the hl) Seeya later, ill be doing this tutorial until i finish this. |
||
Apr 15 2010 Anchor | ||
What, notepad? I realize that you haven't finished this yet, but it would probably be more useful for some if you'd explain some simple weapon that already exists (and its baseclasses to some extent) instead of showing some includes and an enumeration without any purpose. After that you could still show how to change the model, add some fancy effects or change it so it's not a hitscan weapon anymore. Edited by: biohazardger |
||
|
Apr 15 2010 Anchor | |
Actually this is to include headers, headers are defined in a header file... Edited by: MrTambourineMan |
||
|
Apr 15 2010 Anchor | |
MrTambourine : >You are right i forgot about the "include part" biohazardger : Yes, in notepad, because then you save it as "weapon.cpp" (or any name) into the folder named DLLS. I will be finishing it soon. -- You can´t escape from my coding abilities !!! MUAHHAHAHAHAHAHAHAH |
||
Apr 15 2010 Anchor | ||
And what about using some editor with syntax highlighting at least? I dunno what you're using to compile it, but chances are that your compiler has a built-in editor. Edited by: biohazardger |
||
|
Apr 16 2010 Anchor | |
well to compile you need a c++ 6.0 Compiler because thats the project file it´s a c++6.0 project. Im using the : Microsoft Visual C++ 6.0 Standard Edition. Very recommended
now we are going to define de ammo of the weapon you could try to make the weapon shoot m203.
See ya tommorrow. with more tutorial Edited by: ian502 |
Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.