DayZ
188 ratings
Dogtags
3
3
2
3
2
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
File Size
Posted
Updated
13.259 MB
Nov 29, 2020 @ 3:16pm
Jun 9 @ 9:32pm
4 Change Notes ( view )

Subscribe to download
Dogtags

Description
Description
Chernarus can be a very cold and unforgiving land, let's make it a bit more bearable by being able to identify your threats. Survivors are tagged when entering the nation of Chernarus, only their name and the date they were tagged can be viewed, and blood type if you have been tested. Collect the tags of your enemies or of the fallen allies, bring them forth for trade or as trophy pieces.

Features
- Name, tagged date, and blood type (if known by test) are stored on the tag
- Dogtags can only be taken off of dead players
- Hero, bandit, and survivor variants (distinguished by color)
- Dogtags can be view on dead or restrained players
- Survivors are tagged upon character spawn, existing players will also be tagged upon login
- Names on dogtags are updated when changing your name

Configuration
You can configure if and when dogtags can be removed from dead players, with the dogtagsPlaytimeRequired config value in serverDZ.cfg. This is the required time the dead player had to be alive in order for their dogtag to be able to be collected. You can also control if dogtags worn by AI can be removed once dead with dogtagsCanTakeFromAI.

dogtagsPlaytimeRequired = -1; // dogtags can NOT be removed from dead players dogtagsPlaytimeRequired = 0; // dogtags can always be removed from dead players, even fresh spawns dogtagsPlaytimeRequired = 600; // dogtags can only be removed from dead players that have played more than 10 minutes dogtagsCanTakeFromAI = 1; // allow dogtags to be taken off of AI dogtagsCanTakeFromAI = 0; // disallow dogtags to be taken off of AI - default

There's really only one way to configure how tags are spawned currently on the server, you can add this method to your server's init.c file to edit what type of dogtags you're going to be giving your players. There are three dogtag variants, their class names are as follows:
Dogtag_Survivor, Dogtag_Hero, Dogtag_Bandit, Dogtag_Silver, Dogtag_Granite, Dogtag_Cobalt

I'd only edit this if you know what you're doing, or if someone in the community has made a good example to be used freely. This method isn't necessary to add to your init.c as it's already in the base mod and works as functioned below. There are some starter examples in the "Server" folder of the mod, along with the types.xml.

This method is NOT necessary to added to your init.c file, only if you want to change which dogtags spawn on the player when the character is created.

override Dogtag_Base EquipDogtag(PlayerBase player) { if (!player.HasDogtag()) // check if the player has a tag already { // create a new tag is the player doesn't have one int slotId = InventorySlots.GetSlotIdFromString("Dogtag"); return Dogtag_Base.Cast(player.GetInventory().CreateAttachmentEx("Dogtag_Survivor", slotId)); } return null; }

Update player's dogtag based on time played for their specific character, by adding this to your init.c
override void UpdatePlayersStats() { super.UpdatePlayersStats(); array<Man> players = {}; GetGame().GetPlayers(players); for (int i = 0; i < players.Count(); i++) { PlayerBase player; if (!PlayerBase.CastTo(player, players.Get(i))) continue; // update player's dogtag base on time float playtime = player.StatGet("playtime"); if (playtime >= 21600 && playtime < 43200) { player.ReplaceDogtag("Dogtag_Granite"); } else if (playtime >= 43200) { player.ReplaceDogtag("Dogtag_Cobalt"); } } }

Mod Integrations
GraveCross - dogtags spawn on grave crosses, load Dogtags after this mod
DayZ Expansion - dogtags spawn on grave crosses, load Dogtags after this mod
TransferItemsToCrateWhenDying - dogtags spawn on boxes, load Dogtags after this mod


Planned Features
- More modding support and examples
- Additional meta stats for tags (i.e. killed by and death date); configurable
- Better PVE support

Known Issues
- Incompatibilities with other mods that modify Trader's has item check logic and item removal logic

Special Thanks
Levent - modeling and texturing
Cashewsan - model importing and material configuration (original mod idea)
DayZBlackout - getting me the best contact for modeling and texturing
Jacob_Mango - helping solve the UI issue with tooltips
InclementDad - continue

Usage & Terms
This item is NOT authorized (strictly forbidden) for any of these conditions:
- posting on Steam, except under the Steam account officialwardog.
- hosting on any download server other than Dogtags' current workshop download.
- hosting on any launcher for distribution other than Dogtags' current workshop download.
- to be packaged in any form other than Dogtags' current workshop download.
- to create derivative works.

PERMISSION IS NOT GRANTED FOR THIS MOD TO BE INCLUDED IN A "SERVER PACK" or "MOD PACK".

Use a Collection if you want to include this mod on your server for your users.

Monetization while using this mod is approved.
Copyright 2019-2024 Wardog.

[wrdg.net]
Popular Discussions View All (14)
18
Mar 19 @ 1:14pm
Servers using this mod
Sfmplayer
3
Nov 15, 2023 @ 2:51am
Crash at server load
Gwart
8
Mar 24 @ 12:53pm
Report issues or crash logs
Sfmplayer
208 Comments
FleOx-FT Jul 16 @ 6:49am 
hello not possible to loot the dogtag... could you help me thank you
Gothic Jun 24 @ 10:55am 
Hi bro, if i edit serverdayz.cfg server crash after.
ErrorMessage_DayZServer_x64_2024-06-24_18-51-14.mdmp

Any ideea?
ribro19 Jun 10 @ 12:36pm 
Can anyone tell me how I can downgrade the mod to the last version? The server admin hasn't updated the mod yet and I'm on the newest version, but the server is still on yesterday's version...
Wardog  [author] Jun 9 @ 9:33pm 
Resolved the crash to desktop issue when exiting the game
Violt Jun 8 @ 1:11pm 
I'm getting a Bad-Module-Info error when i exit the game from the main menu when i have the Dogtags mod installed.

I've removed all mods in my load list one by one and it stopped happening after i unsubscribed Dogtags mod
Lucid_Raven May 30 @ 10:55pm 
i keep getting this error

$CurrentDir:mpmissions\dayzOffline.chernarusplus\init.c(33): Function 'EquipDogtag' is marked as override, but there is no function with this name in the base class

anyone received this and know how to fix it
E79Tank May 4 @ 6:17am 
TYVM noticed that Dr.Jones had a second update around the same time too lol
Wardog  [author] May 4 @ 5:36am 
I've removed integrations i had with Trader by Dr Jones. This should resolve any startup issues on my end.
E79Tank May 4 @ 5:23am 
can confirm, Dr. Jones Trader update has broken the mod
verjil92 May 4 @ 4:37am 
Trader update