What's new

Solved 3rd Person On Toggle

  • Thread starter michael1026
  • Start date
  • Views 374
Status
Not open for further replies.
M

michael1026

Member
Messages
3,720
Reaction score
436
Does anyone know if it's possible to toggle third person on and off? If anyone knows the code for this can you please post it. I'm still trying to learn C++ but don't completely understand it yet. Thanks
-michael1026
 
I

iSuPeRX

Enthusiast
Messages
39
Reaction score
2
Here:
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}]" );
}
}

This one does it with down on the D-Pad, Just change it to whatever you want. Next time use the search button B)
 
M

michael1026

Member
Messages
3,720
Reaction score
436
Here:
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}]" );
}
}

This one does it with down on the D-Pad, Just change it to whatever you want. Next time use the search button B)
tried to but wouldn't let me since 3rd was under 4 characters and third I didn't find anything.
 
I

iSuPeRX

Enthusiast
Messages
39
Reaction score
2
tried to but wouldn't let me since 3rd was under 4 characters and third I didn't find anything.
I don't use the site search. Just Go to Google and type "site:confused:e7ensins.com (insert search here)" Its a lot more advanced that the site search.
 
M

MAJE5TiK

Enthusiast
Messages
487
Reaction score
45
I don't use the site search. Just Go to Google and type "site:confused:e7ensins.com (insert search here)" Its a lot more advanced that the site search.


yep.. exactly what I do :wink:
 
C

cj022

i iz so 1338
Messages
1,416
Reaction score
203
Here:
Code:
thirdPersonToggle()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
for ( ;; )
{
self waittill( "dpad_down" ); {
setDvar( "camera_thirdPerson", 1 );
} self waittill( "dpad_down" ); {
setDvar( "camera_thirdPerson", 0 );
}
}
}

This one does it with down on the D-Pad, Just change it to whatever you want. Next time use the search button B)

Got rid of useless text.
 
Status
Not open for further replies.
Top Bottom