Thread: Player Facing

Results 1 to 9 of 9
  1. #1 Player Facing 
    Registered Member
    Arizona's Avatar
    Join Date
    May 2009
    Age
    29
    Posts
    275
    Thanks given
    11
    Thanks received
    12
    Rep Power
    113
    Hey, I need a little help, I was adding castlewars and i noticed that after i die, I am still facing the play who I was attacking, I need to know how to reset the face player method.



    EDIT: I am not going to rip it from a source, I actually want to learn.
    TRUETECH LOL:
    Spoiler for Rofl:
    Reply With Quote  
     

  2. #2  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,871
    Thanks given
    1,854
    Thanks received
    4,745
    Rep Power
    5000
    It's a update mask that keeps facing unless targets index is -1 or 65535 so whatever facing variable you set to player.getIndex(), you have to set -1 when dying.
    Hope you get what I mean

    Attached image

    Reply With Quote  
     

  3. #3  
    Registered Member
    Arizona's Avatar
    Join Date
    May 2009
    Age
    29
    Posts
    275
    Thanks given
    11
    Thanks received
    12
    Rep Power
    113
    Oh, that simple? Thanks man, Ima try it.
    TRUETECH LOL:
    Spoiler for Rofl:
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Feb 2009
    Age
    27
    Posts
    2,861
    Thanks given
    127
    Thanks received
    226
    Rep Power
    700
    Yeah, set it to -1.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Arizona's Avatar
    Join Date
    May 2009
    Age
    29
    Posts
    275
    Thanks given
    11
    Thanks received
    12
    Rep Power
    113
    Wow, thanks man worked.
    TRUETECH LOL:
    Spoiler for Rofl:
    Reply With Quote  
     

  6. #6  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,871
    Thanks given
    1,854
    Thanks received
    4,745
    Rep Power
    5000
    Yw .

    Attached image

    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Feb 2009
    Age
    27
    Posts
    2,861
    Thanks given
    127
    Thanks received
    226
    Rep Power
    700
    Did you use -1 or 65535?
    Reply With Quote  
     

  8. #8  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,871
    Thanks given
    1,854
    Thanks received
    4,745
    Rep Power
    5000
    Quote Originally Posted by Jarba View Post
    Did you use -1 or 65535?
    Doesn't matter as client will set it to -1 if you put 65535

    Code:
            if((i & 1) != 0)
            {
                player.interactingEntity = stream.method434();
                if(player.interactingEntity == 65535)
                    player.interactingEntity = -1;
            }

    Attached image

    Reply With Quote  
     

  9. #9  
    Donator

    Join Date
    Jul 2009
    Posts
    1,452
    Thanks given
    27
    Thanks received
    13
    Rep Power
    69
    Quote Originally Posted by S Quare Quxx View Post
    Doesn't matter as client will set it to -1 if you put 65535

    Code:
            if((i & 1) != 0)
            {
                player.interactingEntity = stream.method434();
                if(player.interactingEntity == 65535)
                    player.interactingEntity = -1;
            }
    Would't that produce unnecacery lagg?
    Epia spelling going on^
    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

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