CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
[GSC] Zombies Gun Game
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="MrFawkes1337" data-source="post: 48473" data-attributes="member: 323489"><p>Basic bit of code, taken from Zeiiken's Gr3zz v4.1 and updated to BO3. Threading randomize from array_shared didnt seem to work, however copying the function loads it fine.</p><p></p><p>Code:</p><p>[CODE=cpp]function randomize2( array )</p><p>{</p><p> for ( i = 0; i < array.size; i++ )</p><p> {</p><p> j = RandomInt( array.size );</p><p> temp = array[ i ];</p><p> array[ i ] = array[ j ];</p><p> array[ j ] = temp;</p><p> }</p><p></p><p> return array;</p><p>}</p><p></p><p>function doGunGame()</p><p>{</p><p> self thread ZombieKill();</p><p> self thread RoundEdit(15);</p><p> foreach(player in level.players)</p><p> {</p><p> player thread GunGame();</p><p> player iPrintlnBold("^1G^7un ^1G^7ame");</p><p> wait 2;</p><p> player iPrintlnBold("^1H^7ave ^1F^7un !");</p><p> }</p><p>}</p><p>function GunGame()</p><p>{</p><p> self endon("death");</p><p> self endon("disconnect");</p><p> wait 5;</p><p> keys=GetArrayKeys(level.zombie_weapons);</p><p> weaps = randomize2(keys);</p><p> self TakeAllWeapons();</p><p> self GiveWeapon(weaps[0]);</p><p> self SwitchToWeapon(weaps[0]);</p><p> for(i=1;i <= weaps.size-1;i++)</p><p> {</p><p> self waittill("zom_kill");</p><p> self iPrintlnBold("New Weapon ^2Given. ^7Kills ^2"+i);</p><p> self TakeAllWeapons();</p><p> self GiveWeapon(weaps[i]);</p><p> self SwitchToWeapon(weaps[i]);</p><p> }</p><p>}</p><p></p><p>function RoundEdit(round)</p><p>{</p><p> self thread zm_utility::zombie_goto_round(round);</p><p> self iprintln("Round Set To: "+round);</p><p>}</p><p></p><p>function ZombieKill()</p><p>{</p><p> z=GetAITeamArray(level.zombie_team);</p><p> level.zombie_total=0;</p><p> if(isDefined(z))</p><p> {</p><p> for(i=0;i<z.size;i++)</p><p> {</p><p> z[i] dodamage(z[i].health * 5000,(0,0,0),self);</p><p> wait 0.05;</p><p> }</p><p> self iPrintln("All Zombies ^1Eliminated");</p><p> }</p><p>}[/CODE]</p><p></p><p>enjoy!</p></blockquote><p></p>
[QUOTE="MrFawkes1337, post: 48473, member: 323489"] Basic bit of code, taken from Zeiiken's Gr3zz v4.1 and updated to BO3. Threading randomize from array_shared didnt seem to work, however copying the function loads it fine. Code: [CODE=cpp]function randomize2( array ) { for ( i = 0; i < array.size; i++ ) { j = RandomInt( array.size ); temp = array[ i ]; array[ i ] = array[ j ]; array[ j ] = temp; } return array; } function doGunGame() { self thread ZombieKill(); self thread RoundEdit(15); foreach(player in level.players) { player thread GunGame(); player iPrintlnBold("^1G^7un ^1G^7ame"); wait 2; player iPrintlnBold("^1H^7ave ^1F^7un !"); } } function GunGame() { self endon("death"); self endon("disconnect"); wait 5; keys=GetArrayKeys(level.zombie_weapons); weaps = randomize2(keys); self TakeAllWeapons(); self GiveWeapon(weaps[0]); self SwitchToWeapon(weaps[0]); for(i=1;i <= weaps.size-1;i++) { self waittill("zom_kill"); self iPrintlnBold("New Weapon ^2Given. ^7Kills ^2"+i); self TakeAllWeapons(); self GiveWeapon(weaps[i]); self SwitchToWeapon(weaps[i]); } } function RoundEdit(round) { self thread zm_utility::zombie_goto_round(round); self iprintln("Round Set To: "+round); } function ZombieKill() { z=GetAITeamArray(level.zombie_team); level.zombie_total=0; if(isDefined(z)) { for(i=0;i<z.size;i++) { z[i] dodamage(z[i].health * 5000,(0,0,0),self); wait 0.05; } self iPrintln("All Zombies ^1Eliminated"); } }[/CODE] enjoy! [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
[GSC] Zombies Gun Game
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top