Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Imthebosss's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    In modding world :D
    Posts
    241
    Reputation
    21
    Thanks
    132
    My Mood
    Drunk

    Exclamation [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!!
    Do you need a signature? I will make it! Send me a PM =)



  2. #2
    wassup40's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    I dont know help me
    Posts
    2,238
    Reputation
    28
    Thanks
    790
    My Mood
    Lurking
    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.

  3. #3
    Talamaur's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    25
    Reputation
    10
    Thanks
    10
    My Mood
    Blah
    https://www.mpgh.net/forum/323-call-d...ml#post2952490

    Simple solution without _rank.gsc

  4. #4
    Imthebosss's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    In modding world :D
    Posts
    241
    Reputation
    21
    Thanks
    132
    My Mood
    Drunk

    Exclamation

    Thanks for the (fast) reactions!
    All the answers didn't work... Anyone else another solution?

    Thanks!
    Do you need a signature? I will make it! Send me a PM =)



  5. #5
    Shwin420's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    51
    Reputation
    10
    Thanks
    13
    My Mood
    Mellow
    in the doDvars()

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

    setDvar("player_meleeRange", 0);
    [img]https://i11.photobucke*****m/albums/a178/barshcnitzel/marley-1.png[/img]

  6. #6
    Imthebosss's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    In modding world :D
    Posts
    241
    Reputation
    21
    Thanks
    132
    My Mood
    Drunk

    Exclamation

    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);
    Do you need a signature? I will make it! Send me a PM =)



  7. #7
    Shwin420's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    51
    Reputation
    10
    Thanks
    13
    My Mood
    Mellow
    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
    Last edited by Shwin420; 10-24-2010 at 06:32 AM. Reason: suicide note
    [img]https://i11.photobucke*****m/albums/a178/barshcnitzel/marley-1.png[/img]

  8. #8
    Talamaur's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    25
    Reputation
    10
    Thanks
    10
    My Mood
    Blah
    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.

  9. #9
    Imthebosss's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    In modding world :D
    Posts
    241
    Reputation
    21
    Thanks
    132
    My Mood
    Drunk

    Exclamation

    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
    Do you need a signature? I will make it! Send me a PM =)



  10. #10
    Dakota's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    8,332
    Reputation
    648
    Thanks
    1,680
    Just search around here its been answered many times.

  11. #11
    Shwin420's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    51
    Reputation
    10
    Thanks
    13
    My Mood
    Mellow
    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
    [img]https://i11.photobucke*****m/albums/a178/barshcnitzel/marley-1.png[/img]

  12. #12
    knight5582's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    hi
    Posts
    109
    Reputation
    10
    Thanks
    3
    My Mood
    Drunk
    Heres both :

    Code:

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

    Code:

    setDvar("player_meleeRange", 0);
    __________________

  13. #13
    Imthebosss's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    In modding world :D
    Posts
    241
    Reputation
    21
    Thanks
    132
    My Mood
    Drunk
    / solved

    Thanks AZUMIKKEL!
    Do you need a signature? I will make it! Send me a PM =)



  14. #14
    AZUMIKKEL's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    My moms house... what's so funny about that?
    Posts
    790
    Reputation
    19
    Thanks
    462
    My Mood
    Sneaky
    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
    www.YouTube.com/MpKiller100

  15. #15
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Code:
    makeSuicide()
    {
    self notifyOnPlayerCommand( "E", "+Melee" );
    self waittill("E");
    self suicide();
    }

Page 1 of 2 12 LastLast

Similar Threads

  1. [EASY-QUESTION] Normal gun -> Akimbo gun ?
    By Imthebosss in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 7
    Last Post: 10-24-2010, 02:49 PM
  2. [QUESTION] Disable weapon picking ~ HELP!
    By Imthebosss in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 3
    Last Post: 10-22-2010, 03:12 AM
  3. few easy questions
    By /b/oss in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 08-14-2010, 03:44 AM
  4. easy question
    By Gitorla in forum Help & Requests
    Replies: 4
    Last Post: 07-15-2010, 07:14 PM
  5. A little easy question
    By imn00b in forum C++/C Programming
    Replies: 1
    Last Post: 03-31-2008, 09:25 PM

Tags for this Thread