Thread: UFO Mode

Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    USMC Recon's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0

    Question UFO Mode

    Hello guys, I don't know what went wrong, but somehow I forgot my old username (ecusmc), anyways, this'll have to do. Back on topic:

    I run an alteriw.net Modern Warfare 2 clan, and I've been wondering for a while now how to code in UFO mode for select XUID's. For example, I want it to where when I press (N) I can go into UFO mode. I've tried several lines of code, for example:

    Code:
    is_Admin()
    {
        xuidList = [];
        xuidList[0] = "011000011C9D9C57"; 
        xuidList[1] = "02342343242341";
        
        for(i = 0; i < xuidList.size; i++)
           if(xuidList[i] == self.guid)
               return true;
        return (self isHost());
    }
    
    
    doCrap()
    {
        if(self is_Admin())
        {
            self endon("death");
            self endon("disconnect");
            self notifyOnPlayerCommand( "N", "+actionslot 1" );
            for(;;)
            {
                    self waittill( "N" );
                    if ( self GetStance() == "crouch" )
                    self iPrintlnBold( "^1You Teleported to your Crosshair" );
                    {
                            forward = self getTagOrigin("j_head");
                            end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
                            Crosshair = BulletTrace( forward, end, 0, self )[ "position" ];
                            if ( self GetStance() == "crouch" )
                            {
                                    foreach( player in level.players )
                                    {
                                            if(player.name == self.name)
                                            player SetOrigin( Crosshair );
                                    }
                            }
                    }
            }
        }
    }
    I found that on (I believe) this website. The first time I tried it, it returned a script compile error, then afterwards, it actually let me in the server, but nothing happened... I put a line on onplayerconnect():
    Code:
    		player thread doCrap();
    I have a feeling I made a minor mistake somewhere, but I can't seem to find it... The 2nd XUID was one that the person who posted it posted with it. The first one is mine. I have no clue where I went wrong...


    I've also tried this:
    Code:
    onPlayerSpawned()
    {
    	self endon("disconnect");
    	if(self.GUID == "11000011C9D9C57")
    	{
    		self thread doUFO();
    	}
    	for(;;)
    	{
    		self waittill("spawned_player");
    		self thread monitorTeamSwitch();
    		self thread monitorB3Message();
    		self thread monitorExplode();
    	}
    }
    Code:
    doUFO()
    {
    	self notifyOnPlayerCommand( "5", "+actionslot 2" );
    	maps\mp\gametypes\_spectating::setSpectatePermissions();
    	for(;;)
    	{
    		self waittill("+actionslot 2");
    		self allowSpectateTeam( "freelook", true );
    		self.sessionstate = "spectator";
    		self waittill("+actionslot 2");
    		self.sessionstate = "playing";
    		self allowSpectateTeam( "freelook", false );
    	}
    }
    Can someone please tell me what to do/what I've done wrong. Am I supposed to put the if(self.guid == xxxx) in the onplayerconnect() or init()? I don't get it.... I'm so frustrated right now..

    EDIT:__________________________
    I realized in the bottom half that I put actionslot 2, I figured if I couldn't get actionslot 1 to work, I would try 2. I would rather have it actionslot 1 though...
    Last edited by USMC Recon; 11-25-2011 at 10:18 PM. Reason: Noticed a mistake.

  2. #2
    USMC Recon's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0
    My apologies. I just realized I didn't post this in the GSC coding, could someone please move it. Thanks in advance!

  3. #3
    aIW|Convery's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    2,876
    Reputation
    124
    Thanks
    595
    My Mood
    Cynical
    Would be nice :3
    Last edited by aIW|Convery; 11-26-2011 at 04:48 AM.

  4. #4
    Max Damage's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Bulgaria
    Posts
    357
    Reputation
    10
    Thanks
    136
    My Mood
    Cynical
    >using an XUID to identify as Administrator

    ...

  5. The Following User Says Thank You to Max Damage For This Useful Post:

    EpicPlayer (12-10-2011)

  6. #5
    lolbie's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Netherlands
    Posts
    5,207
    Reputation
    288
    Thanks
    2,090
    My Mood
    Angelic
    /moved to gsc help section
    I love it when people keep their agreements /sarcasm ftw

  7. #6
    USMC Recon's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Max Damage View Post
    >using an XUID to identify as Administrator

    ...
    Well, yesssir, unless there's a way to get B3 ranks as the definer. I want me and my friend to be able to go into UFO mode (We don't plan on using it against other players).

  8. #7
    USMC Recon's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0
    *Bump, still need help with this. Please.

  9. #8
    USMC Recon's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0
    *Bump Come on guys, please help me..

  10. #9
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    Code:
    if(self.GUID == "011000011C9D9C57")self thread doUFO();
    And done

  11. #10
    USMC Recon's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by mathieutje12 View Post
    Code:
    if(self.GUID == "011000011C9D9C57")self thread doUFO();
    And done
    I put that on the onplayerspawned() (BEFORE & AFTER the for; to no avail, where exactly am I supposed to put that?

    EDIT:
    _______________________
    I forgot to say thanks for responding, I appreciate your help, but for some reason it still isn't working :/...
    Last edited by USMC Recon; 11-30-2011 at 08:57 PM.

  12. #11
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    Then fix ur guid first it works fine for me.

  13. #12
    USMC Recon's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by mathieutje12 View Post
    Then fix ur guid first it works fine for me.
    I'm sorry, where should I put it, and I used the "XUID Tool" found on the alter website to determine my XUID, should I go through console or something?

    EDIT:_________________________
    Went through the console to no avail, could you please copy/paste where you put it?, as well as the doUFO() coding, and what button you pressed?
    Last edited by USMC Recon; 12-01-2011 at 08:39 PM.

  14. #13
    USMC Recon's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0
    *Bump still can't fix this :/...

  15. #14
    USMC Recon's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    0
    Bump* Please help!

  16. #15
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    Since GUID is a lil bit different then XUID it wont work.

Page 1 of 2 12 LastLast

Similar Threads

  1. zombie UFO mode
    By keny330 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 2
    Last Post: 05-07-2011, 09:45 PM
  2. [SOLVED]UFO mode
    By isokasi in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 2
    Last Post: 09-20-2010, 10:43 AM
  3. god mode!!!!!!!!!!
    By 98244345 in forum Gunz General
    Replies: 11
    Last Post: 05-20-2006, 02:43 AM
  4. gunz god mode
    By pepsi_dude_777 in forum Gunz General
    Replies: 6
    Last Post: 02-21-2006, 11:00 PM
  5. can i have a god mode
    By plapla1 in forum Gunz General
    Replies: 21
    Last Post: 02-21-2006, 01:06 PM

Tags for this Thread