Skip to content

Commit

Permalink
removed crystalAura commented out
Browse files Browse the repository at this point in the history
  • Loading branch information
Keramis committed Mar 24, 2022
1 parent 59b01aa commit 317b330
Showing 1 changed file with 0 additions and 106 deletions.
106 changes: 0 additions & 106 deletions V.5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1478,112 +1478,6 @@ end)

----------------------------------------------------------------------------------------------------

--[[
menu.divider(mFunFeats, "Crystal Aura")
CA_Radius = 20
CA_Players = false
CA_Blame = true
CA_audible = false
CA_invis = true
CA_delpeds = false
CA_delvehs = false
menuToggleLoop(mFunFeats, "CrystalAura", {"crystalaura"}, "Explodes peds, optionally players, optionally friends, in a radius. Optional invisibility and inaudibility is in settings.", function ()
local tKCount = 1 -- count
local toKill = {} -- table
local ourcoords = getEntityCoords(getLocalPed()) -- our coords
local ourped = getLocalPed() -- our ped (for blame)
--
local pedPointers = entities.get_all_peds_as_pointers()
for i = 1, #pedPointers do
local v3 = entities.get_position(pedPointers[i])
local vdist = MISC.GET_DISTANCE_BETWEEN_COORDS(ourcoords.x, ourcoords.y, ourcoords.z, v3.x, v3.y, v3.z, true)
if vdist <= CA_Radius then
toKill[tKCount] = entities.pointer_to_handle(pedPointers[i])
tKCount = tKCount + 1
end
end
for i = 1, #toKill do
if (not CA_Players and not PED.IS_PED_A_PLAYER(toKill[i])) or (CA_Players and PED.IS_PED_A_PLAYER(toKill[i])) then
if not PED.IS_PED_DEAD_OR_DYING(toKill[i]) then
local veh = PED.GET_VEHICLE_PED_IS_IN(toKill[i], false)
if CA_delvehs and not PED.IS_PED_A_PLAYER(toKill[i]) then
entities.delete_by_handle(veh)
end
local entcoords = getEntityCoords(toKill[i])
if CA_Blame then
SE_add_owned_explosion(ourped, entcoords.x, entcoords.y, entcoords.z, 2, 1, CA_audible, CA_invis, 0)
else
SE_add_explosion(entcoords.x, entcoords.y, entcoords.z, 2, 1, CA_audible, CA_invis, 0, false)
end
end
wait(50)
if PED.IS_PED_DEAD_OR_DYING(toKill[i] and CA_delpeds) then
entities.delete_by_handle(toKill[i])
end
end
end
end)
local CA_settings = menu.list(mFunFeats, "Crystal Aura Settings", {}, "")
menu.slider(CA_settings, "Crystal Aura Radius", {"caradius"}, "Radius for Crystal Aura.", 1, 100, 20, 1, function (value)
CA_Radius = value
end)
menuToggle(CA_settings, "Crystal Aura blames me?", {}, "Have the crystal aura blame you for explosions.", function (toggle)
if toggle then
CA_Blame = true
else
CA_Blame = false
end
end, true)
--COMMENTED OUT UNTIL I CAN FIND A METHOD TO NOT TARGET MYSELF!
--[[menuToggle(CA_settings, "Crystal Aura targets players?", {}, "Enabling targetting players.", function (toggle)
if toggle then
CA_Players = true
else
CA_Players = false
end
end)
menuToggle(CA_settings, "Crystal Aura heard?", {}, "Makes the explosions heard/audible.", function (toggle)
if toggle then
CA_audible = true
else
CA_audible = false
end
end)
menuToggle(CA_settings, "Crystal Aura invisible?", {}, "Makes the explosions invisible.", function (toggle)
if toggle then
CA_invis = true
else
CA_invis = false
end
end, true)
menuToggle(CA_settings, "Delete peds after killing?", {}, "Makes the peds get deleted after they die.", function (toggle)
if toggle then
CA_delpeds = true
else
CA_delpeds = false
end
end)
menuToggle(CA_settings, "Delete cars of peds?", {}, "Makes the peds' cars get delted.", function (toggle)
if toggle then
CA_delvehs = true
else
CA_delvehs = false
end
end)
]]
----------------------------------------------------------------------------------------------------

menu.divider(mFunFeats, "PvP / PvE Helper")
local pvphelp = menu.list(mFunFeats, "PvP / PvE Helper", {"pvphelp"}, "")

Expand Down

0 comments on commit 317b330

Please sign in to comment.