Results 1 to 7 of 7
  1. #1
    ElpidiosMan's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    0

    Question Disable Pickup Weapon

    Hey guys i am creating a new mod....and i want to disable pickup weapon, if anyone know how to do it, help!

  2. #2
    Larity2056's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Location
    UDF 2457
    Posts
    2,498
    Reputation
    188
    Thanks
    672
    My Mood
    Dead
    There's no command for that.

  3. #3
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,986
    Reputation
    176
    Thanks
    913
    My Mood
    Blah
    Quote Originally Posted by Singularity View Post
    There's no command for that.
    It is possible, I don't remember how though...

    I think you can disable that players drop their weapons when they die, then they can't be picked up either.


    The lines in my Steam are i's

  4. #4
    Larity2056's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Location
    UDF 2457
    Posts
    2,498
    Reputation
    188
    Thanks
    672
    My Mood
    Dead
    Quote Originally Posted by Nachos View Post


    It is possible, I don't remember how though...

    I think you can disable that players drop their weapons when they die, then they can't be picked up either.
    In MW3 there's a command for that, not in MW2

  5. #5
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,986
    Reputation
    176
    Thanks
    913
    My Mood
    Blah
    Quote Originally Posted by Singularity View Post

    In MW3 there's a command for that, not in MW2
    A lot more things that you think can be done by GSC coding. There doesn't need to be a Dvar/command for it, just a function. And since the weapon drops, there is a function.

    It's done in most GunGame's, you can't pick up weapons.


    The lines in my Steam are i's

  6. #6
    Larity2056's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Location
    UDF 2457
    Posts
    2,498
    Reputation
    188
    Thanks
    672
    My Mood
    Dead
    I made a script for this about a year ago, but it works different and probably needs to get tweaked a lot. Use if(;;) weapon = (weapons where you spawn with) else = (use the dropweapon function) It's confusing, since I'm to lazy to make the script. Or just google up some mods with that function...

    Quote Originally Posted by Nachos View Post

    A lot more things that you think can be done by GSC coding. There doesn't need to be a Dvar/command for it, just a function. And since the weapon drops, there is a function.
    It's done in most GunGame's, you can't pick up weapons.
    I was talking about a command/Dvar
    Last edited by Larity2056; 07-23-2012 at 06:00 PM.

  7. #7
    cgallagher21's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    1,583
    Reputation
    11
    Thanks
    296
    My Mood
    Busy
    There isn;'t an exact command on how to not disable, but heres a script that i used in one of my mods.

    Next time check all the forums resources.... http://www.mpgh.net/forum/308-call-d...s-snipets.html

    Code:
    DisablePickingGuns()
    {
    	self waittill( "spawned_player" );
    	
    	for(;;)
    	{
        curwep = self getCurrentWeapon();
        if(self UseButtonPressed())
        {
            wait 1;
            wepchange = self getCurrentWeapon();
            if(curwep != wepchange)
            {
                self DropItem( wepchange );
            }
        }
        wait 1;
    }
    
    }

Similar Threads

  1. Weapon and Pickups ESP
    By Cereal Guy in forum Call of Duty Black Ops Discussions
    Replies: 3
    Last Post: 02-08-2011, 05:48 PM
  2. How to disable weapons in unrank server?
    By test34 in forum Call of Duty Black Ops Help
    Replies: 9
    Last Post: 11-30-2010, 06:13 PM
  3. [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, 04:12 AM
  4. [Solved]Disabling taking weapons from the ground
    By ThrashMetal in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 2
    Last Post: 10-11-2010, 04:29 AM
  5. [Solved]Disable weapons...
    By einar300 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 3
    Last Post: 10-07-2010, 12:36 PM