Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. [Release] [ZM] Grenade Cluster Mod

[Release] [ZM] Grenade Cluster Mod

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
3 Posts 3 Posters 1.7k Views
  • 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.
  • Cahzundefined Offline
    Cahzundefined Offline
    Cahz
    VIP
    wrote on last edited by
    #1

    GRENADE CLUSTER MOD
    Developer: @ItsCahz
    Github Link

    I've had this ready to go for awhile. It originally started off as a meme, but I've decided to release it for the lolz. Pretty much all it does is spawn a cluster of grenades when a player throws a frag grenade

    https://www.youtube.com/watch?v=cHTW-Ytdl1A&feature=youtu.be

    #include maps/mp/_utility;
    #include common_scripts/utility;
    #include maps/mp/gametypes_zm/_hud_util;
    #include maps/mp/zombies/_zm;
    #include maps/mp/zombies/_zm_utility;
    
    init()
    {
        level thread onplayerconnected();
    }
     
    onplayerconnected()
    {
        for ( ;; )
        {
            level waittill( "connected", player );
            player thread watch_for_grenade_throw();
        }
    }
     
    watch_for_grenade_throw()
    {
        self endon ( "disconnect" );
        level endon ( "end_game" );
        for ( ;; )
        {
            self waittill ("grenade_fire", grenade, weapname);
            if ( weapname == "frag_grenade_zm" )
            {
                grenade thread multiply_grenades();
            }
            wait 0.1;
        }
    }
     
    multiply_grenades()
    {
        self endon ( "death" );
        wait 1.25;
        self magicgrenadetype( "frag_grenade_zm", self.origin + ( 20, 0, 0 ), ( 50, 0, 400 ), 2.5 );
        wait 0.25;
        self magicgrenadetype( "frag_grenade_zm", self.origin + ( -20, 0, 0 ), ( -50, 0, 400 ), 2.5 );
        wait 0.25;
        self magicgrenadetype( "frag_grenade_zm", self.origin + ( 0, 20, 0 ), ( 0, 50, 400 ), 2.5 );
        wait 0.25;
        self magicgrenadetype( "frag_grenade_zm", self.origin + ( 0, -20, 0 ), ( 0, -50, 400 ), 2.5 );
        wait 0.25;
        self magicgrenadetype( "frag_grenade_zm", self.origin, ( 0, 0, 400 ), 2.5 );
    }
    

    HOW TO ADD WITH OTHER MODS

    1. Copy the functions watch_for_grenade_throw() and multiply_grenades()
    2. Thread watch_for_grenade_throw() under onPlayerConnected.
    1 Reply Last reply
    4
    • Sorexundefined Offline
      Sorexundefined Offline
      Sorex
      Contributor
      wrote on last edited by
      #2

      Cahz Thats cool, is really fun things ❤

      1 Reply Last reply
      0
      • XIII__undefined Offline
        XIII__undefined Offline
        XIII__
        wrote on last edited by
        #3

        It gives a problem when I tried to launch Town map and doesn't let me play but I'm too lazy to write it here and this mod is probably abandoned so whatever

        1 Reply Last reply
        0

        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
        • Unread 0
        • Recent
        • Tags
        • Popular
        • Users
        • Groups