Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. Any Weapon While Downed Mod

Any Weapon While Downed Mod

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
1 Posts 1 Posters 427 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Demios4w4undefined Offline
    Demios4w4undefined Offline
    Demios4w4
    wrote on last edited by
    #1

    Just a little script that allows you to use any weapon while downed, just replace the mark 2 name with any weapon you want as long as it's on the map. it should override any pistol

    #include maps\_utility;
    #include common_scripts\utility;
    #include zm_laststand;
    
    init()
    {
        PrecacheItem("raygun_mark2_upgraded_zm");
        
        level.default_laststandpistol = "raygun_mark2_upgraded_zm";
        level.default_solo_laststandpistol = "raygun_mark2_upgraded_zm";
        
        level thread on_player_connect();
    }
    
    on_player_connect()
    {
        level endon("end_game");
        
        for(;;)
        {
            level waittill("connecting", player);
            player thread monitor_downed();
        }
    }
    
    monitor_downed()
    {
        self endon("disconnect");
        
        for(;;)
        {
            self waittill("player_downed");
            
            if (isDefined(level.default_laststandpistol) && self HasWeapon(level.default_laststandpistol))
            {
                self TakeWeapon(level.default_laststandpistol);
            }
            
            if (!self HasWeapon("raygun_mark2_upgraded_zm"))
            {
                self GiveWeapon("raygun_mark2_upgraded_zm");
                self SwitchToWeapon("raygun_mark2_upgraded_zm");
            }
            
            self waittill_any("player_revived", "player_died");
            
            if (self HasWeapon("raygun_mark2_upgraded_zm"))
            {
                self TakeWeapon("raygun_mark2_upgraded_zm");
            }
        }
    }
    
    1 Reply Last reply
    2

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Donate