[G] - Low Gravity Tag!

Results 1 to 10 of 10
  1. #1
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    [G] - Low Gravity Tag!

    ZModule_Movable.cpp

    Code:
    #define GRAVITY_LOW     			500.f
    Code:
    void ZModule_Movable::UpdateGravity(float fDelta)
    {
    	if(strstr(ZGetGameClient()->GetStageName(),"[G]"))
    {
    	m_Velocity.z = 
    		max( m_Velocity.z - GRAVITY_LOW*fDelta,-MAX_FALL_SPEED);
    }
    	else
    	{
    	m_Velocity.z = 
    		max( m_Velocity.z - GRAVITY_CONSTANT*fDelta,-MAX_FALL_SPEED);
    	}
    }


  2. #2
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: [G] - Low Gravity Tag!

    sscanf pls.

  3. #3
    Daemonsring Developer Gunblade is offline
    MemberRank
    Jul 2007 Join Date
    On the moonLocation
    728Posts

    Re: [G] - Low Gravity Tag!

    Quote Originally Posted by Vusion View Post
    sscanf pls.
    You could use that if you want an user to define a gravity value.
    But the code above is good enough if you only want players to be able to use one value.

  4. #4
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

  5. #5
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: [G] - Low Gravity Tag!

    Quote Originally Posted by Vusion View Post
    it's bugged, you can't jump if tag not exists!

  6. #6
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: [G] - Low Gravity Tag!

    I never said it was a direct code to use, I clearly said it's an example.

  7. #7
    Account Upgraded | Title Enabled! ThunderZ is offline
    MemberRank
    Oct 2011 Join Date
    396Posts

    Re: [G] - Low Gravity Tag!

    I'm going to do a stage setting version ;D

  8. #8
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: [G] - Low Gravity Tag!

    Quote Originally Posted by ThunderZ View Post
    I'm going to do a stage setting version ;D
    The annoying thing about stage is that you don't know if master enabled low gravity for example...

  9. #9
    Account Upgraded | Title Enabled! ThunderZ is offline
    MemberRank
    Oct 2011 Join Date
    396Posts

    Re: [G] - Low Gravity Tag!

    Quote Originally Posted by qet123 View Post
    The annoying thing about stage is that you don't know if master enabled low gravity for example...
    yeah i guess that is true or you could put that info on the room listings...

  10. #10
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: [G] - Low Gravity Tag!

    Quote Originally Posted by ThunderZ View Post
    yeah i guess that is true or you could put that info on the room listings...
    That's the best thing, make area for it.



Advertisement