Is it possible to convert this from a pc script to a titan t
5 posts
• Page 1 of 1
Is it possible to convert this from a pc script to a titan t
HOW DO I MAKE THIS WORKK ON TITAN TWO WITH XIM APEX
- Code: Select all
--================================= http://www.CSMacro.com =========================================---
--===========================Rainbow Six Siege v1909 or higher====================================---
--=====================================Pathfinders========================================---
--- Change the nil value to a mouse button which you want to use.
--- When the script is activated the CapsLock light will goes ON from your keyboard.
--- With clicking again the same button the weapon will be deactivated.
--- You can use for deactivating a different assignment with the ALL_OFF to a mouse / keyboard button.
--- The Keyboard assignmend works only with Logitech G Keyboards.
-- Mouse Bind Keys --
local L85A2 = nil
local AR33 = nil
local R4C = nil
local G36C = nil
local XI556 = nil
local F2 = nil
local AK12 = nil
local P641 = nil
local Commando552 = nil
local G8A1 = nil
local FMG9 = nil
local MP5K = nil
local UMP45 = nil
local MP5 = nil
local P90 = nil
local VSN9X19 = nil
local Carbine416 = nil
local MP7 = nil
local AUG2 = nil
local SMG11 = nil
local SMG12 = nil
local ALL_OFF = nil
-- Keyboard bind Keys --
local L85A2_Keyboard = nil
local AR33_Keyboard = nil
local R4C_Keyboard = nil
local G36C_Keyboard = nil
local XI556_Keyboard = nil
local F2_Keyboard = nil
local AK12_Keyboard = nil
local P641_Keyboard = nil
local Commando552_Keyboard = nil
local G8A1_Keyboard = nil
local AUG2_Keyboard = nil
local FMG9_Keyboard = nil
local MP5K_Keyboard = nil
local UMP45_Keyboard = nil
local MP5_Keyboard = nil
local P90_Keyboard = nil
local VSN9X19_Keyboard = nil
local Carbine416_Keyboard = nil
local MP7_Keyboard = nil
local SMG11_Keyboard = nil
local SMG12_Keyboard = nil
local ALL_OFF_Keyboard = nil
--=========================================================================================---
EnablePrimaryMouseButtonEvents(true);
local recoil = false
local weapon = 0
function OnEvent(event, arg)
if (event == "MOUSE_BUTTON_PRESSED" and arg == L85A2) or
(event == "G_PRESSED" and arg == L85A2_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-L85A2\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-L85A2\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == SMG11) or
(event == "G_PRESSED" and arg == SMG11_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-SMG11\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-SMG11\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == SMG12) or
(event == "G_PRESSED" and arg == SMG12_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-SMG12\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-SMG12\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == ALL_OFF) or
(event == "G_PRESSED" and arg == ALL_OFF_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-No-Weapon-Activate\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("OFF-Macro-No-Weapon-Activate\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == AUG2) or
(event == "G_PRESSED" and arg == AUG2_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-AUG2\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-AUG2\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == Carbine416) or
(event == "G_PRESSED" and arg == Carbine416_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-Carbine416\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-Carbine416\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == P90) or
(event == "G_PRESSED" and arg == P90_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-P90\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-P90\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == MP7) or
(event == "G_PRESSED" and arg == MP7_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-MP7\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-MP7\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == R4C) or
(event == "G_PRESSED" and arg == R4C_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-R4C\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-R4C\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == G8A1) or
(event == "G_PRESSED" and arg == G8A1_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-G8A1\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-G8A1\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == MP5K) or
(event == "G_PRESSED" and arg == MP5K_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-MP5K\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-MP5K\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == MP5) or
(event == "G_PRESSED" and arg == MP5_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-MP5\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-MP5\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == VSN9X19) or
(event == "G_PRESSED" and arg == VSN9X19_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-VSN9X19\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-VSN9X19\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == UMP45) or
(event == "G_PRESSED" and arg == UMP45_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-UMP45\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-UMP45\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == FMG9) or
(event == "G_PRESSED" and arg == FMG9_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-FMG9\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-FMG9\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == AK12) or
(event == "G_PRESSED" and arg == AK12_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-AK12\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-AK12\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == G36C) or
(event == "G_PRESSED" and arg == G36C_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-G36C\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-G36C\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == AR33) or
(event == "G_PRESSED" and arg == AR33_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-AR33\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-AR33\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == XI556) or
(event == "G_PRESSED" and arg == XI556_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-XI556\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-XI556\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == P641) or
(event == "G_PRESSED" and arg == P641_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-P641\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-P641\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == Commando552) or
(event == "G_PRESSED" and arg == Commando552_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-Commando552\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-Commando552\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
elseif (event == "MOUSE_BUTTON_PRESSED" and arg == F2) or
(event == "G_PRESSED" and arg == F2_Keyboard) then
recoil = not recoil
weapon = arg
if (recoil == false) then
OutputLogMessage("OFF-Macro-F2\n")
if IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
else
OutputLogMessage("ON-NoRecoil-F2\n")
if not IsKeyLockOn("capslock") then
PressAndReleaseKey("capslock")
end
end
end
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
if weapon == ALL_OFF or weapon == ALL_OFF_Keyboard then
if recoil then
end
end
if weapon == L85A2 or weapon == L85A2_Keyboard then
if recoil then
repeat
Sleep(24)
if not IsMouseButtonPressed(1) then break end
MoveMouseRelative(0,3)
Sleep(24)
MoveMouseRelative(0,3)
Sleep(24)
MoveMouseRelative(0,3)
Sleep(24)
MoveMouseRelative(0,3)
if not IsMouseButtonPressed(1) then break end
Sleep(24)
MoveMouseRelative(1,3)
Sleep(24)
MoveMouseRelative(1,3)
Sleep(24)
MoveMouseRelative(1,3)
Sleep(24)
MoveMouseRelative(1,3)
if not IsMouseButtonPressed(1) then break end
Sleep(24)
MoveMouseRelative(0,3)
Sleep(24)
MoveMouseRelative(0,3)
Sleep(24)
MoveMouseRelative(0,3)
Sleep(24)
MoveMouseRelative(1,3)
if not IsMouseButtonPressed(1) then break end
Sleep(24)
MoveMouseRelative(1,3)
Sleep(24)
MoveMouseRelative(1,3)
Sleep(24)
MoveMouseRelative(1,3)
Sleep(24)
MoveMouseRelative(1,3)
if not IsMouseButtonPressed(1) then break end
Sleep(24)
MoveMouseRelative(0,3)
Sleep(24)
MoveMouseRelative(1,3)
Sleep(24)
MoveMouseRelative(0,3)
Sleep(24)
MoveMouseRelative(1,3)
if not IsMouseButtonPressed(1) then break end
Sleep(24)
MoveMouseRelative(1,2)
Sleep(24)
MoveMouseRelative(1,2)
Sleep(24)
MoveMouseRelative(1,2)
Sleep(24)
MoveMouseRelative(0,2)
if not IsMouseButtonPressed(1) then break end
Sleep(24)
MoveMouseRelative(1,2)
Sleep(24)
MoveMouseRelative(2,2)
Sleep(24)
MoveMouseRelative(2,2)
Sleep(24)
MoveMouseRelative(1,2)
-
jordon_338 - Private First Class
- Posts: 3
- Joined: Tue Aug 03, 2021 12:04 am
Re: Is it possible to convert this from a pc script to a tit
You would need to manually convert it to GPC.
Why not use one of the scripts in the online resource?
Why not use one of the scripts in the online resource?
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: Is it possible to convert this from a pc script to a tit
cause this script I was told about by a friend and it makes its so each weapon has no recoil based on the operator choosen
-
jordon_338 - Private First Class
- Posts: 3
- Joined: Tue Aug 03, 2021 12:04 am
Re: Is it possible to convert this from a pc script to a tit
How would I go about converting it for GPC without any errors in the code?
-
jordon_338 - Private First Class
- Posts: 3
- Joined: Tue Aug 03, 2021 12:04 am
Re: Is it possible to convert this from a pc script to a tit
jordon_338 wrote:cause this script I was told about by a friend and it makes its so each weapon has no recoil based on the operator choosen
The code looks incomplete, maybe you couldn't paste the whole code?
You'd have to learn the GPC language to create something similar. Would take too much time for anyone to be willing to do it: https://www.consoletuner.com/wiki/index ... _scripting
There's lots of scripts in the online resource for anti recoil already though you just need to set the values.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
5 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 74 guests