This repository has been archived by the owner on Oct 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.json
63 lines (63 loc) · 1.64 KB
/
rules.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[
{
// match will find entities matching all these key-values
"match":
{
"classname": "monster_barney",
"models": "models/barney2.mdl"
},
// not_match opposite as match, requires the entity to NOT have these key-values
"not_match":
{
"weapons": "1"
},
// have requires the matched entity to have this keys
"have":
[
"body",
"skin"
],
// not opposite as have, requires the entity to not have these keys
"not_have":
[
"spawnflags"
],
// replace will replace all these keyvalues
"replace":
{
"models": "models/mymod/barney.mdl"
},
// rename will rename the key keeping the value
"rename":
{
"body": "bodygroup"
},
// add will add this key-vaue
"add":
{
"weapons": "1"
},
// remove will remove these key-value from this entity
"remove":
[
"skin"
],
// new_entity wil add all these entities for each matched entity
"new_entity":
[
{
"classname": "env_sprite_follow",
"target": "$targetname"
}
]
// Adding a dollar sign ($) means we'll use the original entity's value of the given key
// Example "$origin" means we'll use the origin of the matched entity.
},
{
// This rules will be only applied to these maps.
"maps": [
"c1a0",
"c1a1"
]
}
]