| 
									
										
										
										
											2023-07-19 20:24:25 +02:00
										 |  |  | #+title: Half-Life cheat | 
					
						
							|  |  |  | #+options: toc:nil | 
					
						
							|  |  |  | #+startup: showeverything | 
					
						
							|  |  |  | #+author: 8dcc | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-20 16:03:57 +02:00
										 |  |  | *Linux cheat for Half-Life 1 (and goldsrc).* | 
					
						
							| 
									
										
										
										
											2023-07-19 20:24:25 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | #+TOC: headlines 2 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | * Description | 
					
						
							| 
									
										
										
										
											2023-07-20 16:03:57 +02:00
										 |  |  | Simple linux cheat for Half-Life 1 (and most /goldsrc/ games) made in C. | 
					
						
							| 
									
										
										
										
											2023-07-19 20:24:25 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | This project was heavily inspired by [[https://github.com/UnkwUsr/hlhax][UnkwUsr/hlhax]], and would not have been | 
					
						
							|  |  |  | possible without his help. Make sure to check out his repo too. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-20 16:03:57 +02:00
										 |  |  | Also make sure to check out [[https://github.com/deboogerxyz/ahc][deboogerxyz/ahc]]. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-24 17:39:54 +02:00
										 |  |  | * Features | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-26 16:35:55 +02:00
										 |  |  | | Feature    | Command       | Values (0..n)          | | 
					
						
							|  |  |  | |------------+---------------+------------------------| | 
					
						
							|  |  |  | | Bhop       | =cv_bhop=       | off/on                 | | 
					
						
							| 
									
										
										
										
											2023-07-30 15:09:49 +02:00
										 |  |  | | Autostrafe | =cv_autostrafe= | off/rage/legit         | | 
					
						
							|  |  |  | | Aimbot     | =cv_aimbot=     | off/fov*               | | 
					
						
							| 
									
										
										
										
											2023-07-26 16:35:55 +02:00
										 |  |  | | ESP        | =cv_esp=        | off/3d-box/name/all    | | 
					
						
							|  |  |  | | Chams      | =cv_chams=      | off/players/hands/all* | | 
					
						
							| 
									
										
										
										
											2023-07-27 14:25:26 +02:00
										 |  |  | | Crosshair  | =cv_crosshair=  | off/length             | | 
					
						
							| 
									
										
										
										
											2023-07-31 15:57:23 +02:00
										 |  |  | | Tracers    | =cv_tracers=    | off/on*                | | 
					
						
							| 
									
										
										
										
											2023-07-25 15:05:46 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-30 15:09:49 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | #+begin_quote | 
					
						
							|  |  |  | *Note:* Aimbot FOV goes from 0 (off) to 180 (all enemies) | 
					
						
							|  |  |  | #+end_quote | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-25 15:05:46 +02:00
										 |  |  | #+begin_quote | 
					
						
							|  |  |  | *Note:* Chams color can be changed from the =h_glColor4f()= function inside | 
					
						
							|  |  |  | [[https://github.com/8dcc/hl-cheat/blob/main/src/hooks.c][src/hooks.c]]. Since this cheat is not hard to compile, I rather have less | 
					
						
							|  |  |  | console variables than more customization at runtime. | 
					
						
							|  |  |  | #+end_quote | 
					
						
							| 
									
										
										
										
											2023-07-24 17:39:54 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-31 15:57:23 +02:00
										 |  |  | #+begin_quote | 
					
						
							|  |  |  | *Note:* Bullet tracer color, width and time can be changed at the bottom of the | 
					
						
							|  |  |  | =bullet_tracers()= function inside [[https://github.com/8dcc/hl-cheat/blob/main/src/features/misc.c][src/features/misc.c]]. See previous chams note. | 
					
						
							|  |  |  | #+end_quote | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-19 20:24:25 +02:00
										 |  |  | * Building | 
					
						
							|  |  |  | #+begin_src console | 
					
						
							| 
									
										
										
										
											2023-07-20 18:10:45 +02:00
										 |  |  | $ git clone --recurse-submodules https://github.com/8dcc/hl-cheat | 
					
						
							| 
									
										
										
										
											2023-07-19 20:24:25 +02:00
										 |  |  | $ cd hl-cheat | 
					
						
							|  |  |  | $ make | 
					
						
							|  |  |  | ... | 
					
						
							|  |  |  | #+end_src | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-20 18:10:45 +02:00
										 |  |  | Note that you will need to clone with =--recurse-submodules= for the sdk. If you | 
					
						
							|  |  |  | have already cloned it, you can just: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #+begin_src console | 
					
						
							|  |  |  | $ cd hl-cheat | 
					
						
							|  |  |  | $ git submodule update --init --recursive | 
					
						
							|  |  |  | #+end_src | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-07-19 20:24:25 +02:00
										 |  |  | * Injecting | 
					
						
							| 
									
										
										
										
											2023-07-19 20:26:12 +02:00
										 |  |  | Uses the [[https://www.gnu.org/savannah-checkouts/gnu/gdb/index.html][gdb]] debugger for injecting the library. | 
					
						
							| 
									
										
										
										
											2023-07-19 20:24:25 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | #+begin_src console | 
					
						
							|  |  |  | $ ./injector.sh | 
					
						
							|  |  |  | [sudo] password for username: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ... | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | hl-cheat loaded! | 
					
						
							|  |  |  | #+end_src |