forked from iamsilk/ItemModifier
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathItemModifierConfiguration.cs
More file actions
108 lines (96 loc) · 3.26 KB
/
ItemModifierConfiguration.cs
File metadata and controls
108 lines (96 loc) · 3.26 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
using Rocket.API;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace ItemModifier
{
public class ItemModification
{
[XmlAttribute]
public ushort ID;
#region Bags
[XmlElement(IsNullable = false)]
public byte? Width;
[XmlElement(IsNullable = false)]
public byte? Height;
#endregion
#region Structures/Barricades
[XmlElement(IsNullable = false)]
public ushort? Health;
#endregion
#region Weapons
[XmlElement(IsNullable = false)]
public float? PlayerDamage;
[XmlElement(IsNullable = false)]
public float? PlayerLegMultiplier;
[XmlElement(IsNullable = false)]
public float? PlayerArmMultiplier;
[XmlElement(IsNullable = false)]
public float? PlayerSpineMultiplier;
[XmlElement(IsNullable = false)]
public float? PlayerSkullMultiplier;
[XmlElement(IsNullable = false)]
public float? ZombieDamage;
[XmlElement(IsNullable = false)]
public float? ZombieLegMultiplier;
[XmlElement(IsNullable = false)]
public float? ZombieArmMultiplier;
[XmlElement(IsNullable = false)]
public float? ZombieSpineMultiplier;
[XmlElement(IsNullable = false)]
public float? ZombieSkullMultiplier;
[XmlElement(IsNullable = false)]
public float? AnimalDamage;
[XmlElement(IsNullable = false)]
public float? AnimalLegMultiplier;
[XmlElement(IsNullable = false)]
public float? AnimalSpineMultiplier;
[XmlElement(IsNullable = false)]
public float? AnimalSkullMultiplier;
[XmlElement(IsNullable = false)]
public float? BarricadeDamage;
[XmlElement(IsNullable = false)]
public float? StructureDamage;
[XmlElement(IsNullable = false)]
public float? VehicleDamage;
[XmlElement(IsNullable = false)]
public float? ResourceDamage;
[XmlElement(IsNullable = false)]
public float? ObjectDamage;
[XmlElement(IsNullable = false)]
public bool? Invulnerable;
#endregion
#region Guns
[XmlElement(IsNullable = false)]
public ushort? Caliber;
[XmlElement(IsNullable = false)]
public float? Range;
[XmlElement(IsNullable = false)]
public float? SpreadAim;
[XmlElement(IsNullable = false)]
public float? SpreadHip;
[XmlElement(IsNullable = false)]
public ushort? Muzzle;
[XmlElement(IsNullable = false)]
public ushort? Explosion; // For barricades/structures also
#endregion
#region Barrels
[XmlElement(IsNullable = false)]
public float? BallisticDrop;
[XmlElement(IsNullable = false)]
public bool? Braked;
[XmlElement(IsNullable = false)]
public bool? Silenced;
[XmlElement(IsNullable = false)]
public float? Volume;
#endregion
}
public class ItemModifierConfiguration : IRocketPluginConfiguration
{
[XmlArrayItem(ElementName = "Item")]
public List<ItemModification> Items;
public void LoadDefaults()
{
Items = new List<ItemModification>();
}
}
}