Post: [SCRIPT] UFO Mode | 10x Shorter Script | Converted From MW2
12-01-2011, 08:16 PM #1
IVI40A3Fusionz
Former Gaming Squad Member
(adsbygoogle = window.adsbygoogle || []).push({}); I see alot of people were still using the old, boring and long script for the UFO Mode mod in their menus, so i thought i would make a better code that was shorter and more easy to understand. This is basically a recreation of how it was done on MW2 just I've changed a few things and taken some things out so it's compatible with CoD4.

Thread doUFO to your menu ( you probably want to make this a toggle for your menu but you can do that yourself Winky Winky ).

    doUFO()
{
self endon ( "disconnect" );
self endon ( "death" );
self thread MonitorButtons();
for(;Winky Winky
{
self waittill("Pressed_Square");
if ( self GetStance() == "crouch")
{
self.sessionstate = "spectator";
self allowSpectateTeam( "freelook", true );
}
self waittill("Pressed_Square");
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
}
}

MonitorButtons()
{
self endon("death");
self endon("disconnect");
for(;Winky Winky
{
if(self UseButtonPressed())
{
self notify("Pressed_Square");
wait .3;
}
wait .05;
}
}


Correy's Version:
    On_Ufo( yesorno )
{
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
if( yesorno == "yes" )
{
while( self GetStance() == "crouch" )
{
if( self UseButtonPressed() )
{
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectating";
}
}
}
}

go in crouch and press sqaure.. use input to toggle !

- Toggle On
    self OnUfo( "yes" );

change the yes to anything to turn off


How To Use:
After you've selected the option from your menu, crouch and press Square (On the PS3) or X (On the XBOX 360) and it will activate the mod.
When you want to exit UFO Mode press Square (On the PS3) or X (On the XBOX 360) and it will end the mod.

Credits:
Correy - For the spectate function
Who ever created this for MW2


EDIT: This can be made shorter however i'm stupid and don't know the self waitill(""); for when you press square so if anyone knows it please tell me Smile.
(adsbygoogle = window.adsbygoogle || []).push({});

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

BlazingDope, Correy, JamesSwagger
12-01-2011, 08:22 PM #2
Taylor
Former Black Knight.
Originally posted by IVI40A3Fusionz View Post
.


Well i Like The Code, But Will Not Use It Myself, Cuz The Fact That That Is The Spectating UFO Mode, Which I Never Like To Begin With And Yeah....... No Offense To You Or Your Script
12-01-2011, 08:23 PM #3
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by xYARDSALEx View Post
Well i Like The Code, But Will Not Use It Myself, Cuz The Fact That That Is The Spectating UFO Mode, Which I Never Like To Begin With And Yeah....... No Offense To You Or Your Script


Fairs your entitled to your opinion Winky Winky, i just thought that this will give people more space Smile.
12-01-2011, 08:29 PM #4
Taylor
Former Black Knight.
Originally posted by IVI40A3Fusionz View Post
Fairs your entitled to your opinion Winky Winky, i just thought that this will give people more space Smile.


Yeah I Can Record A Vid If You Wud Like
12-01-2011, 10:17 PM #5
Correy
I'm the Original
Originally posted by IVI40A3Fusionz View Post
I see alot of people were still using the old, boring and long script for the UFO Mode mod in their menus, so i thought i would make a better code that was shorter and more easy to understand. This is basically a recreation of how it was done on MW2 just I've changed a few things and taken some things out so it's compatible with CoD4.

Thread doUFO to your menu ( you probably want to make this a toggle for your menu but you can do that yourself Winky Winky ).

    doUFO()
{
self endon ( "disconnect" );
self endon ( "death" );
self thread MonitorButtons();
for(;Winky Winky
{
self waittill("Pressed_Square");
if ( self GetStance() == "crouch")
{
self.sessionstate = "spectator";
self allowSpectateTeam( "freelook", true );
}
self waittill("Pressed_Square");
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
}
}

MonitorButtons()
{
self endon("death");
self endon("disconnect");
for(;Winky Winky
{
if(self UseButtonPressed())
{
self notify("Pressed_Square");
wait .3;
}
wait .05;
}
}


How To Use:
After you've selected the option from your menu, crouch and press Square (On the PS3) or X (On the XBOX 360) and it will activate the mod.
When you want to exit UFO Mode press Square (On the PS3) or X (On the XBOX 360) and it will end the mod.

Credits:
Correy - For the spectate function
Who ever created this for MW2


EDIT: This can be made shorter however i'm stupid and don't know the self waitill(""); for when you press square so if anyone knows it please tell me Smile.


this is x20 smaller xD
    
On_Ufo( yesorno )
{
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
if( yesorno == "yes" )
{
while( self GetStance() == "crouch" )
{
if( self UseButtonPressed() )
{
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectating";
}
}
}
}


go in crouch and press sqaure.. use input to toggle Smile!

- Toggle On
    
self OnUfo( "yes" );


change the yes to anything to turn off

The following user thanked Correy for this useful post:

IVI40A3Fusionz
12-01-2011, 10:29 PM #6
Woof
...hmm
Originally posted by Correy View Post
this is x20 smaller xD
    
OnUfo( isit )
{
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
if( yesorno == "true" )
{
while( self GetStance() == "crouch" && self useButtonPressed() )
{
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectatin";
}
}
}


go in crouch and press sqaure.. use input to toggle Smile!

- Toggle On
    
self OnUfo( "yes" );


change the yes to anything to turn off


Apparently the "while" statement in GSC does not allow anything other than "1", is this true or is someone telling me porky-pies?
:rolleyes:
12-01-2011, 10:32 PM #7
Correy
I'm the Original
Originally posted by reScript View Post
Apparently the "while" statement in GSC does not allow anything other than "1", is this true or is someone telling me porky-pies?
:rolleyes:


while can be used for anything, but not two things which i've solver Smile
12-01-2011, 10:37 PM #8
Woof
...hmm
Originally posted by Correy View Post
while can be used for anything, but not two things which i've solver Smile

Then I must revenge the lier! :carling:
12-01-2011, 10:38 PM #9
Correy
I'm the Original
Originally posted by reScript View Post
Then I must revenge the lier! :carling:


so your saying this wont work, from my micro menu :carling:?
    
while( self GetStance() == "crouch" )
12-01-2011, 11:15 PM #10
Woof
...hmm
Originally posted by Correy View Post
so your saying this wont work, from my micro menu :carling:?
    
while( self GetStance() == "crouch" )

No?
The lier that said that to me says that! :carling:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo