weapon melee


(jobe314) #1

i want to do some weapon melee specialy an axe but i dont find a tutorial to make it run.
I just see range weapon tutorial.
Can someone tell me if it’s the same or where find a melee weapon tutorial.
thx


(nUllSkillZ) #2

You should search the forums for posts of ikanatto.
Somewhere is a picture of a covert op with a two handed sword (or something similar).


(kamikazee) #3

Yes, but that doesn’t teach one on how to make it… :confused:


(Jaquboss) #4

very well, animation you have to do, unless you want to use eng_hammer_firing ( or something like that ) which isn’t bad at all
then just model the weapon ( weapons are generaly easy to model ) and at last animate the tags in v_hand model to do a slash instead stab
you should also change the source ( decrase attack speed ) and rename obituaries


(P4nth3r) #5

I would also change the attack distance for a sword compared to a knife.


(SCDS_reyalP) #6

As the distance gets longer, the method ET uses to detect knife hits will look increasingly bogus to players. The ET knife uses a straight, instant trace, just like a bullet.


(jobe314) #7

which part of the code i must change? do i have to make a new class?
i dont find some tutorials to do it.


(Jaquboss) #8

bg_misc.c cg_events.c , for damage/spread g_weapons.c , for clientside effects cg_weapons.c for limbo menu name cg_players.c


(jobe314) #9

i dont need to modify some .shader, scripts? or other kind of file?
there is just those .c, i can see the knife in other .c and .h.
I must create a new weapon with all information like for the knife or i can just take the same build adding some code in file you told me.