Results 1 to 6 of 6
  1. #1
    keny330's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    1
    My Mood
    Happy

    3rd person on/off code

    I started making a code to turn 3rd person on/off, kind of like the ufo code, heres what I got so far

    [HTML]
    do3rd()
    {
    self endon ( "disconnect" );

    self notifyOnPlayerCommand("5", "+actionslot 2");

    for( ;; )
    {
    self waittill("5");
    setDvar("camera_thirdperson", 1);
    setDvar("camera_thirdPersonCrosshairOffset", 0);
    self thread maps\mp\gametypes\_hud_message::hintMessage( "^1 Press 5 to exit 3rd person." );





    }
    }
    [/HTML]

    Can anyone tell me the code to return to normal view ?

  2. #2
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,984
    Reputation
    176
    Thanks
    919
    My Mood
    Blah
    That would be
    Code:
    setDvar("camera_thirdperson", 0);
    i guess. I have no idea if it works, that's just a guess. Or maybe
    Code:
    setDvar("camera_firstperson", 1);


    The lines in my Steam are i's

  3. #3
    keny330's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    1
    My Mood
    Happy
    Yep got it to work, thanks alot mate (:

  4. #4
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,984
    Reputation
    176
    Thanks
    919
    My Mood
    Blah
    Request solve
    @master131
    @Toobanooba


    The lines in my Steam are i's

  5. #5
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,667
    My Mood
    Breezy
    /marked as solved
    /moved to gsc help
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  6. #6
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    154
    My Mood
    Amazed
    Extracted from _dev.gsc:

    Code:
    thirdPersonToggle()
    {
    	self endon ( "death" );
    	self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
    	
    	thirdPersonElem = self createFontString( "default", 1.5 );
    	thirdPersonElem setPoint( "TOPRIGHT", "TOPRIGHT", 0, 72 + 260 );
    	thirdPersonElem setText( "3rd Person: " + getDvarInt( "camera_thirdPerson" ) + "  [{+actionslot 2}]" );
    	self thread destroyOnDeath( thirdPersonElem );
    	
    	for ( ;; )
    	{
    		self waittill( "dpad_down" );
    
    		setDvar( "camera_thirdPerson", !getDvarInt( "camera_thirdPerson" ) );
    		
    		thirdPersonElem setText( "3rd Person: " + getDvarInt( "camera_thirdPerson" ) + "  [{+actionslot 2}]" );
    	}
    }