[Help] Gravity.dll

Results 1 to 16 of 16
  1. #1
    Account Upgraded | Title Enabled! lxchadxl is offline
    MemberRank
    Nov 2008 Join Date
    Hai 2 u, i r Chad.Location
    442Posts

    [Help] Gravity.dll

    This .dll was formerly released by Team Zebra, but there is a slight "glitch" with its wall-run against and up the wall, would anybody be kind enough to help me fix it? :D thanks

    GravityDLL.rar - 0.01MB


  2. #2
    GunZ Developer dacharles is offline
    MemberRank
    Oct 2006 Join Date
    476Posts

    Re: [Help] Gravity.dll

    yeah somebody can fix it? ...one guy told me that the gravity variable changes on other functions too...u must change it on other functions but i dont know how xd

  3. #3

    Re: [Help] Gravity.dll

    yeah i have the same problem i cant seem to fix it :(

  4. #4
    Account Upgraded | Title Enabled! lxchadxl is offline
    MemberRank
    Nov 2008 Join Date
    Hai 2 u, i r Chad.Location
    442Posts

    Re: [Help] Gravity.dll

    bump
    10char

  5. #5
    Account Upgraded | Title Enabled! lxchadxl is offline
    MemberRank
    Nov 2008 Join Date
    Hai 2 u, i r Chad.Location
    442Posts

    Re: [Help] Gravity.dll

    somebody help fix please :D

  6. #6
    Account Upgraded | Title Enabled! cerealnp is offline
    MemberRank
    Apr 2006 Join Date
    BrazilLocation
    441Posts

  7. #7
    Account Upgraded | Title Enabled! lxchadxl is offline
    MemberRank
    Nov 2008 Join Date
    Hai 2 u, i r Chad.Location
    442Posts

    Re: [Help] Gravity.dll

    yes thats the original post, so can you help me? -.-

  8. #8
    Aristrum Mark is offline
    MemberRank
    Aug 2007 Join Date
    United KingdomLocation
    474Posts

    Re: [Help] Gravity.dll

    If I remember right, if there isn't a gravity tag, return to the original function. That way, in low grav you still have low grav wall running, and in high grav, you still have high grav.

  9. #9
    much coder t0p lel Team Zebra is offline
    MemberRank
    Mar 2009 Join Date
    234Posts

    Re: [Help] Gravity.dll

    That's what I essentially do. That's not the solution.

    Code:
    float GetGravityConstDetour(void)
    {
    	float gravConstant = 1.0f;
    	string name = (string)GetStageName();
    
    	if((name.find("[G") != string::npos) ||
    		(name.find("]") != string::npos))
    	{
    		int fGrav = 0;
    		sscanf_s(name.c_str(), "[G%d]", &fGrav);
    		gravConstant = fGrav * 0.01f;
    	}
    
    	return gravConstant;
    }
    If the tags aren't there, it returns 1.0 for the gravity, which means normal.

  10. #10
    Account Upgraded | Title Enabled! Tman151 is offline
    MemberRank
    May 2009 Join Date
    CaliforniaLocation
    306Posts

    Re: [Help] Gravity.dll

    Taught me a bit of Detouring. :D Thank you very much.

  11. #11
    Account Upgraded | Title Enabled! lxchadxl is offline
    MemberRank
    Nov 2008 Join Date
    Hai 2 u, i r Chad.Location
    442Posts

    Re: [Help] Gravity.dll

    Guys, i know NOTHING about editing or compiling dlls, can anybody just post a fixed one? lol please? :o

  12. #12
    Aristrum Mark is offline
    MemberRank
    Aug 2007 Join Date
    United KingdomLocation
    474Posts

    Re: [Help] Gravity.dll

    Quote Originally Posted by Team Zebra View Post
    That's what I essentially do. That's not the solution.

    Code:
    float GetGravityConstDetour(void)
    {
        float gravConstant = 1.0f;
        string name = (string)GetStageName();
    
        if((name.find("[G") != string::npos) ||
            (name.find("]") != string::npos))
        {
            int fGrav = 0;
            sscanf_s(name.c_str(), "[G%d]", &fGrav);
            gravConstant = fGrav * 0.01f;
        }
    
        return gravConstant;
    }
    If the tags aren't there, it returns 1.0 for the gravity, which means normal.
    That still means you fall when wall running. If there isnt a tag, I let the original function handle it which works.

  13. #13
    Account Upgraded | Title Enabled! lxchadxl is offline
    MemberRank
    Nov 2008 Join Date
    Hai 2 u, i r Chad.Location
    442Posts

    Re: [Help] Gravity.dll

    is anybody gonna upload a working gravity.dll? :o

  14. #14
    Account Upgraded | Title Enabled! Guy is offline
    MemberRank
    Apr 2009 Join Date
    919Posts

    Re: [Help] Gravity.dll

    Quote Originally Posted by Team Zebra View Post
    That's what I essentially do. That's not the solution.

    Code:
    float GetGravityConstDetour(void)
    {
    	float gravConstant = 1.0f;
    	string name = (string)GetStageName();
    
    	if((name.find("[G") != string::npos) ||
    		(name.find("]") != string::npos))
    	{
    		int fGrav = 0;
    		sscanf_s(name.c_str(), "[G%d]", &fGrav);
    		gravConstant = fGrav * 0.01f;
    	}
    
    	return gravConstant;
    }
    If the tags aren't there, it returns 1.0 for the gravity, which means normal.
    STL while working directly with memory? It's an ugly thing!

  15. #15
    Account Upgraded | Title Enabled! lxchadxl is offline
    MemberRank
    Nov 2008 Join Date
    Hai 2 u, i r Chad.Location
    442Posts

    Re: [Help] Gravity.dll

    so. um somebody upload a fixed one? :x

  16. #16
    Account Upgraded | Title Enabled! lxchadxl is offline
    MemberRank
    Nov 2008 Join Date
    Hai 2 u, i r Chad.Location
    442Posts

    Re: [Help] Gravity.dll

    bump please -.- i really need this :x



Advertisement