Results 1 to 10 of 21

Thread: isTouching()

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by filthy_freak_ View Post
    I don't have the knowledge to do this yet. I'm still earning about C++ and libcod.
    This is the information that i found so far.

    PHP Code:
    Touch_Item_Auto 8105C80 (1.3), 81037F0 (1.0
    It calls:
    PHP Code:
    Touch_Item(item_weaponplayermessage 1
    Item_weapon and player are probably gentities.
    So the function gentityaddress_to_num in gsc_player.cpp will probably give you a number between 0 and 63.

    The function is called from:
    PHP Code:
    8187F64 (1.3), 8167AE4 (1.0)
    8187F8C (1.3), 8167B0C (1.0)
    8187FB4 (1.3), 8167B34 (1.0
    These addresses are pointers to a function like closer or download.
    Now you can try and replace these pointers with your own function and return to the original function.
    Before return to the function you can add a message to see which of the addresses you need.

    These commits might help:
    Replacing a function: https://github.com/M-itch/libcod/com...9ef0a8cb70d2c1
    Client number: https://github.com/M-itch/libcod/com...1e2387aadc42ff
    Last edited by Mitch; 17th June 2015 at 14:04. Reason: added commits for examples

Posting Permissions

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