Results 1 to 8 of 8
  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] Normal gun -> Akimbo gun ?

    Hello all,

    I'm busy with my new mod but I'm stuck now.
    I have this little code:
    Code:
     if(self.team == "allies")
    
     {
    	self player_recoilScaleOff(0);
            self takeAllWeapons();
            self _clearPerks();
     self GiveWeapon("deserteaglegold_mp", 0, true);
    self GiveWeapon("coltanaconda_mp", 0, true);
            
            while(self getCurrentWeapon() != "deserteaglegold_mp") {
            self switchToWeapon("deserteaglegold_mp");
            wait 0.05;
    }
    
        }
    I have to make something like this:
    Golden deagle + Magnum = normal
    If the player has a killstreak of 3 kills then:
    Deagle akimbo + Magnum akimbo.

    How can I make this? I really need this fast! /

    So, starting with a normal gun, if you make 3 kills -> akimbo gun!

    Thanks thanks thanks!


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



  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,326
    My Mood
    Breezy
    Code:
    if(self.team == "allies")
    {
    	self player_recoilScaleOff(0);
            self takeAllWeapons();
            self _clearPerks();
            self GiveWeapon("deserteaglegold_mp", 0, false);
            self GiveWeapon("coltanaconda_mp", 0, false);
            
            while(self getCurrentWeapon() != "deserteaglegold_mp") {
            self switchToWeapon("deserteaglegold_mp");
            wait 0.05;
            }
    
            self thread killMonitor();
    }
    
    killMonitor()
    {
        self waittill("killed_enemy"); 
        self waittill("killed_enemy");
        self waittill("killed_enemy"); //Wait for 3 kills
        self takeWeapon("deserteaglegold_mp");
        self takeWeapon("coltanaconda_mp");
        self GiveWeapon("deserteagle_akimbo_mp", 9, false); //There is no akimbo gold deagle. There might be a deagle with gold camo but if it doesn't work, change the 9 to 0
        self GiveWeapon("coltanaconda_akimbo_mp", 0, false);
    }
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  3. The Following User Says Thank You to master131 For This Useful Post:

    Imthebosss (10-24-2010)

  4. #3
    lolhack8808's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    world
    Posts
    120
    Reputation
    10
    Thanks
    6
    Yep, the gold deagle has no attachements. But, the thumper has no attachements also, and it can be get akimbo'ed..?

    Found something

    try to add this:
    self thread Weapon("deserteaglegold_mp", "akimbo");

    Found that in another mod, where thumper, ACR and default weapon got akimbo'd

  5. #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 giving me the code. It didn't work the first time, so I fixed the whole code, and now it's working!
    Really really thanks! /

    Another (little) question:
    How can I disable the melee function? Or better:
    If you melee (press E) then > suicide (you slay yourself).
    Thanks


    Quote Originally Posted by master131 View Post
    Code:
    if(self.team == "allies")
    {
    	self player_recoilScaleOff(0);
            self takeAllWeapons();
            self _clearPerks();
            self GiveWeapon("deserteaglegold_mp", 0, false);
            self GiveWeapon("coltanaconda_mp", 0, false);
            
            while(self getCurrentWeapon() != "deserteaglegold_mp") {
            self switchToWeapon("deserteaglegold_mp");
            wait 0.05;
            }
    
            self thread killMonitor();
    }
    
    killMonitor()
    {
        self waittill("killed_enemy"); 
        self waittill("killed_enemy");
        self waittill("killed_enemy"); //Wait for 3 kills
        self takeWeapon("deserteaglegold_mp");
        self takeWeapon("coltanaconda_mp");
        self GiveWeapon("deserteagle_akimbo_mp", 9, false); //There is no akimbo gold deagle. There might be a deagle with gold camo but if it doesn't work, change the 9 to 0
        self GiveWeapon("coltanaconda_akimbo_mp", 0, false);
    }
    Do you need a signature? I will make it! Send me a PM =)



  6. #5
    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
    Code:
    self notifyOnPlayerCommand("E", "+melee");
    for(;;){
    self waittill("E");
    self suicide();}
    or

    Code:
    setDvar("player_meleeRange", 0);
    www.YouTube.com/MpKiller100

  7. The Following User Says Thank You to AZUMIKKEL For This Useful Post:

    Imthebosss (10-24-2010)

  8. #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

    Thanks AZUMIKKEL, but where should I put the code?
    Do you need a signature? I will make it! Send me a PM =)



  9. #7
    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
    In your mod
    www.YouTube.com/MpKiller100

  10. The Following User Says Thank You to AZUMIKKEL For This Useful Post:

    maarten551 (10-24-2010)

  11. #8
    maarten551's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    75
    My Mood
    Mellow
    Quote Originally Posted by Imthebosss View Post
    Thanks AZUMIKKEL, but where should I put the code?
    I think you should put it in the connection thread in your _rank.gsc

    Or make your own thread and do :
    Code:
    noknifedamage()
    {
    waittill("player_connected"); // orsomething
    setDvar("player_meleeRange", 0);
    }
    Or :
    Code:
    SuicideKnife()
    {
    waittill("spawned_player");
    self notifyOnPlayerCommand("E", "+melee");
    for(;;){
    self waittill("E");
    self suicide();} // or something
    }

    My Youtube account : Maarten551, subscribe me ^^
    [YOUTUBE]lSl0HlhGQsY[/YOUTUBE]
    AIzombies for Alteriw, Check it now!
    [YOUTUBE]U9OjBsHgcKQ[/YOUTUBE]
    hover/cordinates mod with visible bunkers!!!
    ---------------------------------------------------
    Most important waittills

Similar Threads

  1. noobie question -- gray gun fix
    By udp in forum Combat Arms Mod Help
    Replies: 10
    Last Post: 09-01-2011, 11:54 AM
  2. [question] What gun should i mod next?
    By Fireflight in forum Combat Arms EU Mods & Rez Modding
    Replies: 4
    Last Post: 09-10-2010, 08:33 PM
  3. few easy questions
    By /b/oss in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 08-14-2010, 04:44 AM
  4. easy question
    By Gitorla in forum Help & Requests
    Replies: 4
    Last Post: 07-15-2010, 08:14 PM
  5. A little easy question
    By imn00b in forum C++/C Programming
    Replies: 1
    Last Post: 03-31-2008, 10:25 PM