/maptexture

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    /maptexture

    Code:
    void ChatCmd_TextureShit(const char* line, const int argc, char **const argv)
    {
    	int maptexture = 0;
    	if(argc==2) {
    		char szMsg[256];
    		maptexture = atoi(argv[1]);
    		DWORD flag = 0;
    		if (maptexture < 0 || maptexture > 8) {
    			ZChatOutput("^2Maptexture list: 0, 1, 2, 3, 4, 5, 6, 7, 8");
    			return;
    		}
    		SetMapTextureLevel(maptexture);
    		flag |= RTextureType_Map;
    		RChangeBaseTextureLevel(flag);	
    		sprintf(szMsg, "^1New MapTexure Level : %d", (int)maptexture);
    		ZChatOutput(szMsg);
    		return;
    	} else {
    		ZChatOutput("^2Usage: /maptexture <number>");
    		ZChatOutput("^2Maptexture list: 0, 1, 2, 3, 4, 5, 6, 7, 8");
    		return;
    	}
    }
    Last edited by qet123; 12-09-12 at 08:26 PM.


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

    Re: /maptexture

    Quote Originally Posted by qet123 View Post
    Code:
            if(maptexture != 0 && maptexture != 1 && maptexture != 2 && maptexture != 3 && maptexture != 4 && maptexture != 5 && maptexture != 6 && maptexture != 7 && maptexture != 8) { ...
    Why are you doing it like that?

    Code:
    if (maptexture < 0 || maptexture > 8) { ...
    Last edited by Mark; 10-09-12 at 11:00 PM.

  3. #3
    Account Upgraded | Title Enabled! flyffhelper is offline
    MemberRank
    Dec 2010 Join Date
    419Posts

    Re: /maptexture

    i like this release qet123

    and mark thanks for helping him out.

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

    Re: /maptexture

    He's forgotten the part for the negative numbers, even though I posted exactly what he needed to fix :<.
    Last edited by Mark; 12-09-12 at 01:55 AM. Reason: Stupid WYSIWYG editor.

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

    Re: /maptexture

    Code:
    if(argc > 1 && argc <= 2)
    if argc is bigger then 1 and lower or equal to 2?
    Thats the same as if(argc==2)!

  6. #6
    Hakuna Matata bulli10 is offline
    MemberRank
    Feb 2011 Join Date
    697Posts

    Re: /maptexture

    k ... is better do /clean i guess

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

    Re: /maptexture

    Quote Originally Posted by bulli10 View Post
    k ... is better do /clean i guess
    why you need to do /clean while you can do all the textures numbers in one command.

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

    Re: /maptexture

    Quote Originally Posted by qet123 View Post
    why you need to do /clean while you can do all the textures numbers in one command.
    Please fix your code with the fixes me and Gunblade posted, it's not that hard.

  9. #9
    Balance Elian is offline
    MemberRank
    Sep 2009 Join Date
    StarLocation
    1,768Posts

    Re: /maptexture

    You silly coders should know there are still people around that have no idea what this does. I'm still guessing...

  10. #10
    Proficient Member iDelta123 is offline
    MemberRank
    Apr 2012 Join Date
    The NetherlandsLocation
    154Posts

    Re: /maptexture

    Quote Originally Posted by Elian View Post
    You silly coders should know there are still people around that have no idea what this does. I'm still guessing...
    Gunz have 8 maptextures levels, 1 = for high quality, 8 = like archetype.
    qet123 done a command that you can change it to what you want,
    example: /maptexture 3

  11. #11
    Account Upgraded | Title Enabled! Wish Q is offline
    MemberRank
    Jul 2012 Join Date
    LiveScoreLocation
    456Posts

    Re: /maptexture

    Quote Originally Posted by Elian View Post
    You silly coders should know there are still people around that have no idea what this does. I'm still guessing...
    i think u need learn alot O.O

  12. #12
    Balance Elian is offline
    MemberRank
    Sep 2009 Join Date
    StarLocation
    1,768Posts

    Re: /maptexture

    Quote Originally Posted by Wish Q View Post
    i think u need learn alot O.O
    No I don't. I'm not a coder bro, I'm a GFX guy.

  13. #13
    Account Upgraded | Title Enabled! Wish Q is offline
    MemberRank
    Jul 2012 Join Date
    LiveScoreLocation
    456Posts

    Re: /maptexture

    Quote Originally Posted by Elian View Post
    No I don't. I'm not a coder bro, I'm a GFX guy.
    ok sorry for misunderstandig.

  14. #14
    Member MixBanana is offline
    MemberRank
    Sep 2012 Join Date
    55Posts

    Re: /maptexture

    What the fuck look what i found mr.coder shit - I know you did a little edit but still where is the credit for this guy?
    Last edited by MixBanana; 07-10-12 at 05:45 PM.

  15. #15
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: /maptexture

    MixBananan, U little bit late for tell us this



Page 1 of 2 12 LastLast

Advertisement