257 Commits

Author SHA1 Message Date
gir489
f66f96295b Project include cleanup (#3404) 2024-07-23 13:40:30 +02:00
DayibBaba
6a76831b8e Partial revert of changes to Superherofly (#3389) 2024-07-22 10:18:45 +02:00
gir489
1bb96fb562 Redesigned triggerbot (#3396)
* Redesigned triggerbot to respect the same configuration the user has setup for the aimbot.
Triggerbot will not force fire the player's current weapon instead of just silently spawning a bullet.

* Delay grabbing player velocity until after we've confirmed the target velocity has at least one tick of information to use.

* Fixed some mission peds not being aimbotted/triggerbotted when using only enemies.
Removed unused global.

* Refactored enemy checks to only run the enemy determination code if the user has it enabled.
2024-07-22 10:16:16 +02:00
DayibBaba
8680d72ecb Fixed invalid command crashing game (#3388) 2024-07-20 12:26:51 +02:00
gir489
c8dd29075c Improved aimbot enemy detection and change DragInt to SliderInt (#3378)
* Added aimbot check for peds we are in combat with via scripts.
* Changed DragInt into SliderInt.
* Fixed no_sway not being saved to config.
* Fixed aimbot snapping to an invalid angle when the target was first grabbed.
2024-07-18 21:58:21 +02:00
gir489
c8887e1d56 Fixed typo on no_sway command variable(#3373) 2024-07-18 08:59:49 +02:00
Quentin
b1f623decd refactor: aimbot (#2902)
* Fixed ped flags system not allowing Michael's flag to be set.
* Refactored is_a_ped_type_we_dont_care_about logic to not be extraneous and inefficient.
* Fixed completely broken and wrong FoV calculations.
* No Sway patch.

Co-authored-by: gir489 <100792176+gir489returns@users.noreply.github.com>
2024-07-17 23:17:18 +02:00
gir489
1ae48b191b Refactor no_idle_kick to not store the address of the tunables. (#3363)
* Refactor no_idle_kick to not store the address of the tunables.
* Added sanity checks to the tunable pointers.
2024-07-17 14:13:10 +02:00
DayibBaba
271ba08093 YimCLI (#3348)
* Better command suggestions
* Suggestions work at any location in a written command
* Multiple commands in a single command
* Added spectate command & highlight on suggestion selection
* Added no suggestions warning
* Added Kamikaze & send squad & join player command
2024-07-17 14:11:09 +02:00
DayibBaba
8cb0d18901 Expand Cmd Executor (#2884)
Added additional commands to showcase suggestion system.
Added a new util file to operate on strings in a unified manner.
Changed input_text_with_hint component to allow for more flags than one.
Added more player seeking features to player_service such as get_by_name()

* Fixed out of bounds suggestion navigation

* Added suggestions to spawn_vehicle command

* Created command play_animation

* Added suggestion support for multi commands

using a semicolon allows for more commands to fire at once, and is now supported with appropriate suggestions

* Added rotation to teleport_to_location command

* Fixed stupid error & added multiple raw command auto fills

* Added sanity checks to avoid nullpointers

* Added context identifiers to player commands

* Added temporary self inclusion to player commands

Needs translation on the translations repo

* Applied rudamentary reviews

* Experimental proxy globalization

* Fixed argument sensitivity on spawn vehicle

* Scrapped 2 ideas (maybe for future)

* Added true and false suggestions to bool commands

---------

Co-authored-by: Andreas Maerten <24669514+Yimura@users.noreply.github.com>
Co-authored-by: gir489 <100792176+gir489returns@users.noreply.github.com>
2024-07-13 00:26:34 +02:00
Mr-X-GTA
4b73782c27 Bug fixes and improvements (#3324)
* feat: handle exceptions on jumps correctly
* fix(player_db): fix invite player
* fix: remove old stuff
* fix(script__vm): fix script vm crashes
* remove debug code
* fix(scr_globals): fix globals and locals
2024-07-10 13:43:39 +02:00
gir489
ce8d63d0d1 Fix C4/Flare limit and not working (#3308)
* Closes #3307

* Fix instant respawn.
2024-07-08 21:13:06 +02:00
gir489
54286f3bb4 Fixed freemode::mobile local for 3258. (#3298)
* Fixed freemode::mobile local for 3258.

* Fixed carmod_shop locals.
2024-07-04 09:33:09 +02:00
maybegreat48
1c34e2a1b6 Update for b3258 (#3288)
* fix: update script names
* fix: use original chat sender
* feat(tunables): fix tunable service
* fix: explode patch (thanks @Mr-X-GTA)
* fix: fix compile errors
* fix: use unique_ptr
* Added 1.69 vehicles.
* Added new weather for 1.69 and updated stack sizes.
* Fixed garage.
* Made Unload button a developer-only feature. (Disabled on Release)
* Redesigned Network tab to not be a giant mess.
* Added new json_serializer code from @tupoy-ya.
* chore: correct dependency

------

Co-authored-by: maybegreat48 <email@hostname>
Co-authored-by: Andreas Maerten <24669514+Yimura@users.noreply.github.com>
Co-authored-by: gir489returns <redacted@example.com>
2024-07-03 23:04:06 +02:00
maybegreat48
74ecf22ecf Menu revamp (#3274)
* Complete player and network UI redesign, meant to show all features instead of stuffing them into tiny boxes
* Added option to delete player vehicles
* Better clone player (now clones head blend too)
* Better host token spoofing, with an option to enter your own
* Better host token spoofing detection
* Better desync kick prot detections
* A script blocker for the entire session (per-player options will be added later)
* Added option to spoof data/DLC hashes
* Logging framework that allows developers to easily debug false positives
* Major protection improvements
2024-06-27 10:32:17 +02:00
CringeArab
f24c287e70 added block_join_reason (#3215) 2024-06-02 17:37:02 +02:00
R.K
8f179007e1 Disable Vehicle Heading Updates When Vehicle Flying in First-Person Mode (#2991) 2024-05-30 22:07:41 +02:00
CringeArab
974e9ad184 Block join reason to reaction (#3190) 2024-05-30 20:07:39 +02:00
maybegreat48
0e5c8f7cfb Break game and protections (#3203) 2024-05-30 19:45:43 +02:00
R.K
dcf50fffa8 P2905R2 Fix - Refactor rvalue arguments into lvalues for std::make_format_args (#3194)
Co-authored-by: xiaoxiao921 <837334+xiaoxiao921@users.noreply.github.com>
2024-05-29 19:50:59 +02:00
R.K
a3d8bf590d [Bug Fix]: Fixes for Never Wanted "Flickering" in Zancudo/Bolingbroke (#3152)
* replace REPORT_CRIME with SET_MAX_WANTED_LEVEL

---------

Co-authored-by: gir489 <100792176+gir489returns@users.noreply.github.com>
Co-authored-by: Arthur <redacted@gmail.com>
2024-05-27 23:57:19 +02:00
maybegreat48
a6e7eb54b6 Session multiplexer and more (#3167) 2024-05-24 23:17:54 +02:00
maybegreat48
3efd9d7fd1 Harass players and spam killfeed (#3161) 2024-05-21 23:28:52 +02:00
CringeArab
7b3920a3dd fix: Fake ban message (#3141) 2024-05-19 20:42:29 +02:00
Mr-X-GTA
ee92caa889 Protection improvements (#3146) 2024-05-19 20:26:44 +02:00
R.K
e29928ef46 [Enhancement]: Stability Improvements to Black Hole Feature (#3132) 2024-05-16 18:47:25 +02:00
Ryan
d83cc4f0c6 Change MIPH with MPH (#3128) 2024-05-16 00:05:51 +02:00
maybegreat48
7195f5f069 Desync protection improvements (#3094) 2024-05-13 19:01:47 +02:00
HCR-750F
0fa7c580c1 feat: Chat translator (#2931) 2024-05-10 21:41:59 +02:00
Muhammad007228
c77ffe1788 Less noticeable multi-kick => smart-kick (#3066) 2024-05-10 11:51:14 +02:00
Mr-X-GTA
b58d1d189d Fix player list crash (#3080)
* Fixed get_rockstar_id returning an incorrect type.
* Added more OOP usage of get_rockstar_id when applicable.
Co-authored-by: gir489returns <gir489returns@outlook.com>
2024-05-09 23:28:11 +02:00
R.K
0b21bd8c6a Hotfix (#3072) 2024-05-09 11:06:25 +02:00
maybegreat48
efc172c9e2 Assorted fixes (#3073)
* feat: unstuck more when removing blackscreen
* fix: make kicks more versatile
2024-05-09 11:05:56 +02:00
R.K
543c229be2 Refactor of Player Wanted Level (#3070) 2024-05-08 10:24:00 +02:00
tiCkuhAr
861e53ec7a Remove useless kicks (#3061) 2024-05-06 22:11:35 +02:00
R.K
8f2422b923 Start Script Activity Session Check (#3045) 2024-05-06 22:00:32 +02:00
HCR-750F
d59f8d85c1 Add more translation keys (#3024) 2024-05-03 17:29:24 +02:00
Quentin
e97c057ae4 fix(vehicle): fix repair not working after going in water (#2996) 2024-05-01 23:25:30 +02:00
R.K
7408350af3 feat: Added Infinite Vehicle Ammo (#3003) 2024-04-30 20:52:49 +02:00
gir489
d20c136d34 Added "Enable MK1 and MK2 Weapons" feature. (#3000) 2024-04-30 18:11:43 +02:00
R.K
65cabdc11f fix: Prevent autokick of friends and trusted (#2989) 2024-04-28 22:44:20 +02:00
gir489
51cd6e37ff Fixed commands not working in single player. (#2980)
* Fixed commands not working in single player.

* Code review changes.
2024-04-27 16:10:35 +02:00
gir489
33530855d1 Added StartScriptBegin protection. (#2962)
* Refactored Script Event Logging to log to a file that's kept open, but flushed each event instead of spamming the console.
* Added Rockstar ID to the Script Event Logger.
2024-04-23 22:48:29 +02:00
Andreas Maerten
fcdeeba7ed Give optimisation hints to compiler (#2929)
feat(invoker): add compiler hints
chore(get network event data): added translation TODO
feat(native hooks): add compiler hint to crashes
feat(render): add likely compiler hint to on_present
feat(thread pool): add compiler hints
Added hook likely/unlikely switches to debug/crash scenarios.
Added HEX_TO_UPPER call on the AC verifier offsets.
Added more fuzzer unlikely attributes.
Replaced some hard coded numbers with their unhashed _J variants.
Added more unlikely attributes to singleton initializer checks.
Added more likely/unlikely attributes to certain scenarios.
2024-04-22 19:48:22 +02:00
Quentin
6f8490f450 fix(lua): better error reporting when calling player commands (#2932) 2024-04-10 11:43:55 +02:00
Quentin
6e0358737f fix nlohmann potential throw in ped outfit (#2894) 2024-03-30 18:42:04 +01:00
DayibBaba
f20ad20162 Fixed send chat logic (#2874)
Command reports will now only be sent to the command user
2024-03-26 17:28:08 +01:00
maybegreat48
1e79a92657 Refactor and fix send chat (#2864)
* feat(chat): refactor and fix send chat
* fix(chat): fixes
* fix(chat): fix team chat

Co-authored-by: DayibBaba <79384354+DayibBaba@users.noreply.github.com>
2024-03-23 17:37:51 +01:00
Andreas Maerten
99afa8dfbb refactor!: Rewrite of the old notification service (#2866)
The main goal was improving the readability of the original code however some ugliness remains.

- Swapped from pointer singleton to instance singleton
- Actually make use of the alpha logic that used to be present
- Added a counter to notifications to indicate if something is being spammed
- Notification timeouts reset if they're sent to the queue again
2024-03-23 00:04:49 +01:00
Andreas Maerten
88036b91da refactor: switch RAGE_JOAAT with string literal functions (#2806)
Why? Shorter to write and removes the macro usage

I used the following regex to find all occurrences:
```r
RAGE_JOAAT\("(.*?)"\)
```
then the following to replace it all:
```r
"$1"_J
```
2024-03-12 09:42:11 +01:00