Howto add custom weapons/modify a weapon


(Garnaal) #1

Hello,

I’m kinda new here, so i’ll get straight to the point!
I want to know how to modify a existing weapon or how to add a new weapon.
I’m kinda creating a mod with a friend, and we also have someone who creates weapons for us.
so now i want to add the weapons to the game =D.

I’ve tried changing the .weap file, but no succes.
I’ve also tried changing the destination of a weapon in the bg_misc.c
but none of it worked, and I’m kinda desperate now… =D.

I’ve looked up some tutorials on this forum, but all of them aren’t working anymore.

So if anyone knows how to, and want to let me know, you’ll be my hero =D

Greetz


(twt_thunder) #2

should you just change an existing one or add more weapons?

i have an old tutorial here:

http://www.wolfenstein-et.com/tut/gun.htm

but i know there is guys here that knows this way better than me


(Garnaal) #3

Thanks!
I’m going to check it out ;D


(Garnaal) #4

Whoo worked great!


(twt_thunder) #5

good for you:D have fun


(Cambodunum) #6

… its really much work to add a new weapon
… ive already added 3 new guns to my “halted” project
… so i know how much work it is
… its not just adding one, two or three entries into existing tables
… i needed nearly three months to get my first weapon in

… so the best way to do it is to “copy/rewrite” and existing weapon
… good luck to you and your mates for ya project :slight_smile:
… may ill be bored between christmas and new year so i can write a tut xD

greetz Cambo


(l3szcz) #7

Sorry for OffTop, i want add weapon to my server, but i don’t know how.
Pls, help me :slight_smile:

[QUOTE=thunderpwn;204318]should you just change an existing one or add more weapons?

i have an old tutorial here:

http://www.wolfenstein-et.com/tut/gun.htm

but i know there is guys here that knows this way better than me[/QUOTE]


(twt_thunder) #8

[QUOTE=l3szcz;407723]Sorry for OffTop, i want add weapon to my server, but i don’t know how.
Pls, help me :)[/QUOTE]

I am for time beeing very buzy with our ModernETfront mod, and that old tutorial of mine is gone… I went away when my site got hacked.
Is this your own weapons or is it a mod pack?


(Indloon) #9

For adding a new weapon, you need to touch these files:

[ul]
[li]bg_public.h
[/li][li]bg_misc.c
[/li][li]bg_pmove.c
[/li][li]bg_stats.c
[/li][li]g_client.c
[/li][li]g_items.c
[/li][li]g_weapon.c
[/li][li]cg_event.c
[/li][li]cg_players.c
[/li][li]cg_weapons.c
[/li][/ul]

Adding a weapon is very messy in Wolf:ET code, it’s caused by different coders coding style and code placing.

Well the whole Wolf:ET code is a mess :smiley: