Jump to content
Sign in to follow this  
loyalguard

Name tags script

Recommended Posts

Name Tags Script v 0.2 (Beta)

by Loyalguard

ntscriptuu5.jpg

This script is still in beta development so community feedback is highly desired!

Overview

The Name Tags Script provides an alternative method to recognize and identify a player's teammates from the default "friendly tags" used by ArmA with the goal to make recognizing teammates as realistic and easy as possible. The Name Tags Script works completely independently of the mode of difficulty (cadet or veteran) and related settings so they can be seen even when ArmA tags cannot.

Demo Video: <a href="http://www.youtube.com/watch?v=vjyn2Vrqowo" target="_blank">

Name Tags Script v 0.1.5 (Beta) Demo Video</a>

(Demo is from a previous beta version but functions the same)

Download (340K)

MediaFire: Name Tags Script v 0.2.zip

Features

-Pressing the space bar momentarily displays the name of the teammate you are facing (key is customizable).

-Names are only shown for teammates within 25m (value is customizable).

-Recognition range is reduced to 5m for teammates facing more than 90 degrees away from you.

-Only displays names for units on your side (West, East, Civilian).

-100% scripting with no addon dependencies.

-Fully single and multiplayer compatible.

-Demo mission included.

Limitations

-Does not work in freelook. You will still only see names of teammates that your body is facing, not your head.

-You cannot recognize teammates while they are in a vehicle.

-Does not work well while player is in a vehicle as name tags are only displayed at certain angles/directions.

-Tags still appear for teammates that would normally be out of your field of vision (behind a wall, vehicle, other opaque object) but within visual range (25m).

Mission Maker Instructions

1. Copy the "LYGD_NameTags" sub-folder into your mission folder.

2. Insert the following lines into your init.sqf:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">sleep 1;

(findDisplay 46) displaySetEventHandler ["KeyUp", "_nil = _this execVM""LYGD_NameTags\LYGD_NameTags.sqf"""];

3. Review the LYGD_NameTags.sqf file for mission maker customization options.

Player Instructions

If a mission maker has included the Name Tags script in his/her mission, while facing a teammate, press the space bar. If the teammate is within visual range and does not have too much of their back to you a name tag for that unit will appear on the screen momentarily. To view it again or view another teammates name adjust your mouse as appropriate and press the space bar again.

Developmental Change Log

v 0.2

-Added mission maker option to display an "Unknown" tag for friendly units that are in range but facing away from the player.

-Made adjustments to avoid possible unwanted infinite loops.

v 0.1.5

-Initial Open Beta Release.

Script Applications

With ArmA's default friendly tags enabled you can "recognize" players well beyond visual recognition range. With them disabled you cannot recognize fellow players right in front of your face whereas in real life you most likely would be able to (facial features, gait, clothing, etc.) The goal of the Name Tags Script is to attempt to bridge this gap.

How It Works

The script functions by conducting a short series of nearestObject searches to find friendly units in front of the player and displays their names via a cut text. For a detailed description of the mechanics of the script see the readme included in the download.

Acknowledgments

The creator would like to thank the following individuals for their direct or indirect help thus far in making this script possible:

-Spooner from OFPEC.com who provided insight into various scripting methods and concepts required for this script. Spooner's SPON_Recognise script was a major inspiration for the Name Tags Script.

-Mandoble from OFPEC whose mando_drawing scripts gave me insights on how to utilize the event handler and vector commands that are the foundation of the Name Tags Script.

-LeeHunt at OFPEC for his feedback and suggestions

-Dslyecxi from Shack Tactical whose insight on the different applications for name tags in ArmA was helpful in developing this script.

-TacticalGamer.com for their continual support of my editing projects and for beta testing.

Share this post


Link to post
Share on other sites

*SORRY for the 3 posts, computer was freezing. sad_o.gif*

I'm probably going to use this. So will this work for MP, yes I'm assuming rofl.gif anways so it show the players name right? Like for me it would say DaChevs?

Share this post


Link to post
Share on other sites

@thetablet: Welcome to the forums. However, best you read the forum rules.

Resurrecting threads more than 3 months old breaches the rules. Expect a mod will close this thread.

The best procedure in these circumstances is to send a polite request to the author via PM (who in this instance is still active in the forums).

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×