Author: Phoenix_ZA
Author Website: https://github.com/zulu-alpha/zam_shownames

Requirements: Community Base addons A3

Version: 3.5.0
Signed: Yes, serverkey included

Short description: An advanced and realistic name tag system designed to simulate real world recognition conditions.

Date: 2018-01-29 09:58


Comments: (0)
Rating:



 







ZAM - ShowNames

by
Phoenix_ZA


Description:
Shows the names of nearby players when you hold down the key.
Factors such as time of day, fog, zoom, group membership, ranks, line of sight, optical zoom (factoring in simulated atmospheric distortion), thermals and voice are taken into account in order to make recognition as realistic as possible.
This has been separated out of the ZAM mods collection and is where you should get zam_showNames.


Features:
Shows player names
Displays ranks (optional)
Name tag size corresponds linearly with distance
Name tag fade's depending on distance and other factors (optional)
Recognizes zoom (with any optics or no optics) and resizes name tags accordingly (optional)
line of sight is considered by taking into account terrain and objects
Passenger name tags are optimized
Time of day taken into account to simulate the necessity for ambient lighting and\or NVGs to ID people
Arma 3 enhanced fog is taken into consideration when determining ID range (optional)
Smaller name tags are displayed for ruck sacks, named after it's last owner (optional)
Fellow group member names are much bolder to aid in ID (optional)
Knowledge system, allowing normally unknown men to be discovered (by approaching them) or already fully known (such as HVT\VIPs) (optional)
Knowledge system also allows adding name tags to any object (such as crates and mission critical items)
Players using TFAR or ACRE direct speak is indicated by a red name tag, with redness indicating how loud they are predicted to be (taking into account shout, whisper, etc) (optional)
Performance demands of main loop and ACRE support configurable in userconfig (Arma scheduler permitting)
Mission maker can force the enabling or disabling of optional features
Key can be used as toggle or hold by setting in userconfig
Detects if thermal is used and disables name tags (TI is bad at ID IRL).
Show group names for other groups. Togglable with a key (default Ctrl-y). (optional)
Show team names for current group (optional)


Installation:
To install the ZAM - ShowNames you should use modfolders to keep it seperate from the official game content to prevent issues.
With Arma 3 you can use different ways to set up your modfolders to use custom content you have downloaded.
Please visit the Arma 3 Mod install instructions page for more information about using custom mods and addons in Arma 3.


Included files:
zam_shownames.pbo


Usage:
Press t (or another key configured in Main Menu, Configure -> Controls -> Configure Addons -> ZAM -> showNames) to show the names of all players on your side and name tags of rucks used by players.
Note that the key options will appear in that menu only 5 seconds into the game.

Client side mod
Multiplayer and single player support


Media:



Armaholic.com has its own Youtube channel where we will cover the Community made releases.
Subscribe to the Armaholic.com Youtube channel


Notes:
Author repo: https://github.com/zulu-alpha/zam_shownames

I didn't test ACRE on this final build, so I would appreciate it if someone confirms that it works as my community only uses TFAR.


Credits & Thanks:
LordHeart for assistance and early optimizations
KillZoneKid for his zoom detection code


License / Disclaimer:
Covered under APL-SA (arma-public-license-share-alike)
Feel free to use and modify this code, on the proviso that you post back changes and improvements
so that everyone can benefit from them, and acknowledge the original authors in any derivative works.


Changelog:
V3.5.0
Replaced .hpp settings file with CBA addon settings.
Changed category name of keys in CBA settings and change default key to T

v3.4.5
Fixed compatibility with A3 1.66 by removing empty var in for loop.

V3.4.4
- Fixed readme download link.

V3.4.3
- Minor cosmentic cleanup of code.

v3.4.2
- Fixed TFAR support by changing currentUnit to TFAR_currentUnit in fn_showNames_tfar_eh.sqf

v3.4.1
- Added support for CBAs new keybinding function.

v3.4.0
- Added shadows for much easier identification against bright backgrounds (should be as readable as AGMs).

v3.3.0
- Fixed support for TFAR and improved accuracy.
- Added support for @ACRE2. Also supports @st_acre_volume.
- Dramatically improved the smoothness of the name tags. Still has great difficulty in choppers though.

v3.2.1
- Added optional feature to show group names for other groups using toggle (ZAM_showNames_group_names).
- Added optional feature to show team names for current group (ZAM_showNames_group_teams).
- Added key to toggle group names (default Ctrl-y and configurable in cba key-binding menu). Default toggle mode is off.

v3.2
- Changed the way magnification is detected. Now all optics are supported, in all vehicles.
- Added detection of thermal imaging. Name tags are disabled when thermals are used (and fade is enabled).
- Changed ID ranges method. ID range is now only limited by the strength of optics (among other conditions).
- Tweaked fade handling
- Changed getFogViewDistance to be suitable for showNames. Should not be used anywhere else.
- getZoom function added.
- Fixed a few zero divisor errors.

v3.1.4
- Added CBA as a dependancy.
- Changed over to CBA keyhandler. You should now set your key in the game options.
- Attempted to fix _vd_player bug.

v3.1.3
- Added option to use key as toggle (set 'zam_showNames_conf_toggle = true' in the userconfig).
- Added singleplayer support
- Fixed zero divisor error with null check
- Fixed userconfig mess

v3.1.2
- Calibrated TFAR feature
- Fixed TS3 crash due to call extension on null object. Now tfar_eh more cautious.

v3.1.1
- Tweaked names heights when in vehicles and standing
- Added safety to make sure discoverable objects and normally seen objects don't clash

v3.1
- Reduced name tag sizes
- Feature added to allow mission makers to make units discoverable (knowledge feature) (optional)
- addDiscoverable function added
- Added support for miscellaneous objects through knowledge feature (name tag will display as ruck sack name tag)
- pressLoop function added - A helper thread to offload calculations from the onEachFrame stack that also allows finer performance controls
- Massive performance optimisation through the use of pressLoop function
- Added TFAR support
- Feature added to indicate relative volume of speaker (through redness of name tag) (Optional)
- tfar_eh function added
- tfar_vol function added
- Renamed to showNames
- Fixed support for AGM medical by avoiding side confusion as a result of setCaptive
- Added fog effect modifier for different types of objects (as backpacks where too easy to see through fog)

v3
- Most code re-written and adjusted to allow for easier addition of features
- getFogViewDistance function added
- getRankIcon function added
- Feature added to display image of unit's rank (optional)
- Feature added to display last user of ruck when one is put on the ground (optional)
- Feature added to make players of the same group have their names show up bolder and everyone else's lighter, if applicable (optional)
- Feature added to make name tags fade with distance, taking into account time of day and magnification (optional)
- Feature added to make name tags fade even more depending on fog (including new A3 fog) (optional)
- Feature added to detect non optical magnification and linearly adjust name tag sizes accordingly (optional)
- Added userconfig to change user action keys used and default options for features
- Fixed detection of crouch stance
- Adjusted name tag heights (for ranks and tweaks)
- Adjusted maximum text and icon sizes for rucks and people
- Added different categories of maximum text sizes to allow for smaller max text size for vehicle occupants (to better differentiate them)
- Many more smaller adjustements

v2.3
- Did some fiddly stuff in OnEachFrame to ensure no unnecessary calculations are done.
- Limited the size the text can become.

v2.2
- Changed the way name tag height is calculated, to take into account different stances.
- Changed the way unit list is generated to display names for. 3 orders of magnitude faster and better vehicle handling, but limited or no AI support.

v2.1
- More Optimizations
- (Fixed) zero divizor error
- Changed which object's names are shown
- Added new functions to filter arrays

v2
- Swich from onEachFrame to BIS_fnc_addStackedEventHandler (Done by LH)
- Major Optimizations (Done by LH)
- Removed line of sight to lower body check (Done by LH)



- Community Base addons A3


Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!



Tags: Enhace,   Mechanics,   Miscellaneous,   Names,   Nearby