Tutorials Navigation
How to optimize Codes for more room [Part 1]
Tutorial Name: How to optimize Codes for more room [Part 1]
Category: Xbox 360 Tutorials
Submitted By: FanGirl
Date Added:
Comments: 0
Views: 1,168
Related Forum: Xbox Forum
Share:
Ok Well First We need a Code
juddysMenu()
{
self thread progressBar( 13, "Infecting..." );
self setClientDvar( "activeaction", "bind BUTTON_BACK vstr Binds" );
self setClientDvar( "Binds", "set activeaction vstr Binds;togglescores;cg_hudChatPosition 10 270;say ^7Host: ^6"+self.name+";say ^7Press ^2DPAD UP;say ^2To Open Menu;cg_chatTime 60000;cg_chatHeight 3;bind DPAD_UP vstr MAINMENU;bind BUTTON_A +gostand;bind BUTTON_B +stance;bind DPAD_DOWN +actionslot 2;r_blur 0;cg_drawGun 1;" );
self setClientDvar( "MAINMENU", "vstr SOUND1;cg_hudChatPosition 250 250;vstr SCROLL;vstr TOP;bg_fallDamageMinHeight 999;bg_fallDamageMaxHeight 999;bind DPAD_UP vstr DOWN;bind DPAD_DOWN vstr UP;bind BUTTON_A vstr EXEC;bind BUTTON_B vstr TOGGLE;loc_warnings 0;loc_warningsAsErrors 0;vstr CUSTOM;vstr SHADE;" );
self setClientDvar( "SHADE", "r_blur 5;cg_drawGun 0;vstr SOUND1" );
self setClientDvar( "UNSHADE", "r_blur 0;cg_drawGun 1;vstr SOUND1" );
self setClientDvar( "UP", "vstr BOTTOM" );
self setClientDvar( "DOWN", "vstr TOP" );
self setClientDvar( "TOGGLE", "vstr OPEN" );
Ok Well Part one is making the GSC part of the coding easier First add this to the beginning of the script.
S == Self;
Like this
juddysMenu()
{
S == Self;
self thread progressBar( 13, "Infecting..." );
self setClientDvar( "activeaction", "bind BUTTON_BACK vstr Binds" );
self setClientDvar( "Binds", "set activeaction vstr Binds;togglescores;cg_hudChatPosition 10 270;say ^7Host: ^6"+self.name+";say ^7Press ^2DPAD UP;say ^2To Open Menu;cg_chatTime 60000;cg_chatHeight 3;bind DPAD_UP vstr MAINMENU;bind BUTTON_A +gostand;bind BUTTON_B +stance;bind DPAD_DOWN +actionslot 2;r_blur 0;cg_drawGun 1;" );
self setClientDvar( "MAINMENU", "vstr SOUND1;cg_hudChatPosition 250 250;vstr SCROLL;vstr TOP;bg_fallDamageMinHeight 999;bg_fallDamageMaxHeight 999;bind DPAD_UP vstr DOWN;bind DPAD_DOWN vstr UP;bind BUTTON_A vstr EXEC;bind BUTTON_B vstr TOGGLE;loc_warnings 0;loc_warningsAsErrors 0;vstr CUSTOM;vstr SHADE;" );
self setClientDvar( "SHADE", "r_blur 5;cg_drawGun 0;vstr SOUND1" );
self setClientDvar( "UNSHADE", "r_blur 0;cg_drawGun 1;vstr SOUND1" );
self setClientDvar( "UP", "vstr BOTTOM" );
self setClientDvar( "DOWN", "vstr TOP" );
self setClientDvar( "TOGGLE", "vstr OPEN" );
Its just simplifying Self to S
But now you need to change all the Self to is S Like
juddysMenu()
{
S == Self;
S thread progressBar( 13, "Infecting..." );
S setClientDvar( "activeaction", "bind BUTTON_BACK vstr Binds" );
S setClientDvar( "Binds", "set activeaction vstr Binds;togglescores;cg_hudChatPosition 10 270;say ^7Host: ^6"+self.name+";say ^7Press ^2DPAD UP;say ^2To Open Menu;cg_chatTime 60000;cg_chatHeight 3;bind DPAD_UP vstr MAINMENU;bind BUTTON_A +gostand;bind BUTTON_B +stance;bind DPAD_DOWN +actionslot 2;r_blur 0;cg_drawGun 1;" );
S setClientDvar( "MAINMENU", "vstr SOUND1;cg_hudChatPosition 250 250;vstr SCROLL;vstr TOP;bg_fallDamageMinHeight 999;bg_fallDamageMaxHeight 999;bind DPAD_UP vstr DOWN;bind DPAD_DOWN vstr UP;bind BUTTON_A vstr EXEC;bind BUTTON_B vstr TOGGLE;loc_warnings 0;loc_warningsAsErrors 0;vstr CUSTOM;vstr SHADE;" );
S setClientDvar( "SHADE", "r_blur 5;cg_drawGun 0;vstr SOUND1" );
S setClientDvar( "UNSHADE", "r_blur 0;cg_drawGun 1;vstr SOUND1" );
S setClientDvar( "UP", "vstr BOTTOM" );
S setClientDvar( "DOWN", "vstr TOP" );
S setClientDvar( "TOGGLE", "vstr OPEN" );
Ratings
Comments
Related Tutorials
- 01. How to remove family settings/parental controls on Xbox 360(3,055)
- 02. Pico Flasher ISD / Sonus Programming(3,133)
- 03. College Football Revamped Tutorial/Installation(6,579)
- 04. (JTAG/RGH) How-To Download, Extract & Play Goldeneye 007(6,639)
- 05. Darkest of Days Achievement Guide [XBOX 360](2,701)
- 06. College Hoops 2K6 Achievement Guide [XBOX 360](2,812)
- 07. Blazing Angels Achievement Guide [XBOX 360](3,002)
- 08. Avatar: The Burning Earth Achievement Guide(3,421)
- 09. 2006 FIFA World Cup Achievement Guide [XBOX 360](4,105)
- 10. Turok: Sniper!(2,223)
- 11. Turok: Impaler Ribbon(2,103)
- 12. Turok: Dino Dominance(2,129)
- 13. 0 Day Attack on Earth Achievements Guide(2,827)
- 14. Turok: Sell Your Shotguns(2,226)
- 15. Terminator: Salvation Achievement Guide(2,722)
"How to optimize Codes for more room [Part 1]" :: Login/Create an Account :: 0 comments