Post: [RELEASE] Round Editor
04-15-2012, 04:00 PM #1
IVI40A3Fusionz
Former Gaming Squad Member
(adsbygoogle = window.adsbygoogle || []).push({});
Round Editor i was gonna keep for myself for my patch but i've decided to release it considering Black Ops coding is so dead when it comes to new scripts.

Video:


UPDATE 2:
- Changed look of the editor, now looks better and more 'professional'.

Update 2, Script:
    
RoundEditor(i)
{
self endon("death");
self endon("disconnect");
self endon("StopRound");
self CloseMenu();
wait .01;
self freezecontrols(true);
wait .01;
self.MenuLocked = false;
self.Edit = i;
self.RoundEditorBar=CreateShader("CENTER","",0,0,1000,50,(0,0,0),"white",0,1);
self.RoundEditor=CreateTextString("default",3,"CENTER","",0,0,1,1,"Set Round To "+self.Edit+"?");
for(;Winky Winky
{
if(self.Edit >= i)
{
if(self AttackButtonPressed() || self AdsButtonPressed())
{
self.Edit += (i*self AttackButtonPressed());
self.Edit -= (i*self AdsButtonPressed());
if(self.Edit == 0) self.Edit = i;
self.RoundEditor destroy();
self.RoundEditor=CreateTextString("default",3,"CENTER","",0,0,1,1,"Set Round To "+self.Edit+"?");
wait .1;
}
if(self UseButtonPressed())
{
level.round_number = self.Edit-1;
self thread ZombieKill();
self iPrintln("Round Set To "+self.Edit);
wait .2;
}
if(self MeleeButtonPressed())
{
self.RoundEditorBar destroy();
self.RoundEditor destroy();
self MenuOpen("Round");
self notify("StopRound");
}
}
wait .001;
}
}
ZombieKill()
{
Zombz = GetAiSpeciesArray( "axis" );
level.zombie_total = 0;
for( i = 0;i < Zombz.size;i++ )
{
Zombz[i] maps\_zombiemode_spawner::zombie_head_gib();
Zombz[i] DoDamage( Zombz[i].health * 5000, Zombz[i].origin, self );
wait .05;
}
}


UPDATE 1:

- Added support allowing you to choose what round you go up by, by using a simple input Smile.
* If should be set out like this,
- Function: RoundEditor.
- Input: Whatever number you like e.g. 100.

Update 1, Script:
    
RoundEditor(i)
{
self endon("death");
self endon("disconnect");
self.Edit = i;
self iPrintlnBold("Set Round To "+self.Edit+"?");
for(;Winky Winky
{
if(self.Edit >= i)
{
if(self AttackButtonPressed() || self AdsButtonPressed())
{
self.Edit += (i*self AttackButtonPressed());
self.Edit -= (i*self AdsButtonPressed());
if(self.Edit == 0) self.Edit = i;
self iPrintlnBold("Set Round To "+self.Edit+"?");
wait .1;
}
if(self UseButtonPressed())
{
level.round_number = self.Edit-1;
Zombz = GetAiSpeciesArray( "axis" );
level.zombie_total = 0;
for( i = 0;i < Zombz.size;i++ )
{
Zombz[i] maps\_zombiemode_spawner::zombie_head_gib();
Zombz[i] DoDamage( Zombz[i].health * 5000, Zombz[i].origin, self );
wait .05;
}
self iPrintln("Round Set To "+self.Edit);
wait .2;
}
}
wait .001;
}
}



Original Script:

    
RoundEditor()
{
self endon("death");
self endon("disconnect");
self.Edit = 1;
self iPrintlnBold("Set Round To "+self.Edit+"?");
for(;Winky Winky
{
if(self.Edit >= 1)
{
if(self AttackButtonPressed() || self AdsButtonPressed())
{
self.Edit += self AttackButtonPressed();
self.Edit -= self AdsButtonPressed();
if(self.Edit == 0) self.Edit = 1;
self iPrintlnBold("Set Round To "+self.Edit+"?");
wait .1;
}
if(self UseButtonPressed())
{
level.round_number = self.Edit-1;
Zombz = GetAiSpeciesArray( "axis" );
level.zombie_total = 0;
for( i = 0;i < Zombz.size;i++ )
{
Zombz[i] maps\_zombiemode_spawner::zombie_head_gib();
Zombz[i] DoDamage( Zombz[i].health * 5000, Zombz[i].origin, self );
wait .05;
}
self iPrintln("Round Set To "+self.Edit);
wait .2;
}
}
wait .001;
}
}



You Will Also Need This, Reason For Me Using It Is Because If You Use Alot Of setText, Then This Will Reduce The Size Of Your .gsc:
    
CreateTextString(font,fontscale,align,relative,x,y,alpha,sort,text)
{
CreateText=createFontString(font,fontscale);
CreateText setPoint(align,relative,x,y);
CreateText.alpha=alpha;
CreateText.sort=sort;
CreateText setText(text);
return CreateText;
}

Credits:
Me - For Making It.
xRaw - For Sending Me The 'Kill All Zombies' Script.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 10 users say thank you to IVI40A3Fusionz for this useful post:

blikefritz, FourzerotwoFAILS, Harry, User23434, Cmd-X, RayJ_chugs, rimka06510, xMrSuperMoDzZ--, xRaW, ZeiiKeN
04-15-2012, 06:59 PM #11
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by xFLAMeHD
OG is just OG...


You got Skype?
04-15-2012, 07:02 PM #12
Originally posted by IVI40A3Fusionz View Post
Round Editor i was gonna keep for myself for my patch but i've decided to release it considering Black Ops coding is so dead when it comes to new scripts.

Video:


Script:
    
RoundEditor()
{
self endon("death");
self endon("disconnect");
self.Edit = 1;
self iPrintlnBold("Set Round To "+self.Edit+"?");
for(;Winky Winky
{
if(self.Edit >= 1)
{
if(self AttackButtonPressed() || self AdsButtonPressed())
{
self.Edit += self AttackButtonPressed();
self.Edit -= self AdsButtonPressed();
if(self.Edit == 0) self.Edit = 1;
self iPrintlnBold("Set Round To "+self.Edit+"?");
wait .1;
}
if(self UseButtonPressed())
{
level.round_number = self.Edit-1;
Zombz = GetAiSpeciesArray( "axis" );
level.zombie_total = 0;
for( i = 0;i < Zombz.size;i++ )
{
Zombz[i] maps\_zombiemode_spawner::zombie_head_gib();
Zombz[i] DoDamage( Zombz[i].health * 5000, Zombz[i].origin, self );
wait .05;
}
self iPrintln("Round Set To "+self.Edit);
wait .2;
}
}
wait .001;
}
}


Credits:
Me - For Making It.
xRaw - For Sending Me The 'Kill All Zombies' Script.


Is it all right if I leave a link to this thread in my thread? You must login or register to view this content.
04-15-2012, 07:04 PM #13
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by FourzerotwoFAILS View Post
Is it all right if I leave a link to this thread in my thread? You must login or register to view this content.


Completely up to you Smile.
04-15-2012, 07:45 PM #14
QSOX
Bounty hunter
nice work m8. nice tunes as well ,)
04-15-2012, 08:03 PM #15
Correy
I'm the Original
Originally posted by IVI40A3Fusionz View Post
Round Editor i was gonna keep for myself for my patch but i've decided to release it considering Black Ops coding is so dead when it comes to new scripts.

Video:


Script:
    
RoundEditor()
{
self endon("death");
self endon("disconnect");
self.Edit = 1;
self iPrintlnBold("Set Round To "+self.Edit+"?");
for(;Winky Winky
{
if(self.Edit >= 1)
{
if(self AttackButtonPressed() || self AdsButtonPressed())
{
self.Edit += self AttackButtonPressed();
self.Edit -= self AdsButtonPressed();
if(self.Edit == 0) self.Edit = 1;
self iPrintlnBold("Set Round To "+self.Edit+"?");
wait .1;
}
if(self UseButtonPressed())
{
level.round_number = self.Edit-1;
Zombz = GetAiSpeciesArray( "axis" );
level.zombie_total = 0;
for( i = 0;i < Zombz.size;i++ )
{
Zombz[i] maps\_zombiemode_spawner::zombie_head_gib();
Zombz[i] DoDamage( Zombz[i].health * 5000, Zombz[i].origin, self );
wait .05;
}
self iPrintln("Round Set To "+self.Edit);
wait .2;
}
}
wait .001;
}
}


Credits:
Me - For Making It.
xRaw - For Sending Me The 'Kill All Zombies' Script.


a little example of how i would do it..
    
init_Editor()
{
for( c=0;; )
{
c+= self FragButtonPressed();
c-= self SecondaryOffHandButtonPressed();
if( c < 0 ) c = 2417;
if( c > 2417 ) c = 0;

if( self UseButtonPressed() )
{
self iPrintlnBold( v + ": " + c );
level.round_number = self.Edit-1;
Zombz = GetAiSpeciesArray( "axis" );
level.zombie_total = 0;
for( i = 0;i < Zombz.size;i++ )
{
Zombz[i] maps\_zombiemode_spawner::zombie_head_gib();
Zombz[i] DoDamage( Zombz[i].health * 5000, Zombz[i].origin, self );
wait .05;
}
}
wait .3;
}
}
04-15-2012, 08:06 PM #16
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Correy View Post
a little example of how i would do it..
    
init_Editor()
{
for( c=0;; )
{
c+= self FragButtonPressed();
c-= self SecondaryOffHandButtonPressed();
if( c < 0 ) c = 2417;
if( c > 2417 ) c = 0;

if( self UseButtonPressed() )
{
self iPrintlnBold( v + ": " + c );
level.round_number = self.Edit-1;
Zombz = GetAiSpeciesArray( "axis" );
level.zombie_total = 0;
for( i = 0;i < Zombz.size;i++ )
{
Zombz[i] maps\_zombiemode_spawner::zombie_head_gib();
Zombz[i] DoDamage( Zombz[i].health * 5000, Zombz[i].origin, self );
wait .05;
}
}
wait .3;
}
}


Yours only allows people to go up to round 2417 whereas mine allows people to go up to what ever round they choose.

EDIT: Why are people still 'optimizing' scripts? O.o Call of Duty .ff's have plenty of room without the need to 'optimize'.
04-15-2012, 08:23 PM #17
Correy
I'm the Original
Originally posted by IVI40A3Fusionz View Post
Yours only allows people to go up to round 2417 whereas mine allows people to go up to what ever round they choose.

EDIT: Why are people still 'optimizing' scripts? O.o Call of Duty .ff's have plenty of room without the need to 'optimize'.


who said i was optimising it?, after 2147 it goes negative.. plus, looking at other peoples coding benefits a lot of people!
04-15-2012, 08:26 PM #18
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Correy View Post
who said i was optimising it?, after 2147 it goes negative.. plus, looking at other peoples coding benefits a lot of people!


You made it shorter, so..... it indicates to me you've optimized it, you can't take the mods online (obviously) so it won't affect your online leaderboards (i've tried). I've looked at your coding enough, it's very similar to everyone else so i don't think alot of people will benefit from it maybe that's just my opinion.

The following user groaned IVI40A3Fusionz for this awful post:

Correy
04-16-2012, 03:33 PM #19
IVI40A3Fusionz
Former Gaming Squad Member
Updated thread with an edit of the code, you can now choose the number of round you want to go up by each time. Smile.
Yes i know xRaws has it but i was gonna implement it before i released the first script but i didn't.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo