Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local arrow_font1 = draw.CreateFont("Ultra Fresh - Demo", 18, 750)
- local Others_functions_WINDOW = gui.Window( "wnd_luatest", "others functions.", 5, 5, 875, 600 );
- local before_autobuy_group = gui.Groupbox( Others_functions_WINDOW, "fake lag extra.", 215+15, 15, 200, 150 );
- local before_autobuy_group2 = gui.Groupbox( Others_functions_WINDOW, "fake lag complete.", 215+15, 15+150+15, 200, 367 );
- local before_fake_lag_extra = gui.Groupbox( Others_functions_WINDOW, "other func.", 215+15+215 , 15, 200, 250 );
- local before_extra_func = gui.Groupbox( Others_functions_WINDOW, "manual func.", 215+15+215+215, 15, 200, 250 );
- local befor_Cheaking = gui.Groupbox( Others_functions_WINDOW, "other func.", 215+215+15+215, 15+16+250, 200, 265 );
- -----AUTO BUY------
- local M_Ref1 = gui.Reference("SETTINGS", "Miscellaneous")
- local Window_LUA = gui.Checkbox( M_Ref1, "window_auto_buy", "Auto buy window", 0 );
- local Autobuy_Groupbox = gui.Groupbox( Others_functions_WINDOW, "Auto-buy", 15, 15, 200, 367 );
- local Autobuy_Enable = gui.Checkbox( Autobuy_Groupbox, "lua_autobuy_enable", "Enable", 0 );
- local Autobuy_PrimaryWeapon = gui.Combobox( Autobuy_Groupbox, "lua_autobuy_primaryweapon", "Primary Weapon", "Off", "Auto", "Scout", "AWP", "Rifle", "Famas | Galil", "AUG | SG 553", "MAC-10 | MP9", "MP7 | MP5-SD", "UMP-45", "P90", "PP-Bizon", "Nova", "XM1014", "Sawed-Off | MAG-7", "M249", "Negev" );
- local Autobuy_SecondaryWeapon = gui.Combobox( Autobuy_Groupbox, "lua_autobuy_secondaryweapon", "Secondary Weapon", "Off", "Dual Berettas", "P250", "CZ75-Auto | Tec-9 | Five-Seven", "Desert Eagle | R8 Revolver" );
- local Autobuy_Armor = gui.Combobox( Autobuy_Groupbox, "lua_autobuy_armor", "Armor", "Off", "Kevlar", "Kevlar + Helmet" );
- local Autobuy_Defuser = gui.Checkbox( Autobuy_Groupbox, "lua_autobuy_defuser", "Defuser", 0 );
- local Autobuy_Taser = gui.Checkbox( Autobuy_Groupbox, "lua_autobuy_taser", "Taser", 0 );
- local Autobuy_HEGrenade = gui.Checkbox( Autobuy_Groupbox, "lua_autobuy_hegrenade", "HE Grenade", 0 );
- local Autobuy_Smoke = gui.Checkbox( Autobuy_Groupbox, "lua_autobuy_smoke", "Smoke", 0 );
- local Autobuy_Molotov = gui.Checkbox( Autobuy_Groupbox, "lua_autobuy_molotov", "Molotov", 0 );
- local Autobuy_Flashbang = gui.Checkbox( Autobuy_Groupbox, "lua_autobuy_flashbang", "Flashbang", 0 );
- local Autobuy_Decoy = gui.Checkbox( Autobuy_Groupbox, "lua_autobuy_decoy", "Decoy", 0 );
- local Money = 0
- local function LocalPlayerMoney()
- if Autobuy_Enable:GetValue() then
- if entities.GetLocalPlayer() ~= nil then
- Money = entities.GetLocalPlayer():GetProp( "m_iAccount" )
- end
- end
- end
- local function Autobuy( Event )
- local PrimaryWeapon = Autobuy_PrimaryWeapon:GetValue()
- local SecondaryWeapon = Autobuy_SecondaryWeapon:GetValue()
- local Armor = Autobuy_Armor:GetValue()
- if Autobuy_Enable:GetValue() then
- if Event:GetName() ~= "player_spawn" then
- return;
- end
- local INT_UID = Event:GetInt( "userid" );
- local PlayerIndex = client.GetPlayerIndexByUserID( INT_UID );
- if client.GetLocalPlayerIndex() == PlayerIndex then
- ME = true
- else
- ME = false
- end
- if ME and Money == 0 then
- -- Primary Weapon
- if PrimaryWeapon == 1 then client.Command( "buy scar20", true ); -- Auto
- elseif PrimaryWeapon == 2 then client.Command( "buy ssg08", true ); -- Scout
- elseif PrimaryWeapon == 3 then client.Command( "buy awp", true ); -- AWP
- elseif PrimaryWeapon == 4 then client.Command( "buy ak47", true ); -- Rifle
- elseif PrimaryWeapon == 5 then client.Command( "buy famas", true ); -- Famas | Galil
- elseif PrimaryWeapon == 6 then client.Command( "buy aug", true ); -- AUG | SG 553
- elseif PrimaryWeapon == 7 then client.Command( "buy mac10", true ); -- MAC-10 | MP9
- elseif PrimaryWeapon == 8 then client.Command( "buy mp7", true ); -- MP7 | MP5-SD
- elseif PrimaryWeapon == 9 then client.Command( "buy ump45", true ); -- UMP-45
- elseif PrimaryWeapon == 10 then client.Command( "buy p90", true ); -- P90
- elseif PrimaryWeapon == 11 then client.Command( "buy bizon", true ); -- PP-Bizon
- elseif PrimaryWeapon == 12 then client.Command( "buy nova", true ); -- Nova
- elseif PrimaryWeapon == 13 then client.Command( "buy xm1014", true ); -- XM1014
- elseif PrimaryWeapon == 14 then client.Command( "buy mag7", true ); -- Sawed-Off | MAG-7
- elseif PrimaryWeapon == 15 then client.Command( "buy m249", true ); -- M249
- elseif PrimaryWeapon == 16 then client.Command( "buy negev", true ); -- Negev
- end
- -- Secondary Weapon
- if SecondaryWeapon == 1 then client.Command( "buy elite", true ); -- Dual Berettas
- elseif SecondaryWeapon == 2 then client.Command( "buy p250", true ); -- P250
- elseif SecondaryWeapon == 3 then client.Command( "buy tec9", true ); -- CZ75-Auto | Tec-9 | Five-Seven
- elseif SecondaryWeapon == 4 then client.Command( "buy deagle", true ); -- Desert Eagle | R8 Revolver
- end
- -- Taser
- if Autobuy_Taser:GetValue() then
- client.Command( "buy taser", true );
- end
- elseif ME and Money <= 800 then
- -- Taser
- if Autobuy_Taser:GetValue() then
- client.Command( "buy taser", true );
- end
- -- Secondary Weapon
- if SecondaryWeapon == 1 then client.Command( "buy elite", true ); -- Dual Berettas
- elseif SecondaryWeapon == 2 then client.Command( "buy p250", true ); -- P250
- elseif SecondaryWeapon == 3 then client.Command( "buy tec9", true ); -- CZ75-Auto | Tec-9 | Five-Seven
- elseif SecondaryWeapon == 4 then client.Command( "buy deagle", true ); -- Desert Eagle | R8 Revolver
- end
- elseif ME and Money > 800 then
- -- Primary Weapon
- if PrimaryWeapon == 1 then client.Command( "buy scar20", true ); -- Auto
- elseif PrimaryWeapon == 2 then client.Command( "buy ssg08", true ); -- Scout
- elseif PrimaryWeapon == 3 then client.Command( "buy awp", true ); -- AWP
- elseif PrimaryWeapon == 4 then client.Command( "buy ak47", true ); -- Rifle
- elseif PrimaryWeapon == 5 then client.Command( "buy famas", true ); -- Famas | Galil
- elseif PrimaryWeapon == 6 then client.Command( "buy aug", true ); -- AUG | SG 553
- elseif PrimaryWeapon == 7 then client.Command( "buy mac10", true ); -- MAC-10 | MP9
- elseif PrimaryWeapon == 8 then client.Command( "buy mp7", true ); -- MP7 | MP5-SD
- elseif PrimaryWeapon == 9 then client.Command( "buy ump45", true ); -- UMP-45
- elseif PrimaryWeapon == 10 then client.Command( "buy p90", true ); -- P90
- elseif PrimaryWeapon == 11 then client.Command( "buy bizon", true ); -- PP-Bizon
- elseif PrimaryWeapon == 12 then client.Command( "buy nova", true ); -- Nova
- elseif PrimaryWeapon == 13 then client.Command( "buy xm1014", true ); -- XM1014
- elseif PrimaryWeapon == 14 then client.Command( "buy mag7", true ); -- Sawed-Off | MAG-7
- elseif PrimaryWeapon == 15 then client.Command( "buy m249", true ); -- M249
- elseif PrimaryWeapon == 16 then client.Command( "buy negev", true ); -- Negev
- end
- -- Secondary Weapon
- if SecondaryWeapon == 1 then client.Command( "buy elite", true ); -- Dual Berettas
- elseif SecondaryWeapon == 2 then client.Command( "buy p250", true ); -- P250
- elseif SecondaryWeapon == 3 then client.Command( "buy tec9", true ); -- CZ75-Auto | Tec-9 | Five-Seven
- elseif SecondaryWeapon == 4 then client.Command( "buy deagle", true ); -- Desert Eagle | R8 Revolver
- end
- -- Armor
- if Armor == 1 then
- client.Command( "buy vest", true );
- elseif Armor == 2 then
- client.Command( "buy vesthelm", true );
- end
- -- Defuser
- if Autobuy_Defuser:GetValue() then
- client.Command( "buy defuser", true );
- end
- -- Taser
- if Autobuy_Taser:GetValue() then
- client.Command( "buy taser", true );
- end
- -- HE Grenade
- if Autobuy_HEGrenade:GetValue() then
- client.Command( "buy hegrenade", true );
- end
- -- Smoke
- if Autobuy_Smoke:GetValue() then
- client.Command( "buy smokegrenade", true );
- end
- -- Molotov
- if Autobuy_Molotov:GetValue() then
- client.Command( "buy molotov", true );
- end
- -- Flashbang
- if Autobuy_Flashbang:GetValue() then
- client.Command( "buy flashbang", true );
- end
- -- Decoy
- if Autobuy_Decoy:GetValue() then
- client.Command( "buy decoy", true );
- end
- end
- end
- end
- local function ShowWindow()
- if Window_LUA:GetValue() then Others_functions_WINDOW:SetActive(1); else Others_functions_WINDOW:SetActive(0); end
- end
- client.AllowListener( "player_spawn" )
- callbacks.Register( "Draw", "Show Window", ShowWindow )
- callbacks.Register( "Draw", "Local Player Money", LocalPlayerMoney )
- callbacks.Register( "FireGameEvent", "Autobuy", Autobuy )
- -- Backtrack Lines!--
- local external_func_pod_autobuy = gui.Groupbox( Others_functions_WINDOW, "external func.", 15, 15+16+367, 200, 150 );
- local BacktrackLinesEnable = gui.Checkbox( external_func_pod_autobuy, "backtrack_lines", "Backtrack lines", 0 );
- -- Configuration --
- local RainbowTrail = true; -- If this is set to false, "clr_chams_historyticks" will be used instead
- local ExpiredTick_Color = {100, 100, 100, 255}; -- The color of the ticks that aren't valid anymore
- local Legitbot_ThroughWalls = false; -- By default the line isn't visible through walls when using the Legitbot backtrack
- local DrawDots = 0; -- Using a value greater than 0 will draw boxes instead of lines
- -------------------
- local Players = {};
- local lastPos = {nil, nil};
- RunScript("Helper_For_Backtrack_Lines.lua");
- local function EventBackTrackLines(GameEvent)
- if GameEvent:GetName() == "round_start" or GameEvent:GetName() == "round_prestart" then
- Players = {};
- end
- end
- local function DrawingBackTrackLines()
- LocalPlayer = entities.GetLocalPlayer();
- if BacktrackLinesEnable:GetValue() then
- for index, Player in pairs(entities.FindByClass("CCSPlayer")) do
- -- Don't mess with these unless you know what you're doing
- local Backtrack = false;
- local FriendlyFire = false;
- local FakeLatency = 0;
- local Legitbot = false;
- if gui.GetValue("rbot_positionadjustment") and gui.GetValue("rbot_active") then
- Backtrack = true;
- elseif gui.GetValue("lbot_positionadjustment") and gui.GetValue("lbot_active") then
- Backtrack = true;
- Legitbot = true;
- end
- if Backtrack then
- if (gui.GetValue("rbot_team") and gui.GetValue("rbot_active")) or
- (gui.GetValue("lbot_team") and gui.GetValue("lbot_active")) then
- FriendlyFire = true;
- end
- if gui.GetValue("msc_active") and gui.GetValue("msc_fakelatency_enable") then
- FakeLatency = gui.GetValue("msc_fakelatency_amount");
- end
- if Player:GetIndex() ~= LocalPlayer:GetIndex() and
- (LocalPlayer:GetTeamNumber() ~= Player:GetTeamNumber() or FriendlyFire) and
- Player:IsAlive() then
- lastTick = {nil, nil};
- if Players[Player:GetIndex()] == nil then
- Players[Player:GetIndex()] = {};
- end
- table.insert(Players[Player:GetIndex()], {{Player:GetHitboxPosition("HITGROUP_HEAD")}, globals.RealTime()});
- for indexHistory, valueHistory in pairs(Players[Player:GetIndex()]) do
- if valueHistory[2] + 0.2 + FakeLatency < globals.RealTime() then
- table.remove(Players[Player:GetIndex()], indexHistory);
- else
- local VisibilityBlock = false;
- local TickX, TickY = client.WorldToScreen(valueHistory[1][1], valueHistory[1][2], valueHistory[1][3]);
- local LocalPlayerHead = {LocalPlayer:GetHitboxPosition("HITGROUP_HEAD")};
- if Legitbot and Legitbot_ThroughWalls == false then
- if engine.TraceLine( valueHistory[1][1], valueHistory[1][2], valueHistory[1][3],
- LocalPlayerHead[1], LocalPlayerHead[2], LocalPlayerHead[3], 1) == 1 then
- VisibilityBlock = true;
- end
- end
- if TickX ~= nil and TickY ~= nil and not VisibilityBlock then
- local TickColor = {};
- if valueHistory[2] - 0.2 <= globals.RealTime() - FakeLatency then
- if RainbowTrail then
- TickColor = EssentialsNP.Drawing.Hue(valueHistory[2]);
- TickColor[4] = 255;
- else
- TickColor = {gui.GetValue("clr_chams_historyticks")};
- end
- else
- TickColor = ExpiredTick_Color;
- end
- draw.Color(TickColor[1], TickColor[2], TickColor[3], TickColor[4]);
- if DrawDots >= 1 then
- draw.FilledRect(TickX - DrawDots, TickY - DrawDots, TickX + DrawDots, TickY + DrawDots);
- else
- if lastTick[1] ~= nil and lastTick[2] ~= nil then
- draw.Line(TickX, TickY, lastTick[1], lastTick[2]);
- end
- lastTick = {TickX, TickY};
- end
- end
- end
- end
- end
- end
- end
- end
- end
- -- Backtrack Lines by Nyanpasu!
- client.AllowListener("round_start");
- client.AllowListener("round_prestart");
- callbacks.Register("Draw", "backtrackable_line_draw", DrawingBackTrackLines);
- callbacks.Register("FireGameEvent", "backtrackable_line_event", EventBackTrackLines);
- --ChickenDeathSay
- local Chicken_DeathSay = gui.Checkbox( external_func_pod_autobuy, "lua_chicken_deathsay", "Chicken Death Say", 0 );
- local function ChickenDeathSay( Event, Entity )
- if Chicken_DeathSay:GetValue() then
- if Event:GetName() ~= nil then
- local UID = Event:GetInt( "userid" );
- local Killer_INT = Event:GetInt( "attacker" );
- local Killer_Name = client.GetPlayerNameByUserID( Killer_INT );
- local Weapon = Event:GetString( "weapon" );
- local Locate = entities.FindByClass( "CBasePlayer" );
- for i = 1, #Locate do
- local Location = Locate[i]:GetPropString( "m_szLastPlaceName" );
- if Location == nil then
- Location = "Unknown";
- end
- chatsay = string.format( "%s murdered a chicken with the %s at %s!", Killer_Name, Weapon, Location )
- if ( Event:GetName() == "other_death" ) then
- client.ChatSay(chatsay)
- end
- end
- end
- end
- end
- client.AllowListener( "other_death" )
- callbacks.Register( "FireGameEvent", "Chicken Death Say", ChickenDeathSay )
- --rofl_Cheaking
- local rofl_Cheaking = gui.Groupbox( Others_functions_WINDOW, "Chicken func.", 215+15+215, 15+16+250, 200, 265 );
- local lua_EnableChicken = gui.Checkbox( rofl_Cheaking, "lua_EnableChicken", "Enable", 1 );
- local lua_ChickenScale = gui.Slider( rofl_Cheaking, "lua_ChickenScale", "Chicken Scale", 1.0, 0.25, 4.0 );
- local lua_ChickenModel = gui.Combobox( rofl_Cheaking, "lua_ChickenModel", "Holiday Theme","Default Chicken", "Party Chicken","Ghost Chicken","Festive Chicken","Easter Chicken","Jack-o-Chicken");
- local lua_ChickenSkin = gui.Combobox( rofl_Cheaking, "lua_ChickenSkin", "Chicken Skin","Default", "Other");
- local lua_EnableParty = gui.Checkbox( rofl_Cheaking, "lua_EnableParty", "sv_partymode 1", 0 );
- local lua_ChickenAA = gui.Checkbox( rofl_Cheaking, "lua_ChickenAA", "ChickenAA", 0 );
- local function ChickenShit()
- chickens = entities.FindByClass("CChicken")
- if lua_EnableChicken:GetValue() then
- if lua_ChickenModel:GetValue() == 0 then
- for i=1, #chickens do
- local chicken = chickens[i]
- if chicken:GetProp("m_nBody") ~= 0 then
- chicken:SetProp("m_nBody", 0);
- else
- end
- end
- elseif lua_ChickenModel:GetValue() == 1 then
- for i=1, #chickens do
- local chicken = chickens[i]
- if chicken:GetProp("m_nBody") ~= 1 then
- chicken:SetProp("m_nBody", 1);
- else
- end
- end
- elseif lua_ChickenModel:GetValue() == 2 then
- for i=1, #chickens do
- local chicken = chickens[i]
- if chicken:GetProp("m_nBody") ~= 2 then
- chicken:SetProp("m_nBody", 2);
- else
- end
- end
- elseif lua_ChickenModel:GetValue() == 3 then
- for i=1, #chickens do
- local chicken = chickens[i]
- if chicken:GetProp("m_nBody") ~= 3 then
- chicken:SetProp("m_nBody", 3);
- else
- end
- end
- elseif lua_ChickenModel:GetValue() == 4 then
- for i=1, #chickens do
- local chicken = chickens[i]
- if chicken:GetProp("m_nBody") ~= 4 then
- chicken:SetProp("m_nBody", 4);
- else
- end
- end
- elseif lua_ChickenModel:GetValue() == 5 then
- for i=1, #chickens do
- local chicken = chickens[i]
- if chicken:GetProp("m_nBody") ~= 5 then
- chicken:SetProp("m_nBody", 5);
- else
- end
- end
- else
- end
- if lua_ChickenSkin:GetValue() == 0 then
- for i=1, #chickens do
- local chicken = chickens[i]
- if chicken:GetProp("m_nSkin") ~= 0 then
- chicken:SetProp("m_nSkin", 0);
- else
- end
- end
- elseif lua_ChickenSkin:GetValue() == 1 then
- for i=1, #chickens do
- local chicken = chickens[i]
- if chicken:GetProp("m_nSkin") ~= 1 then
- chicken:SetProp("m_nSkin", 1);
- else
- end
- end
- else
- end
- for i=1, #chickens do
- local chicken = chickens[i]
- if chicken:GetProp("m_flModelScale") ~= lua_ChickenScale:GetValue() then
- chicken:SetProp("m_flModelScale", lua_ChickenScale:GetValue());
- else
- end
- end
- else
- for i=1, #chickens do
- local chicken = chickens[i]
- if chicken:GetProp("m_nBody") ~= 0 then
- chicken:SetProp("m_nBody", 0);
- else
- end
- if chicken:GetProp("m_flModelScale") ~= 1.0 then
- chicken:SetProp("m_flModelScale", 1.0);
- else
- end
- if chicken:GetProp("m_nSkin") ~= 0 then
- chicken:SetProp("m_nSkin", 0);
- else
- end
- end
- end
- if lua_EnableParty:GetValue() then
- if client.GetConVar("sv_party_mode") ~= 1 then
- client.SetConVar("sv_party_mode", 1, true)
- else
- end
- else
- if client.GetConVar("sv_party_mode") ~= 0 then
- client.SetConVar("sv_party_mode", 0, true)
- else
- end
- end
- if lua_ChickenAA:GetValue() then
- for i=1, #chickens do
- local chicken = chickens[i]
- chicken:SetProp("m_nSequence", -509);
- end
- else
- end
- end
- callbacks.Register( "Draw", "ChickenShit", ChickenShit );
- --damag say
- local DamageSay = gui.Checkbox( external_func_pod_autobuy, "lua_damagesay", "Damage Say", 0 );
- hitPlayerName = "";
- hitDmg = "";
- hitSpot = "";
- hitHealthRemaining = "";
- local hurt_time = 0;
- local alpha = 0;
- local eventArray = {};
- eventMsg = "";
- local function HitGroup( INT_HITGROUP )
- if INT_HITGROUP == 0 then
- return "body";
- elseif INT_HITGROUP == 1 then
- return "head";
- elseif INT_HITGROUP == 2 then
- return "chest";
- elseif INT_HITGROUP == 3 then
- return "stomach";
- elseif INT_HITGROUP == 4 then
- return "left arm";
- elseif INT_HITGROUP == 5 then
- return "right arm";
- elseif INT_HITGROUP == 6 then
- return "left leg";
- elseif INT_HITGROUP == 7 then
- return "right leg";
- elseif INT_HITGROUP == 10 then
- return "body";
- end
- end
- local function EventLogger( Event, Entity )
- if DamageSay:GetValue() then
- if ( Event:GetName() == 'player_hurt' ) then
- local ME = client.GetLocalPlayerIndex();
- local INT_UID = Event:GetInt( 'userid' );
- local INT_ATTACKER = Event:GetInt( 'attacker' );
- local INT_DMG = Event:GetString( 'dmg_health' );
- local INT_HEALTH = Event:GetString( 'health' );
- local INT_HITGROUP = Event:GetInt( 'hitgroup' );
- local INDEX_ATTACKER = client.GetPlayerIndexByUserID( INT_ATTACKER );
- local INDEX_VICTIM = client.GetPlayerIndexByUserID( INT_UID );
- local NAME_Victim = client.GetPlayerNameByUserID( INT_UID );
- if ( INDEX_ATTACKER == ME and INDEX_Victim ~= ME ) then
- hitPlayerName = NAME_Victim;
- hitDmg = INT_DMG;
- hitSpot = INT_HITGROUP;
- hitHealthRemaining = INT_HEALTH;
- hurt_time = globals.RealTime();
- eventMsg = string.format( "Hit %s in the %s for %s damage (%s health remaining)\n", hitPlayerName, HitGroup(hitSpot), hitDmg, hitHealthRemaining);
- print(eventMsg)
- table.insert(eventArray, eventMsg);
- end
- end
- end
- end
- local function DrawLogs()
- if DamageSay:GetValue() then
- local screenCenterX, screenCenterY = draw.GetScreenSize();
- local step = 255 / 4.0 * globals.FrameTime()
- if hurt_time + 5.0 > globals.RealTime() then
- alpha = 255
- else
- alpha = alpha - step
- end
- local myfragcounter = 0;
- for i,y in ipairs(eventArray) do
- if y ~= nil then
- draw.Color( 255, 255, 255, alpha)
- if (alpha > 0 ) then
- draw.Text( 5, 5 + myfragcounter * 10, y );
- myfragcounter = myfragcounter + 1;
- end
- end
- end
- if ( alpha < 0 ) then
- table.remove( eventArray, i );
- end
- end
- end
- client.AllowListener( 'player_hurt' );
- callbacks.Register( 'Draw', 'DrawLogs', DrawLogs );
- callbacks.Register( 'FireGameEvent', 'EventsLogger', EventLogger );
- --DEAGLE FLIP
- --[[
- deagle flip
- purpose: to look like trailer-park cheat
- ]]
- -- general script utilities
- local Deagle_flip = gui.Checkbox( external_func_pod_autobuy, "lua_deagle_flip", "Deagle flip", 0 );
- local uid_to_idx = client.GetPlayerIndexByUserID;
- local get_local_player = client.GetLocalPlayerIndex;
- -- global variables
- local in_action;
- local equipped;
- -- weapon_fire event listener
- local function on_weapon_fire( _event )
- if ( _event:GetName( ) ~= 'weapon_fire' ) then
- return;
- end
- if (gui.GetValue("msc_fakelatency_enable")) then
- return;
- end
- local _local = get_local_player( );
- local _id = _event:GetInt('userid');
- if ( _local == uid_to_idx( _id ) ) then
- local _weapon = _event:GetString( 'weapon' );
- if ( _weapon == 'weapon_deagle' ) then
- client.Command( 'slot3', true )
- flip = true;
- end
- end
- end
- client.AllowListener( 'weapon_fire' );
- callbacks.Register( 'FireGameEvent', 'on_weapon_fire', on_weapon_fire );
- local function on_item_equip( _event )
- if ( _event:GetName( ) ~= 'item_equip' ) then
- return;
- end
- local _local = get_local_player( );
- local _id = _event:GetInt( 'userid' );
- local _item = _event:GetString( 'item' );
- if ( _local == uid_to_idx( _id ) ) then
- equipped = _item;
- end
- end
- callbacks.Register( 'FireGameEvent', 'on_item_equip', on_item_equip );
- -- ghetto function for createmove because using client.Command twice in a listener is a no-no apparently
- function reset_tick( _cmd )
- if Deagle_flip:GetValue() then
- if ( flip ) then
- if ( equipped ~= 'deagle' ) then
- client.Command( "slot2", true )
- flip = false;
- end
- end
- end
- end
- callbacks.Register( 'CreateMove', 'reset_tick', reset_tick );
- --FakelagOnKnife
- local SetValue = gui.SetValue;
- local FAKELAG_ON_KNIFE = gui.Checkbox( external_func_pod_autobuy, "lua_fakelagonknife", "Disable Fakelag On Knife", 0 );
- local function FakelagOnKnife( Event )
- if FAKELAG_ON_KNIFE:GetValue() then
- if ( Event:GetName() ~= "item_equip" ) then
- return;
- end
- local ME = client.GetLocalPlayerIndex();
- local INT_UID = Event:GetInt( "userid" );
- local PlayerIndex = client.GetPlayerIndexByUserID( INT_UID );
- local WepType = Event:GetInt( "weptype" );
- local Item = Event:GetString( "item" );
- if ( ME == PlayerIndex ) then
- if ( WepType == 0 ) then
- SetValue( "msc_fakelag_enable", false );
- else
- SetValue( "msc_fakelag_enable", true );
- end
- end
- end
- end
- callbacks.Register( "FireGameEvent", "Disable Fakelag On Knife", FakelagOnKnife );
- local DisablePostProcessing = gui.Checkbox( before_fake_lag_extra, "lua_disable_mat_postprocess", "Remove post process", 0 );
- local c_reg = callbacks.Register
- local c_var = client.SetConVar
- function PostProcess()
- if DisablePostProcessing:GetValue() then
- client.SetConVar( "mat_postprocess_enable", 0, true );
- else
- client.SetConVar( "mat_postprocess_enable", 1, true );
- end
- end
- c_reg("Draw", "PostProcess", PostProcess)
- local ping_spike_color_indicators = gui.Checkbox( before_fake_lag_extra, "lua_ping_spike_color_indicators", "Ping spike indicators", 0 );
- local function DrawPING()
- local w, h = draw.GetScreenSize();
- if entities.GetPlayerResources() ~= nil then
- PING = entities.GetPlayerResources():GetPropInt( "m_iPing", client.GetLocalPlayerIndex() );
- DrawPingColor();
- draw.Text( 30, h - 443, PING );
- else
- -- draw.Color( 255, 255, 255, 255 );
- --draw.Text( 30, h - 443, "0" );
- end
- if gui.GetValue("msc_fakelatency_enable") then
- draw.Color( 0, 255, 0, 255 );
- else
- draw.Color( 255, 255, 255, 255 );
- end
- if ping_spike_color_indicators:GetValue() then
- draw.SetFont(arrow_font)
- draw.Text( 2, h - 443, "PING" )
- end
- end
- function DrawPingColor()
- if ( PING <= 50 ) then
- draw.Color(0, 255, 0, 255); -- Green
- elseif ( PING <= 100 ) then
- draw.Color( 50, 255, 0, 255 );
- elseif ( PING <= 200 ) then
- draw.Color( 100, 255, 0, 255 );
- elseif ( PING <= 300 ) then
- draw.Color( 150, 255, 0, 255 );
- elseif ( PING <= 400 ) then
- draw.Color( 200, 255, 0, 255 );
- elseif ( PING <= 500 ) then
- draw.Color( 255, 255, 0, 255 ); -- Orange
- elseif ( PING <= 600 ) then
- draw.Color( 255, 200, 0, 255 );
- elseif ( PING <= 700 ) then
- draw.Color( 255, 150, 0, 255 );
- elseif ( PING <= 800 ) then
- draw.Color( 255, 100, 0, 255 );
- elseif ( PING <= 900 ) then
- draw.Color( 255, 50, 0, 255 );
- else
- draw.Color( 255, 0, 0, 255 ); -- Red
- end
- end
- callbacks.Register( "Draw", "DrawPING", DrawPING )
- local drawin_enigame_radar = gui.Checkbox( before_fake_lag_extra, "lua_drawin_enigame_radar", "Enigame radar", 0 );
- local function drawing_enigame_radar()
- for index, Player in pairs(entities.FindByClass("CCSPlayer")) do
- if drawin_enigame_radar:GetValue() then
- Player:SetProp("m_bSpotted", 1);
- end
- end
- end
- -- Engine Radar by Nyanpasu!
- callbacks.Register("Draw", "engine_radar_draw", drawing_enigame_radar);
- local FAKELAG_EXTRA = gui.Checkbox( before_autobuy_group, "lua_fakelag_extra_enable", "Enable", 0 );
- local FAKELAG_ON_KNIFE = gui.Checkbox( before_autobuy_group, "lua_fakelag_knife", "Disable On Knife", 0 );
- local FAKELAG_ON_TASER = gui.Checkbox( before_autobuy_group, "lua_fakelag_taser", "Disable On Taser", 0 );
- local FAKELAG_ON_GRENADE = gui.Checkbox( before_autobuy_group, "lua_fakelag_grenade", "Disable On Grenade", 0 );
- local FAKELAG_ON_PISTOL = gui.Checkbox( before_autobuy_group, "lua_fakelag_pistol", "Disable On Pistol", 0 );
- local FAKELAG_ON_REVOLVER = gui.Checkbox( before_autobuy_group, "lua_fakelag_revolver", "Disable On R8/Deagle", 0 );
- local FAKELAG_ON_PING = gui.Checkbox( before_autobuy_group, "lua_fakelag_ping", "Disable Fakelag On Ping", 0 )
- local FAKELAG_ON_PING_AMOUNT = gui.Slider( before_autobuy_group, "lua_fakelag_ping_amount", "Amount", 120, 0, 1000 )
- local FAKELAG_SMART_MODE = gui.Checkbox( before_autobuy_group2, "lua_fakelag_smartmode_enable", "Enable", 0 );
- local FAKELAG_SMART_MODE_FACTOR = gui.Checkbox( before_autobuy_group2, "lua_fakelag_value", "Smart Mode Factor", 0 );
- local FAKELAG_SMART_MODE_STANDING = gui.Combobox( before_autobuy_group2, "lua_fakelag_standing", "While Standing", "Off", "Factor", "Switch", "Adaptive", "Random", "Rapid Peek" );
- local FAKELAG_SMART_MODE_STANDING_FACTOR = gui.Slider( before_autobuy_group2, "lua_fakelag_standing_factor", "Factor", 15, 1, 15 );
- local FAKELAG_SMART_MODE_MOVING = gui.Combobox( before_autobuy_group2, "lua_fakelag_moving", "While Moving", "Off", "Factor", "Switch", "Adaptive", "Random", "Peek", "Rapid Peek" );
- local FAKELAG_SMART_MODE_MOVING_FACTOR = gui.Slider( before_autobuy_group2, "lua_fakelag_moving_factor", "Factor", 15, 1, 15 );
- local FAKELAG_SMART_MODE_INAIR = gui.Combobox( before_autobuy_group2, "lua_fakelag_inair", "While In Air", "Off", "Factor", "Switch", "Adaptive", "Random", "Peek", "Rapid Peek" );
- local FAKELAG_SMART_MODE_INAIR_FACTOR = gui.Slider( before_autobuy_group2, "lua_fakelag_inair_factor", "Factor", 15, 1, 15 );
- local Ping = 0
- local function FakelagExtra( Event )
- if FAKELAG_EXTRA:GetValue() then
- if ( Event:GetName() ~= "item_equip" ) then
- return;
- end
- local ME = client.GetLocalPlayerIndex();
- local INT_UID = Event:GetInt( "userid" );
- local PlayerIndex = client.GetPlayerIndexByUserID( INT_UID );
- local WepType = Event:GetInt( "weptype" );
- local ITEM = Event:GetString( "item" );
- if ME == PlayerIndex then
- if WepType == 0 then
- Knife = true
- else
- Knife = false
- end
- if WepType == 1 then
- Pistol = true
- else
- Pistol = false
- end
- if WepType == 8 then
- Taser = true
- else
- Taser = false
- end
- if WepType == 9 then
- Grenade = true
- else
- Grenade = false
- end
- if ITEM == "deagle" then
- Revolver = true
- else
- Revolver = false
- end
- end
- if ( FAKELAG_ON_KNIFE:GetValue() and Knife ) or -- On Knife
- ( FAKELAG_ON_TASER:GetValue() and Taser ) or -- On Taser
- ( FAKELAG_ON_GRENADE:GetValue() and Grenade ) or -- On Grenade
- ( FAKELAG_ON_PISTOL:GetValue() and Pistol ) or -- On Pistol
- ( FAKELAG_ON_REVOLVER:GetValue() and Revolver ) then -- On Revolver
- SetValue( "msc_fakelag_enable", 0 );
- else
- SetValue( "msc_fakelag_enable", 1 );
- end
- end
- end
- local function FakelagOnPing()
- if FAKELAG_EXTRA:GetValue() then
- if FAKELAG_ON_PING:GetValue() then
- if entities.GetPlayerResources() ~= nil then
- Ping = entities.GetPlayerResources():GetPropInt( "m_iPing", client.GetLocalPlayerIndex() );
- end
- FakelagOnPingAmount = math.floor( FAKELAG_ON_PING_AMOUNT:GetValue() )
- if Ping >= FakelagOnPingAmount then
- SetValue( "msc_fakelag_enable", 0 );
- else
- SetValue( "msc_fakelag_enable", 1 );
- end
- end
- end
- end
- local function FakelagSmartMode()
- if FAKELAG_SMART_MODE:GetValue() then
- local FAKELAG_STANDING = FAKELAG_SMART_MODE_STANDING:GetValue();
- local FAKELAG_MOVING = FAKELAG_SMART_MODE_MOVING:GetValue();
- local FAKELAG_INAIR = FAKELAG_SMART_MODE_INAIR:GetValue();
- local FAKELAG_STANDING_FACTOR = math.floor( FAKELAG_SMART_MODE_STANDING_FACTOR:GetValue() )
- local FAKELAG_MOVING_FACTOR = math.floor( FAKELAG_SMART_MODE_MOVING_FACTOR:GetValue() )
- local FAKELAG_INAIR_FACTOR = math.floor( FAKELAG_SMART_MODE_INAIR_FACTOR:GetValue() )
- if entities.GetLocalPlayer() ~= nil then
- local LocalPlayerEntity = entities.GetLocalPlayer();
- local fFlags = LocalPlayerEntity:GetProp( "m_fFlags" );
- local VelocityX = LocalPlayerEntity:GetPropFloat( "localdata", "m_vecVelocity[0]" );
- local VelocityY = LocalPlayerEntity:GetPropFloat( "localdata", "m_vecVelocity[1]" );
- local Velocity = math.sqrt( VelocityX^2 + VelocityY^2 );
- -- Standing
- if ( Velocity == 0 and fFlags == 257 ) then
- Standing = true
- else
- Standing = false
- end
- -- Moving
- if ( Velocity > 0 and fFlags == 257 ) then
- Moving = true
- else
- Moving = false
- end
- -- In Air
- if fFlags == 256 then
- InAir = true
- else
- InAir = false
- end
- end
- if Standing then
- if FAKELAG_STANDING == 0 or
- ( FAKELAG_ON_KNIFE:GetValue() and Knife ) or
- ( FAKELAG_ON_TASER:GetValue() and Taser ) or
- ( FAKELAG_ON_GRENADE:GetValue() and Grenade ) or
- ( FAKELAG_ON_PISTOL:GetValue() and Pistol ) or
- ( FAKELAG_ON_REVOLVER:GetValue() and Revolver ) or
- ( FAKELAG_ON_PING:GetValue() and Ping >= FakelagOnPingAmount ) then
- SetValue( "msc_fakelag_enable", 0 );
- else
- SetValue( "msc_fakelag_enable", 1 );
- end
- if FAKELAG_STANDING == 1 then
- STANDING_MODE = 0
- elseif FAKELAG_STANDING == 2 then
- STANDING_MODE = 1
- elseif FAKELAG_STANDING == 3 then
- STANDING_MODE = 2
- elseif FAKELAG_STANDING == 4 then
- STANDING_MODE = 3
- elseif FAKELAG_STANDING == 5 then
- STANDING_MODE = 5
- end
- SetValue( "msc_fakelag_mode", STANDING_MODE );
- end
- if Moving then
- if FAKELAG_MOVING == 0 or
- ( FAKELAG_ON_KNIFE:GetValue() and Knife ) or
- ( FAKELAG_ON_TASER:GetValue() and Taser ) or
- ( FAKELAG_ON_GRENADE:GetValue() and Grenade ) or
- ( FAKELAG_ON_PISTOL:GetValue() and Pistol ) or
- ( FAKELAG_ON_REVOLVER:GetValue() and Revolver ) or
- ( FAKELAG_ON_PING:GetValue() and Ping >= FakelagOnPingAmount ) then
- SetValue( "msc_fakelag_enable", 0 );
- else
- SetValue( "msc_fakelag_enable", 1 );
- end
- if FAKELAG_MOVING == 1 then
- MOVING_MODE = 0
- elseif FAKELAG_MOVING == 2 then
- MOVING_MODE = 1
- elseif FAKELAG_MOVING == 3 then
- MOVING_MODE = 2
- elseif FAKELAG_MOVING == 4 then
- MOVING_MODE = 3
- elseif FAKELAG_MOVING == 5 then
- MOVING_MODE = 4
- elseif FAKELAG_MOVING == 6 then
- MOVING_MODE = 5
- end
- SetValue( "msc_fakelag_mode", MOVING_MODE );
- end
- if InAir then
- if FAKELAG_INAIR == 0 or
- ( FAKELAG_ON_KNIFE:GetValue() and Knife ) or
- ( FAKELAG_ON_TASER:GetValue() and Taser ) or
- ( FAKELAG_ON_GRENADE:GetValue() and Grenade ) or
- ( FAKELAG_ON_PISTOL:GetValue() and Pistol ) or
- ( FAKELAG_ON_REVOLVER:GetValue() and Revolver ) or
- ( FAKELAG_ON_PING:GetValue() and Ping >= FakelagOnPingAmount ) then
- SetValue( "msc_fakelag_enable", 0 );
- else
- SetValue( "msc_fakelag_enable", 1 );
- end
- if FAKELAG_INAIR == 1 then
- INAIR_MODE = 0
- elseif FAKELAG_INAIR == 2 then
- INAIR_MODE = 1
- elseif FAKELAG_INAIR == 3 then
- INAIR_MODE = 2
- elseif FAKELAG_INAIR == 4 then
- INAIR_MODE = 3
- elseif FAKELAG_INAIR == 5 then
- INAIR_MODE = 4
- elseif FAKELAG_INAIR == 6 then
- INAIR_MODE = 6
- end
- SetValue( "msc_fakelag_mode", INAIR_MODE );
- end
- if FAKELAG_SMART_MODE_FACTOR:GetValue() then
- if Standing then
- SetValue( "msc_fakelag_value", FAKELAG_STANDING_FACTOR );
- end
- if Moving then
- SetValue( "msc_fakelag_value", FAKELAG_MOVING_FACTOR );
- end
- if InAir then
- SetValue( "msc_fakelag_value", FAKELAG_INAIR_FACTOR );
- end
- end
- end
- end
- client.AllowListener( "item_equip" )
- callbacks.Register( "FireGameEvent", "Extra Fakelag Options", FakelagExtra )
- callbacks.Register( "Draw", "Fakelag On Ping", FakelagOnPing )
- callbacks.Register( "Draw", "Fakelag Smart Mode", FakelagSmartMode )
- local GetValue = gui.GetValue;
- local UserViewFov = GetValue( "vis_view_fov" );
- local ZooomFov = gui.Checkbox( before_fake_lag_extra, "lua_zoom_fov", "Zoom fov", 0 );
- local function ZoomFOV()
- if ZooomFov:GetValue()then
- if ( UserViewFov > 0 ) then
- if entities.GetLocalPlayer() ~= nil then
- local LocalPlayer = entities.GetLocalPlayer();
- local isScoped = LocalPlayer:GetProp( "m_bIsScoped" );
- if isScoped == 1 or isScoped == 257 then
- SetValue( "vis_view_fov", 0 );
- else
- SetValue( "vis_view_fov", UserViewFov );
- end
- end
- end
- end
- end
- callbacks.Register( "Draw", "ZoomFOV", ZoomFOV);
- local FullbrightCheckbox = gui.Checkbox( before_fake_lag_extra, "lua_fullbright", "Full Bright", 0 );
- local function Fullbright()
- if FullbrightCheckbox:GetValue() then
- client.SetConVar( "mat_fullbright", 1, true )
- else
- client.SetConVar( "mat_fullbright", 0, true )
- end
- end
- callbacks.Register( "Draw", "FullBrightness", Fullbright )
- local Galaxy_Sky = gui.Checkbox( before_fake_lag_extra, "lua_skydescent", "Galaxy Sky", 0 );
- function SkyBox()
- if Galaxy_Sky:GetValue()then
- if (client.GetConVar("sv_skyname") ~= "sky_descent" and gui.GetValue("msc_restrict") ~= 1) then
- client.SetConVar("sv_skyname", "sky_descent")
- end
- end
- end
- callbacks.Register("Draw", "SkyBox", SkyBox)
- local FPS = 0.0
- local fakeWalking = 0
- local gui_set = gui.SetValue;
- local gui_get = gui.GetValue;
- local LeftKey = 0;
- local BackKey = 0;
- local RightKey = 0;
- local colro_lG,color_lB,color_lR,colro_rG,color_rB,color_rR,colro_bG,color_bB,color_bR;
- local check_indicator = gui.Checkbox(before_extra_func, "Enable", "Enable", false)
- local AntiAimleft = gui.Keybox(before_extra_func, "Anti-Aim_left", "Manual AA left", 0);
- local AntiAimRight = gui.Keybox(before_extra_func, "Anti-Aim_Right", "Manual AA Right", 0);
- local AntiAimBack = gui.Keybox(before_extra_func, "Anti-Aim_Back", "Manual AA Back", 0);
- --local rifk7_font = draw.CreateFont("Arial", 15, 700)
- local rifk7_font = draw.CreateFont("Ultra Fresh - Demo", 20, 700)
- local arrow_font = draw.CreateFont("Arial", 30, 1000)
- local normal = draw.CreateFont("Arial")
- local ActiveManualAA = gui.Checkbox(before_extra_func, 'Manual_AA', "Manaul AA", false)
- local ActiveIndicators = gui.Checkbox(before_extra_func, 'Manaul_AA_Indicators', "Manaul AA Indicators", false)
- local function main()
- if AntiAimleft:GetValue() ~= 0 then
- if input.IsButtonPressed(AntiAimleft:GetValue()) then
- LeftKey = LeftKey + 1;
- BackKey = 0;
- RightKey = 0;
- end
- end
- if AntiAimBack:GetValue() ~= 0 then
- if input.IsButtonPressed(AntiAimBack:GetValue()) then
- BackKey = BackKey + 1;
- LeftKey = 0;
- RightKey = 0;
- end
- end
- if AntiAimRight:GetValue() ~= 0 then
- if input.IsButtonPressed(AntiAimRight:GetValue()) then
- RightKey = RightKey + 1;
- LeftKey = 0;
- BackKey = 0;
- end
- end
- end
- function CountCheck()
- if (LeftKey == 1) then
- BackKey = 0;
- RightKey = 0;
- elseif (BackKey == 1) then
- LeftKey = 0;
- RightKey = 0;
- elseif (RightKey == 1) then
- LeftKey = 0;
- BackKey = 0;
- elseif (LeftKey == 2) then
- LeftKey = 0;
- BackKey = 0;
- RightKey = 0;
- elseif (BackKey == 2) then
- LeftKey = 0;
- BackKey = 0;
- RightKey = 0;
- elseif (RightKey == 2) then
- LeftKey = 0;
- BackKey = 0;
- RightKey = 0;
- end
- end
- function SetLeft()
- gui_set("rbot_antiaim_stand_real_add", -90);
- gui_set("rbot_antiaim_move_real_add", -90);
- gui_set("rbot_antiaim_autodir", false);
- end
- function SetBackWard()
- gui_set("rbot_antiaim_stand_real_add", 0);
- gui_set("rbot_antiaim_move_real_add", 0);
- gui_set("rbot_antiaim_autodir", false);
- end
- function SetRight()
- gui_set("rbot_antiaim_stand_real_add", 90);
- gui_set("rbot_antiaim_move_real_add", 90);
- gui_set("rbot_antiaim_autodir", false);
- end
- function SetAuto()
- gui_set("rbot_antiaim_stand_real_add", 0);
- gui_set("rbot_antiaim_move_real_add", 0);
- gui_set("rbot_antiaim_autodir", 1);
- end
- function draw_indicator()
- local active = check_indicator:GetValue()
- local active_ind = ActiveIndicators:GetValue()
- local active_aa = ActiveManualAA:GetValue()
- if active and active_ind and active_aa then
- local w, h = draw.GetScreenSize();
- if (LeftKey == 1) then
- SetLeft();
- a1, a2, a3 = 200, 0, 200
- arrow = "LEFT"
- colro_lG,color_lB,color_lR= 200, 0, 200
- colro_rG,color_rB,color_rR= 255,255,255
- colro_bG,color_bB,color_bR= 255,255,255
- --draw.Color ( 255, 0, 255, 255 )
- -- draw.Text(w / 2 - 100, h / 2 - 14, "<");
- -- draw.TextShadow(w / 2 - 100, h / 2 - 14, "<");
- elseif (BackKey == 1) then
- SetBackWard();
- a1, a2, a3 = 200, 0, 200
- arrow = "BACK"
- colro_lG,color_lB,color_lR= 255,255,255
- colro_rG,color_rB,color_rR= 255,255,255
- colro_bG,color_bB,color_bR= 200, 0, 200
- -- draw.Color ( 255, 0, 255, 255 )
- -- draw.Text(w / 2 - 8, h / 2 - 80, "^");
- -- draw.TextShadow(w / 2 - 8, h / 2 - 80, "^");
- elseif (RightKey == 1) then
- SetRight();
- a1, a2, a3 = 200, 0, 200
- arrow = "RIGHT"
- colro_lG,color_lB,color_lR= 255,255,255
- colro_rG,color_rB,color_rR= 200, 0, 200
- colro_bG,color_bB,color_bR= 255,255,255
- -- draw.Color ( 255, 0, 255, 255 )
- -- draw.Text(w / 2 + 85, h / 2 - 14, ">");
- -- draw.TextShadow(w / 2 + 85, h / 2 - 14, ">");
- elseif ((LeftKey == 0) and (BackKey == 0) and (RightKey == 0)) then
- SetAuto();
- a1, a2, a3 = 17, 200, 20, 255
- colro_lG,color_lB,color_lR= 255,255,255
- colro_rG,color_rB,color_rR= 255,255,255
- colro_bG,color_bB,color_bR= 255,255,255
- arrow = "AUTO"
- end
- draw.SetFont(arrow_font)
- draw.Color (colro_rG,color_rB,color_rR, 255 )
- draw.Text(w / 2 + 100, h / 2 , ">");
- draw.TextShadow(w / 2 + 100, h / 2, ">");
- draw.Color (colro_bG,color_bB,color_bR, 255 )
- draw.Text(w / 2 , h / 2 + 80, "V");
- draw.TextShadow(w / 2, h / 2 + 80, "V");
- draw.Color (colro_lG,color_lB,color_lR, 255 )
- draw.Text(w / 2 - 100, h / 2 , "<");
- draw.TextShadow(w / 2 - 100, h / 2 , "<");
- draw.SetFont(arrow_font)
- TextAdd(arrow, a1, a2, a3, 255)
- end
- end
- local function GameFPS()
- FPS = 0.9 * FPS + (1.0 - 0.9) * globals.AbsoluteFrameTime();
- return math.floor((1.0 / FPS) + 0.5);
- end
- local function fakewalk_key_finder()
- local Entity = entities.GetLocalPlayer();
- local Alive = false
- local checkrage = gui.GetValue("rbot_active")
- local rageaa = gui.GetValue("rbot_antiaim_enable")
- if Entity ~= nil then
- Alive = Entity:IsAlive();
- end
- local fakewalk_key = gui.GetValue("rbot_antiaim_fakewalk") --getting the value of the key, use https://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes to find the key you need
- if fakewalk_key ~= 0 and checkrage and rageaa then
- if (Alive == true) then
- -- you have to check if it's 0 cause if it's 0 and you use it for something the script will crash
- if input.IsButtonDown(fakewalk_key) then
- w1, w2, w3 = 17, 200, 20
- else
- w1, w2, w3 = 150, 71, 71
- end
- else
- w1, w2, w3 = 150, 71, 71
- end
- else
- w1, w2, w3 = 150, 71, 71
- end
- return w1, w2, w3
- end
- function DrawPingColor()
- local ping_value = ping_slider:GetValue()
- local fakelag_enable = gui.GetValue("msc_fakelag_enable")
- local ping = 0
- if entities.GetPlayerResources() ~= nil then
- ping = entities.GetPlayerResources():GetPropInt("m_iPing", client.GetLocalPlayerIndex())
- end
- if (fakelatency_enable) then
- fakelatency = math.ceil(fakelatency_value * 1000)
- fakea = 255
- if ping > (fakelatency * 0.75) then
- p, i, n = 126, 183, 50
- elseif ping < (fakelatency * 0.75) and ping > (fakelatency * 0.5) then
- fakea = 255
- p, i, n = 255, 165, 0
- elseif ping < (fakelatency * 0.5) and ping > (fakelatency * 0.25) then
- p, i, n = 255, 69, 0
- elseif ping < (fakelatency * 0.25) then
- p, i, n = 255, 0, 0
- end
- end
- if fakelatency_enable ~= true then
- if ping > ping_value then
- p, i, n = 255, 0, 0
- elseif ping < ping_value * 0.85 and ping > ping_value * 0.75 then
- p, i, n = 255, 165, 0
- elseif ping < ping_value * 0.75 then
- p, i, n = 126, 183, 50
- end
- end
- return p, i, n
- end
- function DrawFPSColor()
- local fps_value = fps_slider:GetValue()
- if GameFPS() > fps_value then
- p1, p2, p3 = 126, 183, 50
- end
- if GameFPS() < fps_value * 0.9 and GameFPS() > (fps_value * 0.8) then
- p1, p2, p3 = 255, 165, 0
- end
- if GameFPS() < (fps_value * 0.8) then
- p1, p2, p3 = 255, 0, 0
- end
- return p1, p2, p3
- end
- local function DrawPING()
- local w, h = draw.GetScreenSize();
- local local_player = entities.GetLocalPlayer();
- local lowerbody = 0
- local velocity = 0
- local FinalVelocity = 0
- local Alive = false
- if local_player ~= nil then
- lowerbody = local_player:GetProp('m_flLowerBodyYawTarget');
- end
- local active = check_indicator:GetValue()
- local Entity = entities.GetLocalPlayer();
- local active_lby = ActiveDisplayLBY:GetValue()
- local active_ping = ActiveDisplayPING:GetValue()
- local active_fps = ActiveDisplayFPS:GetValue()
- local active_fakewalk = ActivateFakeWalkIndicator:GetValue()
- local active_standing = ActivateStandingIndicator:GetValue()
- local active_override = ActivateOverrideIndicator:GetValue()
- local PING = 0
- if Entity ~= nil then
- Alive = Entity:IsAlive();
- local velocityX = Entity:GetPropFloat("localdata", "m_vecVelocity[0]");
- local velocityY = Entity:GetPropFloat("localdata", "m_vecVelocity[1]");
- velocity = math.sqrt(velocityX ^ 2 + velocityY ^ 2);
- FinalVelocity = math.min(9999, velocity) + 0.2;
- end
- if active then
- draw.SetFont(rifk7_font)
- if gui.GetValue("msc_fakelatency_enable") then
- r1, g1, b1 = 17, 200, 20
- else
- r1, g1, b1 = 150, 71, 71
- end
- p1, p2, p3 = DrawPingColor();
- if entities.GetPlayerResources() ~= nil then
- PING = entities.GetPlayerResources():GetPropInt("m_iPing", client.GetLocalPlayerIndex())
- end
- if active_ping then
- TextAdd("PING " .. PING, p1, p2, p3, 255)
- end
- -- if gui.GetValue("msc_fakelatency_enable") then
- -- draw.Color(17, 200, 20, 255);
- -- else
- -- draw.Color(150, 71, 71, 255);
- -- end
- local fakelag = gui.GetValue("msc_fakelag_value");
- if Entity ~= nil then
- local alive = Entity:IsAlive();
- local health = Entity:GetHealth();
- if (alive == true and health > 0) then
- if fakelag> math.max(5,7) then
- r, g, b =71, 255, 71
- else
- r, g, b =255, 71, 71
- end
- end
- TextAdd("LC ", r, g, b, 255)
- end
- end
- if active_fps then
- p, i, n = DrawFPSColor()
- TextAdd("FPS " .. GameFPS(), p, i, n, 255)
- end
- if active_fakewalk then
- w1, w2, w3 = fakewalk_key_finder()
- TextAdd("FAKEWALK ", w1, w2, w3, 255)
- end
- if entities.GetLocalPlayer() ~= nil then
- draw.Color(255, 255, 255, 255);
- if (Alive) then
- if (math.floor(FinalVelocity) > 0) then
- v1, v2, v3, v4 = 150, 71, 71, 255
- else
- v1, v2, v3, v4 = 17, 200, 20, 255
- end
- else
- v1, v2, v3, v4 = 150, 71, 71, 255
- end
- end
- if active_standing and Alive then
- TextAdd("LBY", v1, v2, v3, v4)
- end
- local override_key = gui.GetValue("rbot_resolver_override")
- if override_key ~= 0 then
- if input.IsButtonDown(override_key) then
- do1, o2, o3 = 17, 200, 20
- else
- o1, o2, o3 = 150, 71, 71
- end
- else
- o1, o2, o3 = 150, 71, 71
- end
- if active_override then
- TextAdd("OVERRIDE ", o1, o2, o3, 255)
- end
- TextDrawing()
- end
- local text_tabl = { {} };
- function TextAdd(text, r, g, b, a)
- text_tabl[#text_tabl + 1] = { text, r, g, b, a };
- end
- function TextDrawing()
- local a_gap = active_gap:GetValue()
- local a_x = active_x:GetValue()
- local a_y = active_y:GetValue()
- local posh = 45
- local posw = 30
- local gap = 15
- local shadow = shadowcheck:GetValue()
- if a_y then
- posh = (high_slider:GetValue())
- end
- if a_x then
- posw = (wight_slider:GetValue())
- end
- if a_gap then
- gap = dis_slider:GetValue()
- end
- sw, sh = draw.GetScreenSize();
- draw.SetFont(normal);
- --draw.Text(sw/sw+10,sh/sh+10,"rifk v0.8 by dummy and dat is klar")
- top_text = sh - (gap * #text_tabl) - posh;
- for i = 1, #text_tabl do
- draw.SetFont(rifk7_font);
- draw.Color(text_tabl[i][2], text_tabl[i][3], text_tabl[i][4], text_tabl[i][5])
- draw.Text(posw, top_text + gap * i, text_tabl[i][1]);
- if shadow then
- draw.TextShadow(posw, top_text + gap * i, text_tabl[i][1])
- end
- draw.SetFont(normal);
- end;
- text_tabl = {}
- end
- callbacks.Register("Draw", "main", main);
- callbacks.Register("Draw", "CountCheck", CountCheck);
- callbacks.Register("Draw", "SetLeft", SetLeft);
- callbacks.Register("Draw", "SetBackWard", SetBackWard);
- callbacks.Register("Draw", "SetRight", SetRight);
- callbacks.Register("Draw", "SetAuto", SetAuto);
- callbacks.Register("Draw", "draw_indicator", draw_indicator);
- callbacks.Register("Draw", "DrawPING", DrawPING)
- ---------------------- Info bar
- local frame_rate = 0.0
- --local rifk7_font = draw.CreateFont("Arial", 15, 700)
- local rifk7_font = draw.CreateFont("Ultra Fresh - Demo", 20, 200)
- local arrow_font = draw.CreateFont("Ultra Fresh - Demo", 18, 750)
- local normal = draw.CreateFont("Arial")
- local get_abs_fps = function()
- frame_rate = 0.9 * frame_rate + (1.0 - 0.9) * globals.AbsoluteFrameTime()
- return math.floor((1.0 / frame_rate) + 0.5)
- end
- local function setMath(int, max, declspec)
- local int = (int > max and max or int)
- local tmp = max / int;
- local i = (declspec / tmp)
- i = (i >= 0 and math.floor(i + 0.5) or math.ceil(i - 0.5))
- return i
- end
- function gradient(x1, y1, x2, y2, left)
- local w = x2 - x1
- local h = y2 - y1
- for i = 0, w do
- local a = (i / w) * 200
- draw.Color(0, 0, 0, a)
- if left then
- draw.FilledRect(x1 + i, y1, x1 + i + 1, y1 + h)
- else
- draw.FilledRect(x1 + w - i, y1, x1 + w - i + 1, y1 + h)
- end
- end
- end
- local function getColor(number, max)
- local r, g, b
- i = setMath(number, max, 9)
- if i <= 1 then r, g, b = 255, 0, 0
- elseif i == 2 then r, g, b = 237, 27, 3
- elseif i == 3 then r, g, b = 235, 63, 6
- elseif i == 4 then r, g, b = 229, 104, 8
- elseif i == 5 then r, g, b = 228, 126, 10
- elseif i == 6 then r, g, b = 220, 169, 16
- elseif i == 7 then r, g, b = 213, 201, 19
- elseif i == 8 then r, g, b = 176, 205, 10
- elseif i == 9 then r, g, b = 124, 195, 13
- end
- return r, g, b
- end
- local speed =0
- local info_bur = gui.Checkbox(before_fake_lag_extra, "lua_info_bur", "Info bar", false)
- function paint_traverse()
- draw.SetFont(arrow_font)
- local x, y = draw.GetScreenSize()
- local centerX = x / 2
- local latency=0;
- if entities.FindByClass( "CBasePlayer" )[1] ~= nil then
- latency=entities.GetPlayerResources():GetPropInt( "m_iPing", client.GetLocalPlayerIndex() )
- end;
- local rw,rh
- if info_bur:GetValue() then
- gradient(centerX - 200, y - 30, centerX - 51, y, 0, true)
- gradient(centerX - 200, y - 30, centerX - 51, y - 29, true)
- draw.Color(0, 0, 0, 200)
- draw.FilledRect(centerX - 50, y - 30, centerX + 70, y)
- draw.Color(0, 0, 0, 255)
- draw.FilledRect(centerX - 50, y - 30, centerX + 70, y - 29)
- gradient(centerX + 70, y - 30, centerX + 200, y, false)
- gradient(centerX + 70, y - 30, centerX + 200, y - 29, false)
- local r, g, b = getColor(get_abs_fps(), 100)
- draw.Color(r, g, b, 255)
- rw,rh =draw.GetTextSize(get_abs_fps())
- draw.Text(centerX - 1 -(rw/2), y - 20, get_abs_fps())
- draw.Text(centerX + 1+ (rw/2), y - 20, "fps")
- r,g,b=getColor(latency,700)
- draw.Color(r, g, b, 255)
- rw,rh =draw.GetTextSize(latency)
- draw.Text(centerX - 80-(rw/2), y - 20, latency)
- draw.Text(centerX - 78+(rw/2), y - 20, "ping")
- draw.Color(255, 255, 255, 255)
- if entities.GetLocalPlayer() ~= nil then
- local Entity = entities.GetLocalPlayer();
- local Alive = Entity:IsAlive();
- local velocityX = Entity:GetPropFloat( "localdata", "m_vecVelocity[0]" );
- local velocityY = Entity:GetPropFloat( "localdata", "m_vecVelocity[1]" );
- local velocity = math.sqrt( velocityX^2 + velocityY^2 );
- local FinalVelocity = math.min( 9999, velocity ) + 0.2;
- draw.Color( 255, 255, 255, 255 );
- if ( Alive == true ) then
- speed= math.floor(FinalVelocity) ;
- else
- speed=0;
- end
- end
- rw,rh =draw.GetTextSize(speed)
- draw.Text(centerX + 73-(rw/2), y - 20, speed)
- draw.Text(centerX + 75+(rw/2), y - 20, "speed")
- end
- end
- callbacks.Register("Draw", "paint_traverse", paint_traverse)
- local knife_right_hand = gui.Checkbox(before_fake_lag_extra, "lua_knife_right_hand", "Knife right hand", false)
- function on_knife_righthand(Event)
- if (Event:GetName() ~= 'item_equip') then
- return;
- end
- if knife_right_hand:GetValue()then
- if (client.GetLocalPlayerIndex() == client.GetPlayerIndexByUserID(Event:GetInt('userid'))) then
- if Event:GetString('item') == "knife" then
- client.Command( "cl_righthand 0", true );
- else
- client.Command( "cl_righthand 1", true );
- end
- end
- end
- end
- client.AllowListener('item_equip');
- callbacks.Register("FireGameEvent", "on_knife_righthand", on_knife_righthand);
- local OwnCrosshair = gui.Checkbox(before_fake_lag_extra, "vis_sniper_own_crosshair", "Engine Crosshair", false)
- local drawCrosshair = false;
- function on_sniper(Event)
- if (Event:GetName() ~= 'item_equip') then return; end
- if (client.GetLocalPlayerIndex() == client.GetPlayerIndexByUserID(Event:GetInt('userid'))) then
- if Event:GetString('item') == "awp" or Event:GetString('item') == "ssg08" or Event:GetString('item') == "scar20" or Event:GetString('item') == "g3sg1" then drawCrosshair = true;
- elseif Event:GetString('item') ~= "awp" and Event:GetString('item') ~= "ssg08" and Event:GetString('item') ~= "scar20" and Event:GetString('item') ~= "g3sg1" then drawCrosshair = false; return; end end end
- function ifCrosshair()
- if not OwnCrosshair:GetValue() then client.GetConVar("weapon_debug_spread_show", 0, true); end
- local screenCenterX, screenY = draw.GetScreenSize(); scX = screenCenterX / 2; scY = screenY / 2;
- if drawCrosshair == true and s_cross:GetValue() and not OwnCrosshair:GetValue() then gui.SetValue('esp_crosshair', false); client.GetConVar("weapon_debug_spread_show", 0, true); draw_Color(255,255,255,255);
- draw_Line(scX, scY - 8, scX, scY + 8); --line down
- draw_Line(scX - 8, scY, scX + 8, scY); --line across
- elseif drawCrosshair == true and not s_cross:GetValue() and OwnCrosshair:GetValue() then
- client.GetConVar("weapon_debug_spread_show", 3, true);
- elseif drawCrosshair == false then return; end end
- callbacks.Register("FireGameEvent", "on_sniper", on_sniper);
- callbacks.Register("Draw", "ifCrosshair", ifCrosshair)
- local AWMetallicHitsound = gui.Checkbox( befor_Cheaking, "lua_metallichitsound", "Metallic Hitsound", 0 );
- local function MetallicHitsound( Event )
- if AWMetallicHitsound:GetValue() then
- if gui.GetValue( "msc_hitmarker_enable" ) then
- gui.SetValue( "msc_hitmarker_volume", 0 );
- end
- if ( Event:GetName() == "player_hurt" ) then
- local ME = client.GetLocalPlayerIndex();
- local INT_UID = Event:GetInt( "userid" );
- local INT_ATTACKER = Event:GetInt( "attacker" );
- local NAME_Victim = client.GetPlayerNameByUserID( INT_UID );
- local INDEX_Victim = client.GetPlayerIndexByUserID( INT_UID );
- local NAME_Attacker = client.GetPlayerNameByUserID( INT_ATTACKER );
- local INDEX_Attacker = client.GetPlayerIndexByUserID( INT_ATTACKER );
- if ( INDEX_Attacker == ME and INDEX_Victim ~= ME ) then
- client.Command( "play buttons\\arena_switch_press_02.wav", true );
- end
- end
- end
- end
- client.AllowListener( "player_hurt" );
- callbacks.Register( "FireGameEvent", "Metallic Hitsound", MetallicHitsound)
- local rainbow_menu = gui.Checkbox( befor_Cheaking, "lua_rainbow_menu", "Rainbow menu", 0 );
- function rainbowmenu()
- if rainbow_menu:GetValue()then
- local speed = 3
- local r = math.floor(math.sin(globals.RealTime() * speed) * 127 + 128)
- local g = math.floor(math.sin(globals.RealTime() * speed + 2) * 127 + 128)
- local b = math.floor(math.sin(globals.RealTime() * speed + 4) * 127 + 128)
- local a = 255
- for k,v in pairs({ "clr_gui_window_logo1",
- "clr_gui_window_footer_text",
- "clr_gui_checkbox_on",
- "clr_gui_checkbox_on_hover",
- "clr_gui_tablist4",
- "clr_gui_tablist1",
- "clr_gui_slider_button",
- "clr_gui_window_header_tab2"}) do
- gui.SetValue(v, r,g,b,a)
- end
- end
- end
- callbacks.Register( "Draw", "rainbowmenu", rainbowmenu);
- frequency = 0.5 -- range: [0, oo) | lower is slower
- intensity = 255 -- range: [0, 255] | lower is darker
- saturation = 1 -- range: [0.00, 1.00] | lower is less saturated
- function hsvToR(h, s, v)
- local r, g, b
- local i = math.floor(h * 6);
- local f = h * 6 - i;
- local p = v * (1 - s);
- local q = v * (1 - f * s);
- local t = v * (1 - (1 - f) * s);
- i = i % 6
- if i == 0 then r, g, b = v, t, p
- elseif i == 1 then r, g, b = q, v, p
- elseif i == 2 then r, g, b = p, v, t
- elseif i == 3 then r, g, b = p, q, v
- elseif i == 4 then r, g, b = t, p, v
- elseif i == 5 then r, g, b = v, p, q
- end
- return r * intensity
- end
- function hsvToG(h, s, v)
- local r, g, b
- local i = math.floor(h * 6);
- local f = h * 6 - i;
- local p = v * (1 - s);
- local q = v * (1 - f * s);
- local t = v * (1 - (1 - f) * s);
- i = i % 6
- if i == 0 then r, g, b = v, t, p
- elseif i == 1 then r, g, b = q, v, p
- elseif i == 2 then r, g, b = p, v, t
- elseif i == 3 then r, g, b = p, q, v
- elseif i == 4 then r, g, b = t, p, v
- elseif i == 5 then r, g, b = v, p, q
- end
- return g * intensity
- end
- function hsvToB(h, s, v)
- local r, g, b
- local i = math.floor(h * 6);
- local f = h * 6 - i;
- local p = v * (1 - s);
- local q = v * (1 - f * s);
- local t = v * (1 - (1 - f) * s);
- i = i % 6
- if i == 0 then r, g, b = v, t, p
- elseif i == 1 then r, g, b = q, v, p
- elseif i == 2 then r, g, b = p, v, t
- elseif i == 3 then r, g, b = p, q, v
- elseif i == 4 then r, g, b = t, p, v
- elseif i == 5 then r, g, b = v, p, q
- end
- return b * intensity
- end
- local rainbow_esp = gui.Checkbox( befor_Cheaking, "lua_rainbow_esp", "Rainbow esp", 0 );
- function rainbowesp()
- if rainbow_esp:GetValue()then
- local R = hsvToR((globals.RealTime() * frequency) % 1, saturation, 1)
- local G = hsvToG((globals.RealTime() * frequency) % 1, saturation, 1)
- local B = hsvToB((globals.RealTime() * frequency) % 1, saturation, 1)
- gui.SetValue( "clr_chams_ct_invis", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_chams_ct_vis", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_chams_weapon_primary", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_chams_weapon_secondary", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_esp_bar_ammo1", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_esp_bar_ammo2", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_esp_bar_armor1", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_esp_bar_armor2", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_esp_bar_health1", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_esp_bar_health2", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_esp_bar_lbytimer1", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_esp_bar_lbytimer2", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_esp_box_ct_invis", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_chams_hands_primary", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_chams_hands_secondary", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_chams_historyticks", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_chams_other_invis", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_chams_other_vis", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_chams_t_invis", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_chams_t_vis", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_esp_box_ct_vis", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_esp_box_other_invis", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_esp_box_other_vis", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_esp_box_t_invis", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_esp_box_t_vis", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_esp_outofview", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_esp_crosshair", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_esp_crosshair_recoil", math.floor(R), math.floor(G), math.floor(B), 255)
- gui.SetValue( "clr_misc_hitmarker", math.floor(R), math.floor(G), math.floor(B), 255)
- end
- end
- callbacks.Register( "Draw", "rainbowesp", rainbowesp);
- local smoke_grenade_enable = gui.Checkbox( befor_Cheaking, "lua_smoke_grenade_enable", "Smokegrenade timer", 0 );
- local entity_get = entities.FindByClass
- local tickcount = globals.TickCount
- local tickinterval = globals.TickInterval
- local w2s = client.WorldToScreen
- local duration = 18
- local function SmokeTimer()
- local smoke_grenades = entity_get("CSmokeGrenadeProjectile")
- local tick_current = tickcount()
- local seconds_per_tick = tickinterval()
- for i=1, #smoke_grenades do
- local smoke_grenade = smoke_grenades[i]
- if smoke_grenade:GetProp("m_bDidSmokeEffect") then
- local ticks = smoke_grenade:GetProp("m_nSmokeEffectTickBegin")
- local time_since_explosion = seconds_per_tick * (tick_current - ticks)
- if time_since_explosion > 0 and time_since_explosion < duration +1 then
- local x, y, z = smoke_grenade:GetProp("m_vecOrigin")
- local worldX, worldY = w2s(x, y, z)
- if worldX ~= nil then
- local progress = 1 - time_since_explosion / duration
- if smoke_grenade_enable:GetValue()then
- draw.Color(255,20 + progress * 235,20 + progress * 235,255)
- message = string.format("%.1f s", duration-time_since_explosion)
- draw.TextShadow(worldX, worldY, message)
- end
- end
- end
- end
- end
- end
- callbacks.Register( "Draw", "SmokeTimer", SmokeTimer );
- local killsays = {
- [1] = "The only thing lower than your k/d ratio is your I.Q.",
- [2] = "Your aim is so poor that people held a fundraiser for it",
- [3] = "The only thing more unreliable than you is the condom your dad used.",
- [4] = "Calling you a retard is a compliment in comparison to how stupid you actually are.",
- [5] = "I didnt know dying was a special ability.",
- [6] = "How many tries did it take for you to click the install button?",
- [7] = "If I jumped from your ego to your intelligence, Id die of starvation half-way down.",
- [8] = "When I die I want you to to lower me in my grave so you can let me down one more time.",
- [9] = "I would kill myself to get away from you, but you would probably follow me.",
- [10] = "Studies show that aiming gives you better chances of hitting your target.",
- [11] = "You should let your chair play, at least it knows how to support.",
- [12] = "There are about 37 trillion cells working together in your body right now, and you are disappointing every single one of them",
- [13] = "Id call you a tool, but that would imply you were useful in at least one way.",
- [14] = "Youre the human equivalent of a participation award.",
- [15] = "Id love to see things from your perspective, but I dont think I could shove my head that far up my ass.",
- [16] = "Im not trash talking, Im talking to trash",
- [17] = "Stephen Hawking has better hand-eye coordination than you.",
- [18] = "Legend has it that the number 0 was first invented after scientists calculated your chance of doing something useful.",
- [19] = "Youre the type of player to get 3rd place in a 1v1 match",
- [20] = "Im not saying I hate you, but I would unplug your life support to charge my phone.",
- [21] = "Youre an inspiration for birth control.",
- [51] = "Who set the bots to passive?",
- [52] = "Youre the reason abortion was legalized",
- }
- local CHAT_KillSay_enable = gui.Checkbox( befor_Cheaking, "lua_CHAT_KillSay", "Trashtollker uff ya", 0 );
- function CHAT_KillSay( Event )
- if ( Event:GetName() == 'player_death' ) then
- if CHAT_KillSay_enable:GetValue() then
- local ME = client.GetLocalPlayerIndex();
- local INT_UID = Event:GetInt( 'userid' );
- local INT_ATTACKER = Event:GetInt( 'attacker' );
- local NAME_Victim = client.GetPlayerNameByUserID( INT_UID );
- local INDEX_Victim = client.GetPlayerIndexByUserID( INT_UID );
- local NAME_Attacker = client.GetPlayerNameByUserID( INT_ATTACKER );
- local INDEX_Attacker = client.GetPlayerIndexByUserID( INT_ATTACKER );
- if ( INDEX_Attacker == ME and INDEX_Victim ~= ME ) then
- local response = tostring(killsays[math.random(#killsays)]);
- response = response:gsub("_name_", NAME_Victim);
- client.ChatSay( ' ' .. response );
- end
- end
- end
- end
- client.AllowListener( 'player_death' );
- callbacks.Register( 'FireGameEvent', 'AWKS', CHAT_KillSay );
- function gradient(x1, y1, x2, y2, left)
- local w = x2 - x1
- local h = y2 - y1
- for i = 0, w do
- local a = (i / w) * 200
- draw.Color(0, 0, 0, a)
- if left then
- draw.FilledRect(x1 + i, y1, x1 + i + 1, y1 + h)
- else
- draw.FilledRect(x1 + w - i, y1, x1 + w - i + 1, y1 + h)
- end
- end
- end
- --stolen from other thread
- --credits: senator
- local frame_rate = 0.0
- local get_abs_fps = function()
- frame_rate = 0.9 * frame_rate + (1.0 - 0.9) * globals.AbsoluteFrameTime()
- return math.floor((1.0 / frame_rate) + 0.5)
- end
- local kills = 0
- local deaths = 0
- --the gay method from some guy i think you can get the stats
- --thru local player but im just too lazy
- function events(event)
- if event:GetName() == "player_death" then
- local local_player = client.GetLocalPlayerIndex()
- local attacker = client.GetPlayerIndexByUserID(event:GetInt("attacker"))
- local victim = client.GetPlayerIndexByUserID(event:GetInt("userid"))
- if attacker == local_player then
- kills = kills + 1
- end
- if (victim == local_player) then
- deaths = deaths + 1
- end
- end
- end
- local skeet_info_bar = gui.Checkbox( befor_Cheaking, "lua_skeet_info_bar", "Skeet info bar", 0 );
- function paint_traverse()
- if skeet_info_bar:GetValue() then
- local x, y = draw.GetScreenSize()
- local centerX = x / 2
- --the bar idk lol
- --left
- gradient(centerX - 200, y - 20, centerX - 51, y, 0, true)
- gradient(centerX - 200, y - 20, centerX - 51, y - 19, true)
- --middle
- draw.Color(0, 0, 0, 200)
- draw.FilledRect(centerX - 50, y - 20, centerX + 50, y)
- draw.Color(0, 0, 0, 255)
- draw.FilledRect(centerX - 50, y - 20, centerX + 50, y - 19)
- --right
- gradient(centerX + 50, y - 20, centerX + 200, y, false)
- gradient(centerX + 50, y - 20, centerX + 200, y - 19, false)
- --fps
- draw.Color(255, 255, 255, 255)
- draw.Text(centerX - 10, y - 15, get_abs_fps())
- draw.Color(200, 255, 0, 255)
- draw.Text(centerX + 10, y - 15, "fps")
- --kills
- draw.Color(255, 255, 255, 255)
- draw.Text(centerX - 70, y - 15, kills)
- draw.Color(255, 100, 0, 255)
- draw.Text(centerX - 55, y - 15, "kills")
- --deaths
- draw.Color(255, 255, 255, 255)
- draw.Text(centerX + 50, y - 15, deaths)
- draw.Color(255, 50, 50, 255)
- draw.Text(centerX + 65, y - 15, "deaths")
- end
- end
- callbacks.Register("Draw", "paint_traverse", paint_traverse)
- callbacks.Register("FireGameEvent", "events", events)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement