I want to learn how to code a half-life mod

New Member
Joined
Dec 14, 2005
Messages
21
Best answers
0
Ok, so lets say I have my mini-mod. How do I implement it w/o overwriting the original code?
 
Lost in space
Banned
Joined
Feb 28, 2006
Messages
53
Best answers
0
lawl tagman u sux

u should stick to ur visual basic and **** ****ing script kiddie lol

leave coding mods to the big boys

you might as well go learn something *** like C#, which groovy promotes because he's a homo
 
Member
✔️ HL Verified
🌟 Senior Member
Joined
Oct 16, 2006
Messages
379
Best answers
0
Location
the Netherlands
A normal reply:

Actually you can't 'code' any minimod for ESF, since you will need their source code. and NO they won't release it(yet?).
BUT, you can create a minimod using 'AmxModX', this is a pluginmanager.

AmxmodX runs under Plugin manager for halflife called 'MetaMod'.

it's like this:

Half-life('Engine') --- MetaMod --> AmxModX(plugin of metamod) --> minimod(your own plugin) --- Sourcecode (ESF in this case).

What can i do with amxmodx ?
Depends on what you want, you can't create/modify models with it. but you can change the playermodel with it( WHAT?, yes change playersmodels ).
you can spawn sprites, models, sounds, and you can create client commands, server commands, and alot more.

So... go to www.amxmodx.org so you can ask for a tutorial(see the forum before you start emailing, check 'scripting help').

i hope this helped.

Good luck,

Dutchmeat
 
New Member
Joined
Dec 14, 2005
Messages
21
Best answers
0
I wasnt talking about esf,its almost perfect the way it is. If i wanted to mess with esf, i woulf d/l EVM.

and jlgx50, go screw yourself, I know more about codinging at the age of 16 than you will in your entire life.

And tyvm for the civilized and informative reply dutch meat. Cleared things up. =)
 
New Member
✔️ HL Verified
💻 Oldtimer
Joined
Nov 14, 2003
Messages
3,974
Best answers
0
TaGmAn said:
I wasnt talking about esf,its almost perfect the way it is. If i wanted to mess with esf, i woulf d/l EVM.

and jlgx50, go screw yourself, I know more about codinging at the age of 16 than you will in your entire life.

And tyvm for the civilized and informative reply dutch meat. Cleared things up. =)
and he knows more about english than you do.

argument ends now, or your posting on this forum will.
 
New Member
Joined
Oct 9, 2006
Messages
9
Best answers
0
so if i wanna do a mod for esf(not ecx\evm\wfs etc ,just a mod with me and my friends us in the game:) ) how do i do it?

i mean do you have a tut on how to do a mod cuz here i see only C++..
thx..and sorry for being a noob
 
Member
✔️ HL Verified
🌟 Senior Member
Joined
Oct 16, 2006
Messages
379
Best answers
0
Location
the Netherlands
You can't make a mod on ESF, because it has a closed source code.
This means that you'll have to use other resources like AMXMODX (used by EVM, and other addons).
So this won't be a mod, but an addon.
 
Member
✔️ HL Verified
🌟 Senior Member
Joined
Oct 16, 2006
Messages
379
Best answers
0
Location
the Netherlands
That's a nice tutorial, but if you want to use a normal command, for wich you don't need an adminlevel, you could use this:

Code:
/*
Hello world, v0.1
By JGHG
*/

#include <amxmod>
#include <amxmisc>

public myfunction(id,level,cid) {
client_print(0,print_center,"Hello world!!!")

return PLUGIN_HANDLED
}


public plugin_init() {
register_plugin("Hello world","0.1","jghg")
register_clcmd("amx_helloworld","myfunction")

}
Also what important is for you to know is these warnings:
"warning 217: loose indentation" are nothing more then just misplaced codes.
The difference? just a few tabs.
 
New Member
Joined
Sep 22, 2004
Messages
565
Best answers
0
Um... quick off-topic u guys... call me a noob or retarded lol (gosh this is embarassing), but how do u make STRINGS?

I got the following:

char nombre[50],nombrerec[50];
int dias,dd,mm,aa;

printf("Ingrese la fecha de hoy: ");
scanf("%d/%d/%d",&dd,&mm,&aa);
flushall();
printf("Ingrese su nombre: ");
scanf("%c",&nombre[50]);
flushall();
printf("Ingrese el nombre del receptor: ");
scanf("%c",&nombrerec[50]);


It's in spanish, yes, but you can see how ****ed up my string-applying knowledge is. =/

I should've asked for this sooner because I gotta finish my work for college for TOMORROW. It's 9 pm over here and I hope u guys can help me out asap.

PLEASE reply quickly this is very urgent!!!!!!

P.S.: How do u colour text? :rolleyes: I forgot how to, really. I mean the teacher didn't even explain it to us. =/

I've tried selecting a key-word and hitting F1, but I don't understand ****. x.x

Please help o.o

Thanks a lot in advanced ^^
 
Member
✔️ HL Verified
🌟 Senior Member
Joined
Oct 16, 2006
Messages
379
Best answers
0
Location
the Netherlands
Here you go:
Multiple array ( can be used for random strings ):
Code:
char text[5][30] = { "String 1",   //5 is how many strings, 30 is string size.
                    "String 2",
                    "String 3",
                    "String 4",
                    "String 5" };
printf("test: %s",text[0]);
One string array:

Code:
char text[50] = "String 1"; //50 is the string size
printf("test: %s",text);
 
New Member
Joined
Apr 24, 2005
Messages
11
Best answers
0
Ok, I know a lot of programming in AS2 and Java, I'm studing now for C++ just to start making a mod( or a mini mod) but I want to know where did you get the source code to do Esf(or any other model)? I mean, the HL sourcecode.

thanks
 
New Member
Joined
Oct 24, 2008
Messages
22
Best answers
0
hey tnx i am gonna try i have a few skills i tryed to mod quake 3 it turned out good now i want to do half life 1 wow i think its harder but i will give it a shoot !!!
 

Users who are viewing this thread

Top Bottom