1+ [
2+ {
3+ "name" : " Item Name" , // Name of item that appears in chat
4+ "shortname" : " Short Name" , // Name of item that appears on the HUD
5+ "hammerid" : " " , // Hammerid of the weapon entity
6+ "message" : true , // Whether to show pickup/drop messages in chat
7+ "ui" : true , // Whether to show this item on the HUD
8+ "transfer" : true , // Whether to allow this item to be transferred (this auto detects false for knife items)
9+ "color" : " " , // Color of the item for chat messages (see list of colors)
10+ "triggers" : [" " ], // Array of hammerids of any triggers that this item is associated with
11+ "templated" : true , // Whether the entity of this handler is templated with the item weapon, (auto detected if not specified)
12+ "handlers" : [
13+ {
14+ "name" : " Handler" , // extra name to show in chat when used e.g. XXX has used Item Name (Handler)
15+ "type" : " button" , // "button",
16+ // "counterdown" - counter stops OnHitMin
17+ // "counterup" - counter stops OnHitMax
18+ // (anything else is ignored)
19+ "hammerid" : " " , // hammerid of the entity
20+ "event" : " OnPressed" , // Name of the output, counterup/down types always force "OutValue"
21+ "mode" : 2 , // Mode of the handler
22+ // 0/1 = None
23+ // 2 = Cooldown, 3 = MaxUses (cooldown between each)
24+ // 4 = CooldownAfterUses, 5 = CounterValue
25+ "offset" : [5 ,-9 ], // ADDS the specified offset to counter values,
26+ // First number is counter value, Second is counter max
27+ "cooldown" : 60 , // Cooldown duration if mode = 2,3,4
28+ "maxuses" : 0 , // Maxuses if mode = 3,4
29+ "message" : true , // Whether to show when this is used in chat
30+ "ui" : true , // Whether to track this handler on the HUD
31+ "templated" : true // Whether the entity of this handler is templated with the item weapon,
32+ } // (this will attempt to auto detect if not specified)
33+ ]
34+ }
35+ ]
36+
37+ // LIST OF COLOR NAMES (grouped if they are the same)
38+ // white, default
39+ // darkred
40+ // team
41+ // green
42+ // lightgreen
43+ // olive
44+ // red
45+ // gray, grey
46+ // yellow
47+ // silver
48+ // blue
49+ // darkblue
50+ // purple, pink
51+ // red2
52+ // orange, gold
0 commit comments