Thread: Entity Facing Issue - Runesource based

Results 1 to 3 of 3
  1. #1 Entity Facing Issue - Runesource based 
    Donator
    DotEXE's Avatar
    Join Date
    Feb 2010
    Age
    21
    Posts
    779
    Thanks given
    291
    Thanks received
    164
    Rep Power
    212
    Example: player 1 follows player 2, on player 1's screen he is facing player 2 but on player 2's screen he is facing the direction he is headed in instead of player 2.

    in player updating i have this method.
    Code:
        private void appendFaceMob(StreamBuffer.OutBuffer out, Mob mob)
        {
            int faceIndex = -1;
    
            if (mob != null)
            {
    
                if (mob.isPlayer())
                {
                    faceIndex = mob.getIndex() + 32768;
                } else
                {
                    faceIndex = mob.getIndex();
                }
    
            }
    
            out.writeShort(faceIndex, StreamBuffer.ByteOrder.LITTLE);
        }
    in the player update masks i have this...
    Code:
            if (mobFaceUpdate)
            {
                mask |= 1;
            }
    ...
            if (mobFaceUpdate)
            {
                appendFaceMob(cachedBlock, flags.getFacingMob());
            }
    not a client issue.





    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2016
    Posts
    148
    Thanks given
    46
    Thanks received
    30
    Rep Power
    19
    Is this on vencillio or 377 remake that was released?
    Reply With Quote  
     

  3. #3  
    Donator
    DotEXE's Avatar
    Join Date
    Feb 2010
    Age
    21
    Posts
    779
    Thanks given
    291
    Thanks received
    164
    Rep Power
    212
    This is my own extension of some runesource source that had netty.





    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [Runesource] Base
    By Purple Helix in forum Downloads
    Replies: 7
    Last Post: 08-27-2013, 08:52 AM
  2. RuneSource Based xStream Error
    By god ownz in forum Help
    Replies: 12
    Last Post: 01-08-2013, 04:43 AM
  3. Replies: 17
    Last Post: 01-05-2013, 02:45 PM
  4. Quantum (Runesource based)
    By DotEXE in forum Downloads
    Replies: 14
    Last Post: 12-31-2011, 03:27 PM
  5. NPC Facing Issue
    By PieRGud in forum Help
    Replies: 5
    Last Post: 06-26-2011, 04:31 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •