Welcome to Tactical Gamer

+ Reply to Thread
Page 3 of 3 FirstFirst 123
Results 31 to 41 of 41
Discussion: Red Orchestra: Ostfront / Red Orchestra - Map and Mod Development - Player Tags - If you're going to try this, could it be based on range? A person is
  1. #31

    Strag's Avatar

    Join Date
    Jul 2005
    Location
    Columbus, OH, USA
    Age
    38
    Posts
    4,939

    Re: Player Tags

    If you're going to try this, could it be based on range? A person is apt to recognize friend or foe almost instantly if they're within about, say, 15 feet. A quick glance is all it takes. Beyond that distance, it takes a little concentration to recognize a person, which equates to time. Could a person further away have a tag that pops up more slowly? Something like:

    Zero to 15 feet = instant
    15 feet to 45 feet = 0.75 seconds
    45 feet to maximum tag range = 1.5 seconds


    This is more for explanatory purposes, but these distances may work. I'm more interested in what you guys think of the idea in general.

  2.  
  3. #32

    WhiskeySix's Avatar

    Join Date
    Oct 2005
    Posts
    13,483
    Blog Entries
    1

    Re: Player Tags

    yeah, good thinking...makes a lot of sense, and should help a lot.

    |TG-12th|WhiskeySix

  4.  
  5. #33

    FriedFish's Avatar

    Join Date
    Jun 2005
    Posts
    927

    Re: Player Tags

    Good idea Strag, but I don't think close proximity should equal instant recognition. The purpose of the tags was to help communications by providing the names of nearby friendlies. The tags shouldn't be a substitute for friend/foe recognition. Sudden close encounters with the enemy do occur and the name tag shouldn't influence who wins that encounter. A minimum of .5 second delay should occur before name tags appear.

    I've had a chance to look at the related scripts and the original name tag code had a .5 second delay on name tag appearance when you had a player in your sights, so a .5 second delay for nearby friendlies would probably work out ok.

    Tze, if you want some help with the mutators, feel free to PM me. Keep in mind I only started learning unreal script yesterday.

  6.  

     
  7. #34

    Strag's Avatar

    Join Date
    Jul 2005
    Location
    Columbus, OH, USA
    Age
    38
    Posts
    4,939

    Re: Player Tags

    That sounds good to me, Fish. I just wanted to use some numbers to try to convey the idea of the tag delay being based on distance, to see what you guys thought.

    And if you'd want to help out with mutators, that'd be great!

  8.  
  9. #35

    asch's Avatar

    Join Date
    Oct 2003
    Location
    Lake Wylie, SC
    Age
    36
    Posts
    11,578

    Re: Player Tags

    Quote Originally Posted by FriedFish
    Good idea Strag, but I don't think close proximity should equal instant recognition. The purpose of the tags was to help communications by providing the names of nearby friendlies. The tags shouldn't be a substitute for friend/foe recognition. Sudden close encounters with the enemy do occur and the name tag shouldn't influence who wins that encounter. A minimum of .5 second delay should occur before name tags appear.
    Agreed. The desire for tags isn't to recognize friend from foe.... it's to recognize the name of a friend within range.

  10.  
  11. #36


    Bubba's Avatar

    Join Date
    Jul 2005
    Location
    Goodyear, Arizona, United States
    Age
    57
    Posts
    7,393

    Re: Player Tags

    Quote Originally Posted by asch
    Agreed. The desire for tags isn't to recognize friend from foe.... it's to recognize the name of a friend within range.
    I also agree.


    TG_Mateo: "Forget freedom, democracy, the blues and New York Pizza: Our lasting contribution to human society is Bourbon."

    18th SF Operational Detachment Delta

  12.  

     
  13. #37


    Join Date
    Feb 2006
    Location
    Oklahoma City, OK
    Age
    32
    Posts
    998

    Re: Player Tags

    Ugh, what a long night. This was such a pain in the, well, you know. First of all, the .5 second delay in the core code doesn't even work correctly. It does the following:

    Syncs NameTime with LevelTime if it's a new target or more than .5 seconds have elapsed.
    Shows the name tag if LevelTime - NameTime < 1.0 - Duh! It's always less than 1.0; it won't ever be more than .5

    How I coded my delay:

    If you don't have line of sight to the player or they aren't in front of you, set the NameTime = LevelTime.
    If you do have line of sight to the player and they are in front of you, don't update NameTime.
    Show tags where LevelTime - NameTime = (seconds needed before tag shows)

    The seconds needed are based upon distance, I figured the easiest way to do it would be to divide the total distance into thirds and set the tag times to values that grow exponentially based on distance. This is what I came up with:

    if (distance > (intFriendlyTagsCloseDistance * 0.667)){
    CloseTagWaitTime = 2.0;
    } else if (distance > (intFriendlyTagsCloseDistance * 0.334)){
    CloseTagWaitTime = 1.0;
    } else {
    CloseTagWaitTime = 0.5;
    }
    Hopefully it works, I'm going to put it on the server tonight.
    It is by grace you have been saved, through faith - and this not from yourselves, it is the gift of God - not by works, so that no one can boast. Ephesians 2:8-9/NIV

  14.  
  15. #38

    asch's Avatar

    Join Date
    Oct 2003
    Location
    Lake Wylie, SC
    Age
    36
    Posts
    11,578

    Re: Player Tags

    I must spread my rep around. Excellent work!

  16.  
  17. #39

    Strag's Avatar

    Join Date
    Jul 2005
    Location
    Columbus, OH, USA
    Age
    38
    Posts
    4,939

    Re: Player Tags

    Amazing work, Tze. Tripwire should consider hiring you, IMO.

  18.  

     
  19. #40

    |Pz505|Heinz's Avatar

    Join Date
    Mar 2006
    Location
    New Yawk, USA
    Posts
    117

    Re: Player Tags

    Quote Originally Posted by Strag
    Amazing work, Tze. Tripwire should consider hiring you, IMO.
    indeed. prolific kudos are clearly in order.

  20.  
  21. #41


    Join Date
    Feb 2006
    Location
    Oklahoma City, OK
    Age
    32
    Posts
    998

    Re: Player Tags

    I don't think Tripwire makes enough money to pay all their own developers, let alone me.
    It is by grace you have been saved, through faith - and this not from yourselves, it is the gift of God - not by works, so that no one can boast. Ephesians 2:8-9/NIV

  22.  

Thread Information

Users Browsing this Thread

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

Bookmarks

Posting Permissions

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


  
 

Back to top