item_dogtags

From Valve Developer Community
Jump to: navigation, search
Info.png
This entity is not in the FGD by default.
See below for instructions on making it available.
Class hierarchy
???
CBaseAnimating
CBaseEntity
Dogtags preview.

item_dogtags is a point entity available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive. It's one of many new features added with the OpHydra.pngOperation Hydra.

Entity Description

T variant. CT variant. No team.
T variant. CT variant. No team.
Dogtags preview.

This entity can be used in the CS:GO/CS2 Deathmatch Deathmatch game mode, see CS:GO Game Modes/Deathmatch#Dogtags. It is used in the War Games Hunter-Gatherers and the unused Bounty Hunter.

Players who pick this entity up are awarded Deathmatch points and see a message in the chat: "N points for picking up X's dogtags", where N is an integer and X the name of the victim. The ConVar mp_dogtag_pickup_rule determines which players are eligible to pick this entity up.

The model consists of a dogtag and a sprite whose color depends on this entity's teamnumber (modulo 32). Its VMT file csgo/models/inventory_items/dogtags/dogtags_lightray.vmt uses the GetTeamNumber and Select material proxies.

  • If the value is 2, which is the Terrorist's team number, the sprite is orange.
  • If the value is 3, which is the Counter-Terrorist's team number, the sprite is blue.
  • Otherwise, the sprite is white.

It can be spawned using ent_create item_dogtags with no team initially. The team and color of all dogtags can be set with ent_fire item_dogtags setteam <number>.

Outputs

Item:

OnPlayerTouch
Fires when the player touches this item. !activator is the player.
OnCacheInteraction
This output fires when the player proves they have "found" this item.
Fires on:
  • Player Touch (whether or not player actually acquires the item).
  • Picked up by +use.
  • Picked up by gravity gun.
  • Punted by gravity gun.