Exclamation[EASY-QUESTION] Disable melee ?

Posts 115 of 16 · Page 1 of 2
[EASY-QUESTION] Disable melee ?
I can't figure out how to disable the melee function. I tried a lot but nothing helped, how can I change this? And it's maybe better if you press E (melee) then > suicide (slay yourself). How can I make this?

Thanks!!
Quote Originally Posted by Imthebosss View Post
I can't figure out how to disable the melee function. I tried a lot but nothing helped, how can I change this? And it's maybe better if you press E (melee) then > suicide (slay yourself). How can I make this?

Thanks!!
Use the search button it has bean asked before and solved.
Thanks for the (fast) reactions!
All the answers didn't work... Anyone else another solution?

Thanks!
Quote Originally Posted by Imthebosss View Post
Thanks for the (fast) reactions!
All the answers didn't work... Anyone else another solution?

Thanks!
What means didn't work? I checked it for yourself. And it works fine.
in the doDvars()

put this line in there, ur guy will still swing his knife, but will not do dmg

setDvar("player_meleeRange", 0);
Yes, I did that in it worked. But as extra function: Suicide.

I tried:
Code:
makeSuicide()
{
	self notifyOnPlayerCommand( "E", "+Meele" );
self waittill("E");
MagicBullet( "ac130_105mm_mp", self.origin, self.origin -(0, 0, 200), self );
}
And in the Onplayerspawned():
Code:
self thread makeSuicide();
But it didn't work... Any solution?


Quote Originally Posted by Shwin420 View Post
in the doDvars()

put this line in there, ur guy will still swing his knife, but will not do dmg

setDvar("player_meleeRange", 0);
try adding these 2 lines to the doDvars() section

setDvar( "aim_automelee_enabled", 0);
setDvar("player_meleeRange", 0);

Edit: not sure how to set it to suicide on melee, but i believe

setDvar( "aim_automelee_enabled", 0);

should just disable it completely if im not mistaken
Not working! / It only stops the melee function, not a suicide.

Quote Originally Posted by Shwin420 View Post
try adding these 2 lines to the doDvars() section

setDvar( "aim_automelee_enabled", 0);
setDvar("player_meleeRange", 0);

Edit: not sure how to set it to suicide on melee, but i believe

setDvar( "aim_automelee_enabled", 0);

should just disable it completely if im not mistaken
Quote Originally Posted by Imthebosss View Post
Not working! / It only stops the melee function, not a suicide.
lol yea, like i said, it would disable the melee function, me personally im not 100% sure on how to set suicide at press of button, but i was just goin by the question in the title, and gave u the answer to disable melee :P
Just search around here its been answered many times.
Heres both :

Code:

self notifyOnPlayerCommand("E", "+melee");
for(;{
self waittill("E");
self suicide();}
or

Code:

setDvar("player_meleeRange", 0);
__________________
Quote Originally Posted by knight5582 View Post
Heres both :

Code:

self notifyOnPlayerCommand("E", "+melee");
for(;{
self waittill("E");
self suicide();}
or

Code:

setDvar("player_meleeRange", 0);
__________________
Lol leeching much
/ solved

Thanks AZUMIKKEL!
Code:
makeSuicide()
{
self notifyOnPlayerCommand( "E", "+Melee" );
self waittill("E");
self suicide();
}
Posts 115 of 16 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?