-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path[SPIN] mindmg_override.lua
142 lines (140 loc) · 5.68 KB
/
[SPIN] mindmg_override.lua
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
--MinDamage Key by Ryanchiew with indicator (hold/bind)
--Discord: Ryanchiew#7167
local guiSet = gui.SetValue
local guiGet = gui.GetValue
local togglekey = input.IsButtonDown
local ref = gui.Reference("RAGEBOT");
local tab = gui.Tab(ref,"Extra","MinDamage")
local dmgsettings = gui.Groupbox(tab,"MinDamage by Ryanchiew#7167",16,16,280,300)
local togglekey = gui.Keybox(dmgsettings, "ChangeDmgKey", "Mindamage Key", 0)
local setDmg = gui.Combobox(dmgsettings, "mindmgmode", "Min Damage Mode", "Off", "Toggle", "Hold")
local awpdmg = gui.Groupbox(tab,"Awp Damage Settings",16,190,280,300)
local awpori = gui.Slider(awpdmg, "awpori", "Awp Original Min Damage", 1, 0, 130)
local awpDamage = gui.Slider(awpdmg, "awpDamage", "Awp Min Damage Override", 1, 0, 130)
local scoutdmg = gui.Groupbox(tab,"Scout Damage Settings",310,16,280,300)
local scoutori = gui.Slider(scoutdmg, "scoutori", "Scout Original Min Damage", 1, 0, 130)
local scoutDamage = gui.Slider(scoutdmg, "scoutDamage", "Scout Min Damage Override", 1, 0, 130)
local autodmg = gui.Groupbox(tab,"Auto Damage Settings",310,190,280,300)
local autoori = gui.Slider(autodmg, "autoori", "Auto Original Min Damage", 1, 0, 130)
local autoDamage = gui.Slider(autodmg, "autoDamage", "Auto Min Damage Override", 1, 0, 130)
local position = gui.Groupbox(tab,"Indicators position",16,350,280,300)
local xpos = gui.Slider(position, "xpos", "X Position", 1, 0, 3840)
local ypos = gui.Slider(position, "ypos", "Y Position", 1, 0, 2160)
local Toggle =-1
local pressed = false
function changeMinDamage()
if (setDmg:GetValue()==1) then
if input.IsButtonPressed(togglekey:GetValue()) then
pressed=true;
Toggle = Toggle *-1
elseif (pressed and input.IsButtonReleased(togglekey:GetValue())) then
pressed=false;
if Toggle == 1 then
guiSet("rbot.accuracy.weapon.sniper.mindmg", awpDamage:GetValue())
guiSet("rbot.accuracy.weapon.scout.mindmg", scoutDamage:GetValue())
guiSet("rbot.accuracy.weapon.asniper.mindmg", autoDamage:GetValue())
else
guiSet("rbot.accuracy.weapon.asniper.mindmg", autoori:GetValue())
guiSet("rbot.accuracy.weapon.sniper.mindmg", awpori:GetValue())
guiSet("rbot.accuracy.weapon.scout.mindmg", scoutori:GetValue())
end
end
elseif (setDmg:GetValue()==2) then
if input.IsButtonDown(togglekey:GetValue()) then
guiSet("rbot.accuracy.weapon.sniper.mindmg", awpDamage:GetValue())
guiSet("rbot.accuracy.weapon.scout.mindmg", scoutDamage:GetValue())
guiSet("rbot.accuracy.weapon.asniper.mindmg", autoDamage:GetValue())
else
guiSet("rbot.accuracy.weapon.asniper.mindmg", autoori:GetValue())
guiSet("rbot.accuracy.weapon.sniper.mindmg", awpori:GetValue())
guiSet("rbot.accuracy.weapon.scout.mindmg", scoutori:GetValue())
end
elseif (setDmg:GetValue()==0) then
Toggle = -1
guiSet("rbot.accuracy.weapon.asniper.mindmg", autoori:GetValue())
guiSet("rbot.accuracy.weapon.sniper.mindmg", awpori:GetValue())
guiSet("rbot.accuracy.weapon.scout.mindmg", scoutori:GetValue())
end
end
function Drawtext()
w = xpos:GetValue()
h = ypos:GetValue()
if (setDmg:GetValue()==1) then
if Toggle == 1 then
draw.Color(0, 255, 0, 255);
draw.Text(w, h-60, "Min Damage Mode On (toggle)");
draw.Color(255, 255, 0, 255);
draw.Text(w+90, h-40, awpDamage:GetValue());
draw.Color(255, 255, 0, 255);
draw.Text(w+30, h-40, "awp:");
draw.Color(255, 255, 0, 255);
draw.Text(w+90, h-20, scoutDamage:GetValue());
draw.Color(255, 255, 0, 255);
draw.Text(w+30, h-20, "scout:");
draw.Color(255, 255, 0, 255);
draw.Text(w+90, h, autoDamage:GetValue());
draw.Color(255, 255, 0, 255);
draw.Text(w+30, h, "auto:");
elseif Toggle == -1 then
draw.Color(255, 255, 255, 255);
draw.Text(w, h-60, "Min Damage Mode Off");
draw.Color(255, 255, 255, 255);
draw.Text(w+90, h-20, scoutori:GetValue());
draw.Color(255, 255, 255, 255);
draw.Text(w+90, h-40, awpori:GetValue());
draw.Color(255, 255, 255, 255);
draw.Text(w+90, h, autoori:GetValue());
draw.Color(255, 255, 255, 255);
draw.Text(w+30, h-20, "scout:");
draw.Color(255, 255, 255, 255);
draw.Text(w+30, h-40, "awp:");
draw.Color(255, 255, 255, 255);
draw.Text(w+30, h, "auto:");
end
elseif (setDmg:GetValue()==2) then
if input.IsButtonDown(togglekey:GetValue()) then
draw.Color(0, 255, 0, 255);
draw.Text(w+90, h-40, awpDamage:GetValue());
draw.Color(255, 255, 0, 255);
draw.Text(w+30, h-40, "awp:");
draw.Color(255, 255, 0, 255);
draw.Text(w+90, h-20, scoutDamage:GetValue());
draw.Color(255, 255, 0, 255);
draw.Text(w+30, h-20, "scout:");
draw.Color(255, 255, 0, 255);
draw.Text(w+90, h, autoDamage:GetValue());
draw.Color(255, 255, 0, 255);
draw.Text(w+30, h, "auto:");
else
draw.Color(255, 255, 255, 255);
draw.Text(w+90, h-20, scoutori:GetValue());
draw.Color(255, 255, 255, 255);
draw.Text(w+90, h-40, awpori:GetValue());
draw.Color(255, 255, 255, 255);
draw.Text(w+90, h, autoori:GetValue());
draw.Color(255, 255, 255, 255);
draw.Text(w+30, h-20, "scout:");
draw.Color(255, 255, 255, 255);
draw.Text(w+30, h-40, "awp:");
draw.Color(255, 255, 255, 255);
draw.Text(w+30, h, "auto:");
end
else
draw.Color(255, 255, 255, 255);
draw.Text(w, h-60, "Min Damage Mode Off");
draw.Color(255, 255, 255, 255);
draw.Text(w+90, h-20, scoutori:GetValue());
draw.Color(255, 255, 255, 255);
draw.Text(w+90, h-40, awpori:GetValue());
draw.Color(255, 255, 255, 255);
draw.Text(w+90, h, autoori:GetValue());
draw.Color(255, 255, 255, 255);
draw.Text(w+30, h-20, "scout:");
draw.Color(255, 255, 255, 255);
draw.Text(w+30, h-40, "awp:");
draw.Color(255, 255, 255, 255);
draw.Text(w+30, h, "auto:");
end
end
callbacks.Register("Draw", "Drawtext", Drawtext);
callbacks.Register("Draw", "changeMinDamage", changeMinDamage);