Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Thanks so much for reading my TED talk. =)
{
"SlotName": "Dogtag",
"Items": [
{
"ClassName": "Dogtag_Bandit",
"Chance": 1.0,
"Quantity": {
"Min": 0.0,
"Max": 0.0
},
"Health": [
{
"Min": 1.0,
"Max": 1.0,
"Zone": ""
}
],
"InventoryAttachments": [],
"InventoryCargo": [],
"ConstructionPartsBuilt": [],
"Sets": []
}
]
},
since AIs are currently still considered “players,” they may also receive them (not verified).
override Dogtag_Base EquipDogtag(PlayerBase player)
{
Dogtag_Base tag;
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");
// update player's dogtags base on time
float playtime = player.StatGet("playtime");
// create dog tag based on playtime
if (playtime > 86400 && playtime < 259199)
{
tag = player.GetInventory().CreateAttachmentEx("Dogtag_Silver", slotId);
}
else if (playtime > 259200 && playtime < 604799)
{
tag = player.GetInventory().CreateAttachmentEx("Dogtag_Granite", slotId);
}
else if (playtime > 604800)
{
tag = player.GetInventory().CreateAttachmentEx("Dogtag_Cobalt", slotId);
}
else
{
tag = player.GetInventory().CreateAttachmentEx("Dogtag_Survivor", slotId);
}
}
tag = player.GetDogtag(); // get current tag on player, new or existing
tag.SetNickName(player.GetIdentity().GetName()); // updates player's name
return tag;
}