-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSceneDumper.cs
42 lines (34 loc) · 1.18 KB
/
SceneDumper.cs
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
using BrokeProtocol.Entities;
using BrokeProtocolClient.settings;
namespace BrokeProtocolClient.modules.exploit
{
class SceneDumper : Module
{
ActionSetting dumpAll;
ActionSetting dumpWeapons;
public SceneDumper() : base(Categories.Exploit, "Scene dumper", "")
{
dumpAll = new ActionSetting("Dump All", DumpAll);
addSetting(dumpAll);
dumpWeapons = new ActionSetting("Dump Weapons", DumpWeapons);
addSetting(dumpWeapons);
}
private void DumpAll()
{
foreach (var entity in getClient().SceneManager.entityCollection)
{
Log($"{entity.Key}: {entity.Value.name}");
}
}
private void DumpWeapons()
{
foreach (var entity in getClient().SceneManager.entityCollection.Values)
{
var usable = entity as ShUsable;
if (!usable) continue;
if (usable.useDelay == 1f) continue;
Log($"{usable.itemName} {usable.DamageProperty} {usable.Damage} {usable.useDelay}");
}
}
}
}