-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathSettingsHandler.cs
More file actions
54 lines (53 loc) · 2 KB
/
Copy pathSettingsHandler.cs
File metadata and controls
54 lines (53 loc) · 2 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AIlimit;
using AILimit;
namespace dvize.AILimit
{
internal class SettingsHandler
{
internal static void HandleMapDistanceChange(string mapName, float newValue)
{
switch (mapName)
{
case "factory4_day":
case "factory4_night":
AILimitComponent.botDistance = AILimitPlugin.factoryDistance.Value;
break;
case "bigmap":
AILimitComponent.botDistance = AILimitPlugin.customsDistance.Value;
break;
case "sandbox":
AILimitComponent.botDistance = AILimitPlugin.groundZeroDistance.Value;
break;
case "interchange":
AILimitComponent.botDistance = AILimitPlugin.interchangeDistance.Value;
break;
case "rezervbase":
AILimitComponent.botDistance = AILimitPlugin.reserveDistance.Value;
break;
case "laboratory":
AILimitComponent.botDistance = AILimitPlugin.laboratoryDistance.Value;
break;
case "lighthouse":
AILimitComponent.botDistance = AILimitPlugin.lighthouseDistance.Value;
break;
case "shoreline":
AILimitComponent.botDistance = AILimitPlugin.shorelineDistance.Value;
break;
case "woods":
AILimitComponent.botDistance = AILimitPlugin.woodsDistance.Value;
break;
case "tarkovstreets":
AILimitComponent.botDistance = AILimitPlugin.tarkovstreetsDistance.Value;
break;
default:
AILimitComponent.botDistance = 200.0f;
break;
}
}
}
}