Skip to content

Commit a423117

Browse files
committed
Add a proper EntWatch config template
1 parent b758c46 commit a423117

3 files changed

Lines changed: 53 additions & 31 deletions

File tree

PackageScript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ for task in MMSPlugin.binaries:
120120
builder.AddCopy(os.path.join('configs', 'zr', 'playerclass.jsonc.example'), zr_folder)
121121
builder.AddCopy(os.path.join('configs', 'zr', 'weapons.cfg.example'), zr_folder)
122122
builder.AddCopy(os.path.join('configs', 'zr', 'hitgroups.cfg.example'), zr_folder)
123-
builder.AddCopy(os.path.join('configs', 'entwatch', 'maps', 'example_config.jsonc'), ew_maps_folder)
123+
builder.AddCopy(os.path.join('configs', 'entwatch', 'maps', 'template.jsonc'), ew_maps_folder)
124124
builder.AddCopy(os.path.join('gamedata', 'cs2fixes.games.txt'), gamedata_folder)
125125

126126
particles_cs2f_folder = builder.AddFolder(os.path.join(packages[sdk_name].sdk_name, 'particles', MMSPlugin.metadata['name']))

configs/entwatch/maps/example_config.jsonc

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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

Comments
 (0)