Results 1 to 5 of 5

Thread: GSC IsMantling

  1. #1
    Private First Class php's Avatar
    Join Date
    Nov 2012
    Posts
    142
    Thanks
    28
    Thanked 116 Times in 59 Posts

    GSC IsMantling

    Requested by IzNoGoD

    PHP Code:

    void PlayerCmd_IsMantling
    (int self) {
        
        
    /*
        
    mantling m8 a1=fff9d750, a2=fff9d500, *(int*)a1 = 8705480
    mantling m8 a1=fff9d750, a2=fff9d500, *(int*)a1 = 8705480 = unk_8705480
        
        */
        #if COD_VERSION == COD2_1_2
        
    int idk 0x8705480 10404 self 0xc;
        
    #elif COD_VERSION == COD2_1_3
        
    int idk 0x87A2500 10404 self 0xc;
        
    #elif COD_VERSION == COD2_1_0
        
    int idk 0x86F1480 10404 self 0xc;
        
    #endif
        
        
    if(*(int*)idk 4//oi m8 im mantling give me a break
            
    stackPushInt(1);
        else
            
    stackPushInt(0);


  2. The Following 4 Users Say Thank You to php For This Useful Post:

    IzNoGoD (5th April 2015),kung foo man (5th April 2015),Mitch (5th April 2015),serthy (5th April 2015)

  3. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Confirmed working on 1.3. Nice
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  4. #3
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    PHP Code:
    #if COD_VERSION == COD2_1_2
        
    int idk 0x8705480 10404 self 0xc;
    #elif COD_VERSION == COD2_1_3
        
    int idk 0x87A2500 10404 self 0xc;
    #elif COD_VERSION == COD2_1_0
        
    int idk 0x86F1480 10404 self 0xc;
    #endif 
    is equal to

    PHP Code:
    int idk PLAYERSTATE(id) + 0xc
    It might also be possible to make IsOnLadder() and IsTalking() with the 'idk' variable.

  5. The Following User Says Thank You to Mitch For This Useful Post:

    kung foo man (6th April 2015)

  6. #4
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    istalking woudl be very nice to have
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  7. #5
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by IzNoGoD View Post
    istalking woudl be very nice to have
    It appears that istalking already exists in cod2.

    Edit: isonladder works: https://github.com/M-itch/libcod/com...87015a7a75946d
    Last edited by Mitch; 6th April 2015 at 11:26.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •