Help❓ Disable Pickup Weapon

Posts 1–7 of 7 · Page 1 of 1
❓ 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!
There's no command for that.
Quote Originally Posted by Larity2056 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.
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
Quote Originally Posted by Larity2056 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.
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
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;
}

}
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us