Counter-Strike 2

Counter-Strike 2

32 평점
CS2 Working Teleport Script to Practice Jumps/Nades (2023/2024)
SoMeGoÐ 님이 작성
CSGO old methods used to teleport for jump/nade practice don't work in CS2. Here's an updated and working version to save your position and teleport back whenever you need.
3
2
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
INTRODUCTION
One of the first things I've noticed when hoping in a CS2 local server to practice the new jumps and nades is that NONE of the old teleporting scrips/aliases I had in CSGO were working in CS2.
  • The "writeip" and "con_logfile" method is no longer supported
  • The "condump" to create .log files does not work
  • The "script" commands don't exist anymore and will return "unknown command" in the console (at least at the time I'm creating this guide), which breaks every script-based method, especially the one I liked the most done by @crashz (check his old CSGO guide here: teleport-script)
I've used this A LOT to get/save my position and teleport back whenever I wanted without having to noclip my way back and forth every time. I needed a way to make this work in CS2, so inspired by crashz script, I went on a mission and I've found and created a working method for me.

I'm sharing it here hoping it can help many others in our awesome community 😁
IS IT SAFE? WILL I GET VAC BANNED?
Yes, this method is completely safe and you WILL NOT get VAC banned.

As you can imagine, this does not work on official matchmaking servers, it will only work on local practice servers with bots that you create from the menu.
HOW DOES IT WORK
CS2 has a Launch Option command called "-condebug" that will print all console output to a console.log text file located on "[...]steamapps\common\Counter-Strike Global Offensive\game\csgo".

By using this Launch Option, we can execute a GETPOS command in-game, which will print a SETPOS output to the console and the console.log file. We'll then use a Windows Powershell script that will read the file, grab the last registered SETPOS line, and create a .CFG file with the value that can than be executed within the game through a bind.

All will be done automatically without the need to minimize the game.

THERE IS DEFINITELY ROOM for improvement by automating some of the steps and the need for manual configuration, and I will work on that later down the road. Right now, I just wanted to share this since I found a lot of people asking for it.
STEP 1 - Set your launch options
Add these two Launch Options in CS2 properties:
-condebug -conclearlog.

SETUP: Go to your Steam game library, right-click the CS2 icon, and select "PROPERTIES", a new window will launch. Scroll the current window page to the bottom and you will find the box to type the commands.




IMPORTANT: The command "-condebug" NEEDS to come BEFORE the "-conclearlog". You CAN have any other commands before/after/mixed, as long as "-condebug" comes first then "-conclearlog".
  • -condebug: Logs all console output into the console.log text file located on [...]steamapps\common\Counter-Strike Global Offensive\game\csgo
  • -conclearlog: Clears the console.log text file upon game start. Only works if -condebug is set. This cleans the file every time you launch the game and helps keep its size in check, or else it would build a lot over time
STEP 2 - Add the required files to CS2 cfg folder
You need to add some files to your CS2 cfg folder and edit them with the correct steam path according to your installation:
  1. Open your cfg folder. Mine is in the default installation path, like this: "C:\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg"
  2. Download and add these files inside the cfg folder: https://drive.google.com/drive/folders/1SB8OvGO-Sj0_YOgfWv9hJBnj2zb8AicU?usp=sharing
  3. Open the "teleport_script_read_log.ps1" file with notepad and change folder paths if needed
  4. Open the "teleport_script_executable.vbs" file with notepad and change folder paths if needed
IMPORTANT:
  • In Step 1, make sure you are inside "[...]\GAME\csgo\cfg", which is different than just "[...]\csgo\cfg" that does not contain "\game\" in the path.
  • In Step 2, Google Drive may present a warning of caution about the .VBS and .PS1 files since they are script files. It's all good. I'll leave their code below for reference in case you don't want to download any files
  • I couldn't find a way to execute the Powershell .PS1 file directly without minimizing the game, that's why I created a .VBS to execute the .PS1
In case you don't trust internet files, here are the public codes for which file and the instructions to create them directly into your computer:
  1. Copy and paste the entire text block into a NOTEPAD
  2. Go to notepad FILE > SAVE AS, a new window will open
  3. In this window there's one text input for FILE NAME and a dropdown menu for SAVE AS TYPE, change the type to ALL FILES
  4. Give it a name and add ".ps1" at the end and to save the file as a Windows Powershell script, like this: teleport_script_read_log.ps1
  5. SAVE THE FILE and add it to your CS2 cfg folder. Mine is in: "C:\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg"
STEP 3 - Binds and Macros
You will need THREE dedicated keys for this method to work:
  • Two of them are binds inside CS2: one to GETPOS and another to TELEPORT to the desired location (you can add them to your AUTOEXEC.CFG or any custom .cfg file)
  • Another one needs to be a dedicated key that can be changed using the MACRO function from most keyboard/mice software (I have a Razer keyboard, so I'm using RAZER SYNAPSE for this)

BINDS: For the binds inside CS2, I'm using:
bind "MOUSE4" "getpos"
bind "MOUSE5" "exec teleport_script_setpos.cfg; noclip 0"

The "noclip 0" is very useful for disabling noclip upon returning to the saved position in case you were flying through the map.

DEDICATED MACRO KEY: Since I have a Razer keyboard, I'm using Razer Synapse to change my right Control key (which I never use) to run the "teleport_script_executable.vbs" file that is now inside the CS2 official cfg folder. You can use whatever key you like.

STEP 4 - Runnig the script
If you did everything right, just press the keys:
  1. Press the keybind to run the GETPOS command
  2. Press the dedicated macro key for the "teleport_script_executable.vbs" file
  3. Wait a few seconds and press the keybind to run the "teleport_script_setpos" cfg
VOILÀ

With this setup, you don't need to open the console to manually type GETPOS and get the SETPOS result, nor minimize CS2 to manipulate the files.
SPREAD THE WORD
If you find this guide helpful, please consider the following actions at the top of the page:
  • Give this guide a LIKE
  • Add this guide to your FAVORITES
  • Give this guide an AWARD

TROUBLESHOOTING
TROUBLESHOOTING

CORSAIR USERS: Someone reached out to me trying to make this work using a Corsair keyboard and iCUE software. We found out that iCUE doesn't accept to run .VBS directly like Razer Synapse does, or at least we couldn't find a way to make it so.

The solution was to use a tool built-in Windows called IExpress to pack the .PS1 into an .EXE (which is accepted by iCUE) following this very simple tutorial: https://get-cmd.com/?p=3875

The conversion was made locally by the user on his own computer for safety measures. I recommend not to use online compilers as they may create additional malicious code within the executable.
댓글 13
LarsaKuk 2024년 10월 31일 오후 12시 16분 
does not work for me
76561198367639370 2024년 5월 15일 오전 6시 59분 
bind "F2" "getpos | bind F1"
whatanoob 2024년 4월 5일 오전 10시 41분 
I made some alterations to make it so that you use setpos_exact, combined with setang (since setang_exact is bugged).

You just need to change your bind to:
bind "MOUSE4" "getpos_exact; getpos"

And then replace the teleport_script_read_log.ps1 with this: https://pastebin.com/raw/tUgsuBLf

There's probably a cleaner way to do it but I just used ChatGPT and it worked just fine for me.
m4v3r1ck 2024년 2월 5일 오후 5시 18분 
Works great! Took a bit to get the correct file paths updated for my own setup, but I love it!
Asteroiddestroyer 2023년 12월 16일 오전 3시 02분 
r
Hitman 2023년 12월 16일 오전 12시 13분 
I'm not tested this already, but it seams great! Thx m8 :steamthumbsup:
MS 2023년 12월 15일 오전 6시 25분 
thin
??? 2023년 12월 14일 오전 9시 49분 
окей
St. Patrick 2023년 12월 14일 오전 8시 49분 
sdfge
LegoPlay 2023년 12월 13일 오후 9시 29분 
Кря