Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
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.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
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
      • IX2473undefined Offline
        IX2473undefined Offline
        IX2473
        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

        • Login

        • Don't have an account? Register

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