[Release] [ZM] Grenade Cluster Mod
-
GRENADE CLUSTER MOD
Developer: @ItsCahz
Github LinkI'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
- Copy the functions watch_for_grenade_throw() and multiply_grenades()
- Thread watch_for_grenade_throw() under onPlayerConnected.
-
Cahz Thats cool, is really fun things
-
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