[Helicopter Mod] Third person?

Posts 1–8 of 8 · Page 1 of 1
[Helicopter Mod] Third person?
Is there a way that in the Helicopter mod I can see IT like in third person? I find it a little harder to use. I noticed in the codes "cg_thirdperson 0" changed to 1 but didn't make a difference. ANy way?
I dont think ist possible, maybe someone else got better answer ^_^
Quote Originally Posted by House View Post
I dont think ist possible, maybe someone else got better answer ^_^
Nope, anyone else have a better better answer?
Lol I just launched the Mod into a devmap there now and set a few thirdperson dvars and it worked great. It's trying to figure out when to start them and when to end them...

Any ideas?
Quote Originally Posted by CainFool View Post
Lol I just launched the Mod into a devmap there now and set a few thirdperson dvars and it worked great. It's trying to figure out when to start them and when to end them...

Any ideas?
1. Load Game
2. Start a match as host
3. Enter your dvars
4. map_restart
5. Should work
In cod4 this was the code to switch Between 3rd Person View And 1st Person View

Code:
at the _globallogic script add 

bottom of spanwplayer:
____________________________________________
    self setClientDvar("cg_thirdPerson", 1);
    self thread thirdPersonADS();
____________________________________________



add this function to end of the _globallogic script:
____________________________________________
thirdPersonADS()    // called from spawnePlayer()
{
    self endon( "killed_player" );
    self endon( "joined_spectators" );
    self endon( "disconnect" );

    lastAds = false;

    while (isPlayer(self) && self.sessionstate == "playing")
    {
        wait .05;

        curAds = self playerAds();
        if (curAds && curAds != lastAds)
            self setClientDvar("cg_thirdPerson", 0);
        else if (!curAds && curAds != lastAds)
        {
            if (!self meleeButtonPressed())
                self setClientDvar("cg_thirdPerson", 1);
        }
        lastAds = curAds;
    }
}
so change the code when you enter in the helicopter to use thirdPersonADS script and when you exit to become first person again
Quote Originally Posted by kostasishere View Post
In cod4 this was the code to switch Between 3rd Person View And 1st Person View

Code:
-------------------------------------------

at the _globallogic script add 

bottom of spanwplayer:
____________________________________________
    self setClientDvar("cg_thirdPerson", 1);
    self thread thirdPersonADS();
____________________________________________



add this function to end of the _globallogic script:
____________________________________________
thirdPersonADS()    // called from spawnePlayer()
{
    self endon( "killed_player" );
    self endon( "joined_spectators" );
    self endon( "disconnect" );

    lastAds = false;

    while (isPlayer(self) && self.sessionstate == "playing")
    {
        wait .05;

        curAds = self playerAds();
        if (curAds && curAds != lastAds)
            self setClientDvar("cg_thirdPerson", 0);
        else if (!curAds && curAds != lastAds)
        {
            if (!self meleeButtonPressed())
                self setClientDvar("cg_thirdPerson", 1);
        }
        lastAds = curAds;
    }
}
____________________________________________

------------------------------------------------

so change the code when you enter in the helicopter to use thirdPersonADS script and when you exit to become first person again
First put that stuff in code from now on, [ code] [/code] or

Anyway have you tried this or are you assuming it works?
Quote Originally Posted by Insane View Post
[FONT="Book Antiqua"][COLOR="Teal"][SIZE="2"][B]

First put that stuff in code from now on, [ code] [/code]
Here ya go
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us