Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

How to set the maximum flight speed from the source

Status
Not open for further replies.
Newbie Spellweaver
Joined
Oct 9, 2020
Messages
48
Reaction score
2
seek help
How to set the maximum flight speed from the source
 
Newbie Spellweaver
Joined
Sep 4, 2020
Messages
11
Reaction score
13
Code:
prop.fFlightSpeed = scanner.GetFloat();
you can change the value of the flight speed in the propitem. Also, look at except.txt which is loaded after the PropItem.

Then you can also change the maximum flight speed potentially hit in the function
Code:
CActionMover::ProcessFlyMove
Code:
        fLenSq = D3DXVec3LengthSq( &m_vDelta );        // 1/60 sec 속도
        float fMaxSpeed = 0.3f;
        if( GetStateFlag() & OBJSTAF_TURBO )        // 터보모드에선 MAX속도가 1.1배
            fMaxSpeed *= 1.1f;
        if( fLenSq < (fMaxSpeed * fMaxSpeed) )        // 일정이상 속도를 넘지 않게 하자.
            m_vDelta += vAcc;                        // 관성벡터 += 추진력벡터
 
Upvote 0
Status
Not open for further replies.
Back
Top