ToejaM Posted August 20, 2013 Report Share Posted August 20, 2013 [CPC] Name Tags 1.0 Allows you to identify close range players who are in your line of sight. Installation: Download cpcnametags.sqf Put cpcnametags.sqf inside your root mission folder Edit your init.sqf and add the following code to the bottom of the file // CPC Nametags [] execVM "cpcnametags.sqf"; http://www.youtube.com/watch?v=lz82av8FTeY Details: You must look directly at your target. It does not work through obstacles. It does not work on free look or over obstacles in 3rd person. Limited to a range of 5m (customizable). Your target must be alive. Works with all versions of DayZ and likely all mods for Arma. To change the range edit this bit of code in the cpcnametags.sqf on line 6 if((isPlayer cursorTarget) && (alive cursorTarget) && (side cursorTarget == side player) && (player distance cursorTarget < 5)) then { Change the number "5" to the desired value. Planned features:Humanity Value under a certain range.Blood value if holding a blood bag/other item and not in combat. Still considering the implications of adding extra information to the features. All suggestions welcome. Created by: [CPC] ToejaM Download Link Gimmic, VandaL.pr!, Achmed and 3 others 6 Link to comment Share on other sites More sharing options...
Alucard88 Posted August 21, 2013 Report Share Posted August 21, 2013 Thank, it's work :) Link to comment Share on other sites More sharing options...
voids Posted August 21, 2013 Report Share Posted August 21, 2013 This will definitely going on our server. Should make thieves at Klen etc easier to track. Link to comment Share on other sites More sharing options...
ToejaM Posted August 21, 2013 Author Report Share Posted August 21, 2013 Its the main reason I looked into scripting and actually wrote this. As only the owners of CPC have admin ESP due to it being too tempting, it made it impossible for other admins to see who the theives were at the traders, so this makes the admins job even easier :) While it doesn't 100% prove a thief as youd really need to video your inventory, then the guy next to you and then your inventory being robbed for 100% accurate proof it certainly helps with seeing a trend of theft with players and reports of theivery. My goal is to add a very close range humanity monitor aswell, as we removed bandit/hero orbs as at night you could see them miles off.. a close range humanity meter should work great. I'll also add in a blood monitor if you have for example, a bloodbag in your hand so you can see if someone needs bloodbagging or not. Perhaps even other medical references but one step at a time :) Link to comment Share on other sites More sharing options...
fr1nk Posted August 21, 2013 Report Share Posted August 21, 2013 Good stuff, will be adding this to our server B) Link to comment Share on other sites More sharing options...
Kind-Sir Posted August 21, 2013 Report Share Posted August 21, 2013 This is awesome! I was meaning to do something similar to this. Doing some sniffing on this topic, I came upon a thread on the BIS studio forum:http://forums.bistudio.com/showthread.php?140223-Nametag-script Doing slight modifications, I was able to render in text that would display a name tag, distance, and whatever other properties you would like (configurable) I am currently writing this for people who are marked as friendlies on Epoch, so within 20m of the player, they will be able to see the name tag, health condition (good, well, bad), and make some features for whatever server admins feel like adding in. Here's an image: Gimmic 1 Link to comment Share on other sites More sharing options...
ToejaM Posted August 21, 2013 Author Report Share Posted August 21, 2013 Yeah was the next stage, using it for groups ect. Should be able to tie it in with tag friendly for the extra details I'd think :) Link to comment Share on other sites More sharing options...
Radiix Posted August 26, 2013 Report Share Posted August 26, 2013 This is really cool thanks for the awesome work :) Link to comment Share on other sites More sharing options...
Asian Kid Posted August 27, 2013 Report Share Posted August 27, 2013 Love this added it to my packhttp://dayzepoch.com/forum/index.php?/topic/945-release-asian-server-pack/ Link to comment Share on other sites More sharing options...
Tankschaf Posted August 30, 2013 Report Share Posted August 30, 2013 do i have to disable ingame name tags to make it work? I had perfomance problems afters implementing this and double-name-tags Link to comment Share on other sites More sharing options...
jojje Posted August 30, 2013 Report Share Posted August 30, 2013 works like a charm, im loving it. Link to comment Share on other sites More sharing options...
Niemand Posted September 21, 2013 Report Share Posted September 21, 2013 Planned features: Humanity Value under a certain range. Still considering the implications of adding extra information to the features. All suggestions welcome. Why not simply use colours (edit: coloured name-tags) to show that? - Blue: Survivor - Red: Bandit - Green: Hero Link to comment Share on other sites More sharing options...
ToejaM Posted September 21, 2013 Author Report Share Posted September 21, 2013 Thats a good idea! Link to comment Share on other sites More sharing options...
Armifer Posted September 28, 2013 Report Share Posted September 28, 2013 Why not simply use colours (edit: coloured name-tags) to show that? - Blue: Survivor - Red: Bandit - Green: Hero Cannot edit the cuttext color, thats why this has not been done. https://community.bistudio.com/wiki/cutText Hint box text can be colored though, but that is in the top right of the screen. I remember seeing someplace another method of displaying text on the screen to a player, that can be colored, I just have to find that page I read ages ago, but it still might not be the size or location required for a simple name plate. Link to comment Share on other sites More sharing options...
ToejaM Posted September 28, 2013 Author Report Share Posted September 28, 2013 Honestly not had time to look at this but thats a shame Armifer. Could simply be done on humanity still but adding a suffix to the tag: "Bandit: ToejaM" "Survivor: ToejaM" "Hero: ToejaM" Could even be done with the humanity count: "Bandit(-135252): ToejaM It is a shame that theres no colours for cuttext. Could however add it as an 'addaction" that appears (when clicked does nothing, or infact could bring up the player journal in the top right) - this could be coloured. Link to comment Share on other sites More sharing options...
ToejaM Posted September 29, 2013 Author Report Share Posted September 29, 2013 Looks like this idea is already going in the next changes! http://dayzepoch.com/forum/index.php?%2Ftopic%2F2004-change-log-1024%2F I was playing wasteland last night and meant to look at the mission file as that had different green coloured tags but its not needed now. Not sure if anything else could be done with the tagging system. Perhaps an indication of blood count and medical state somehow, I dont think an exact quantity would be great but a rough idea in the form of a worded message: You see ToejaM, he looks very pale. An extra menu option when close that you can use that displays more information, or displays more information if you're tagged as friendlies and at a closer distance. Who knows but this is a great edition to the Epoch mod (not that I'm bias! :D) Link to comment Share on other sites More sharing options...
vbawol Posted September 29, 2013 Report Share Posted September 29, 2013 New opt-in color coded name tag system that allows you to choose to show your name or not. Your name is displayed color coded based on your humanity. Red text equals -5000 humanity and blue +5000 everyone else is displayed with white text. Thanks go to ToeJam and Gimmic for the ideas. The distance of this tag defaults to 25 meters and can be changed with DZE_HumanityTargetDistance. Did not really want to add more to the change log and should combine all this for the wiki. After you login you get two addaction options: "Display Name (On) | (Off)". Choosing "Off" will never show your name to others unless you have tagged another player as friendly then they will see your name in green. "On" will display your name to others using color coded text based on your humanity. Red equals -5000 humanity and blue +5000 everyone else is displayed with white. Green if the player has tagged as friendly. Once you choose you cannot change the option until you login again. The size of the text gets smaller the further away you are from the player and basically maxes out at 50 meters with a text size of 10%. At the current max of 25m this makes the min text size 50%, stepping every 5 meters up to 100% at 5 meters or less. Link to comment Share on other sites More sharing options...
ToejaM Posted September 29, 2013 Author Report Share Posted September 29, 2013 The main reason for the tag system was to aid with griefing and stealing in trade cities, could you possibly change it so that your name shows regardless in the trader areas? Link to comment Share on other sites More sharing options...
Snowmobil Posted September 29, 2013 Report Share Posted September 29, 2013 I don't think thats gonna happen, since vanilla Epoch doesn't have safezones. You can add it yourself in dayz_code/compile/player_updateGui.sqf Link to comment Share on other sites More sharing options...
ToejaM Posted October 1, 2013 Author Report Share Posted October 1, 2013 Because of the nametag system, people who have been teleported to by cheaters, griefed in the trader areas and other places. Those exploiting wall glitching, have all been named, shamed, banned and dealt with via the nametag system. It has on quite a few occasions, allowed moderators (not full admins, they moderate the chat mostly) to ban skiddies. It has meant that ESP is not needed, only in rare cases meaning admins on my server do not need it. I imagine it wouldn't be difficult to add a similar line in for executing it for specific playerUIDs to have the nametags up always or make it a script for admins to execute when needed via the admin tool so its not a big deal really. Infact I think thats what I'll do. Link to comment Share on other sites More sharing options...
ekroemer Posted October 1, 2013 Report Share Posted October 1, 2013 I'd like to second this. We use Toeja's short range nametags exactly for this purpose: giving griefed players the possibility to identify the griefers so we can sanction those when they have broken server rules. Without a possibility to identify violators any rule becomes moot. Perhaps one could add a config variable (set server side) that will enforce the display of tags at ranges below 5m? Link to comment Share on other sites More sharing options...
ToejaM Posted October 1, 2013 Author Report Share Posted October 1, 2013 waitUntil {alive player}; sleep 10; adminPanel2UIDS = ["XXXXX"]; if(!isDedicated) then { if (getPlayerUID player in adminPanel2UIDS) then { ADDACTION NAMETAGS... blah blah - ill write it when the update comes out and see if it works but it should be possible to add it to a menu or a scroll option :) Link to comment Share on other sites More sharing options...
ekroemer Posted October 2, 2013 Report Share Posted October 2, 2013 Cool :-) Link to comment Share on other sites More sharing options...
Armifer Posted October 4, 2013 Report Share Posted October 4, 2013 Did not really want to add more to the change log and should combine all this for the wiki. After you login you get two addaction options: "Display Name (On) | (Off)". Choosing "Off" will never show your name to others unless you have tagged another player as friendly then they will see your name in green. "On" will display your name to others using color coded text based on your humanity. Red equals -5000 humanity and blue +5000 everyone else is displayed with white. Green if the player has tagged as friendly. Once you choose you cannot change the option until you login again. The size of the text gets smaller the further away you are from the player and basically maxes out at 50 meters with a text size of 10%. At the current max of 25m this makes the min text size 50%, stepping every 5 meters up to 100% at 5 meters or less. Any way to retain the old friendly orb system as an option win tandem with this too? So once they are past the 50m or 25m name tag distance we can still see the green orb on their hands? An option for that in the init.sqf would be great, or just keep the green orbs too. MatthewK 1 Link to comment Share on other sites More sharing options...
igoooor Posted January 5, 2015 Report Share Posted January 5, 2015 is this mod still useful since the epoch update "Display Name (On) | (Off)" ? I thought that the default mod option was only in "regular" difficulty, is it also in veteran? And is the 25m range customisable as in this mod (I like the 5meters) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now