209 Commits

Author SHA1 Message Date
Andreas Maerten
cba19d0c33
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
e07601347d
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
gir489
f4e0da5ff4
Added g_local_player pointer sanity checks. (#2792) 2024-03-01 17:48:20 +01:00
Andreas Maerten
d4d504dca2
feat: Add menu onboarding to YimMenu (#2492) 2024-02-23 22:54:25 +01:00
Andreas Maerten
0b53660312
Many different fixes (#2749)
* fix(BytePatch): regression in world spawn bypass introduced in #2669
* fix(View/Network): session join options not updating after language change
* fix(RapidFire): prevent game from crashing by filling up the bullet pool
* refactor(Settings): don't save certain settings that users usually don't want to have enabled
* fix(CustomWeapons): render weapon names properly
* fix(reaction): names don't appear in chat
2024-02-21 23:34:11 +01:00
Anvar
ad1dfc71d2
refactor: move Request Model logic to helper function (#2669) 2024-01-31 10:47:03 +01:00
maybegreat48
1e11d83f7a
fix: don't randomize components if we're cloning an existing ped (#2663) 2024-01-28 15:51:25 +01:00
Anvar
ee707c538b
Graceful Landing (#2660) 2024-01-28 15:17:26 +01:00
gir489
deac08e856
Optimized Aimbot code. (#2653)
* Fixed hypot call not considering the Z coordinates.
Refactored class-based variables.
Fixed on_player/on_enemy/on_police/on_npc config variables not being persisted to disk.
2024-01-27 11:51:23 +01:00
navmodder
dd27ea2340
Better Aimbot & Flying Axe (#2480)
* Better Aimbot

* Revert "Better Aimbot"

This reverts commit 176824ad20ca46a9ec5bda79eeb5784d8bd277d9.

* Better Aimbot

* Flying Axe

* Aimbot smoothing

* More fixes & improvements

* Little missing detail

* Fixed

* Improvements

-switch to using inline
-switched timer to steady_clock
-changed axe lerp to "Lagrange's Interpolation"
- i hope girl is satisfied XD

* PEMDAS

* Comment!
2024-01-21 15:32:01 +01:00
maybegreat48
1127e51a52
Optimizations (#2649)
* fix(Respawn): fix respawn in SP
* fix: re-enable bigobj
* fix: update creator's stack size
* fix: use BOOLs instead of bools
* fix(gitignore): hide .pyc files
2023-12-29 17:07:00 +01:00
gir489
9bedcca8a4
Added sanity checks to vehicle_allow_all_weapons() to prevent an EXCEPTION_ACCESS_VIOLATION on m_vehicle when first entering it. (#2612)
Made the weapons lists in Self->Weapons->Ammunation and Weapon Hotkey sorted by name instead of a completely random order.
2023-12-20 14:16:03 +01:00
gir489
e544e02e55
Refactored Allow All Vehicles (#2604)
* Refactored Allow All Vehicles to use the current seat the ped is in to fetch the animation info that the car is currently using.
* Update gtav-classes tag hash.
* Removed GROUP_SMG from the allow all weapons false scenario.
2023-12-19 17:15:52 +01:00
gir489
8e8919ec56
fix(SpeedoMeter): squished drawing on mobile phone (#2601) 2023-12-18 23:38:08 +01:00
gir489
e9fdc86239
Fixed unlockveh using the player id instead of ped (#2591)
* Fixed unlockveh command using the Player ID for the arguments instead of the Player Ped.

* Fixed lock/unlock vehicle door calls to use the eVehicleLockState enum.
2023-12-18 14:59:35 +01:00
Aure7138
8b62dadcd5
Update crossmap and natives.hpp to 3095. (#2565) 2023-12-15 16:01:57 +01:00
HCR-750F
f3faa8540f
fix(Globals): off radar and fast respawn globals (#2568) 2023-12-15 16:01:36 +01:00
gir489
9dd1d49ed4
Removed m_velocity from CVehicle. (#2563) 2023-12-15 11:10:30 +01:00
gir489
a07142ebf2
Closes https://github.com/YimMenu/YimMenu/issues/2559 (#2561)
Closes https://github.com/YimMenu/YimMenu/issues/2560
Closes https://github.com/YimMenu/YimMenu/issues/2552
2023-12-15 00:35:00 +01:00
gir489
7f20e01938
Fixed incorrect pointer type for PBOOL on line 92. (#2545) 2023-12-14 19:55:41 +01:00
gir489
f0aa601c18
Fixed LS Customs camera being stuck on certain vehicles. (#2539) 2023-12-14 10:58:24 +01:00
gir489
695a6dd20e
Fixes for b3095 (#2537)
* Refactored TRIGGER_SCRIPT_EVENT for the duplicate f_2 argument they added in 3095.
Fixed OOB gadget spam caused by the tow truck.
Increased max interiors in InteriorControl.
* Updated scripted_game_event.
* Update GTAV-Classes repo.
* Fixed locals for 3095.
* Bump project to Build 3095.
2023-12-14 00:56:40 +01:00
horizon
ffd89153b5
Added Oppressor Mk 1's gliding ability to vehicle abilities. (#2538) 2023-12-14 00:54:59 +01:00
gir489
db61b1ff85
Added the ability to use guns in airplanes with allow_all_weapons. (#2536) 2023-12-13 23:43:18 +01:00
gir489
b7b901d77f
Fixed TRIGGER_SCRIPT_EVENT for 3095. (#2527) 2023-12-13 19:32:26 +01:00
gir489
cb5f01567c
Made LS Customs accept any car. (#2524) 2023-12-13 18:25:39 +01:00
gir489
efef962fe8
Fix script patch signature causing crash (yubie-re) (#2523)
Redesigned the script patcher to assign the signatures names, so if they fail, it will print out its name.
2023-12-12 23:37:31 +01:00
horizon
0798a413f9
Updated vehicle_abilities.cpp to work with latest GTAV-Classes PR (#2509) 2023-12-12 15:46:59 +01:00
Aure7138
7299be8cb8
fix(player_command): memory leak (#2504) 2023-12-12 09:50:52 +01:00
gir489
d2bcd69eac
Fixed Jet Assisted Take Off not working on Bombushka if the player was using Instant Refill of boost. (#2511) 2023-12-12 09:50:07 +01:00
Aure7138
1869389606
refactor(command): get_suggestions (#2507) 2023-12-12 09:18:41 +01:00
Aure7138
e6c4a6a1d6
fix(player_command): execution failure (#2503) 2023-12-11 08:42:13 +01:00
gir489
461ce57ac6
feat: allow invalid outfits to be applied (#2501) 2023-12-10 12:52:42 +01:00
thehorizon84
6d64bcd1d7
feat: Unlock Interaction Menu, Weapon Explosion Radius Modifier & improve fast respawn(#2489) 2023-12-08 14:13:06 +01:00
gir489
95b9724fff
Added more spam messages to the filter. (#2488)
* Added more spam messages to the filter.

* Removed duplicate remote control vehicle button from the player vehicle menu.

* Added heuristical spam detector.

* Fixed clock in spam logger.

* Added date output to the chat logger.

* Added a message to show the user when someone is spamming.
More static text translations.

* Removed redundant mobile global in scr_globals.hpp.

* Added a spam reason to the spam logger.

* Added team/all to the chat logger.
Added a logger call for the user's chats.
2023-12-07 20:04:00 +01:00
thehorizon84
b80865f34c
Vehicle Abilities (#2474)
Co-authored-by: Yimura <24669514+Yimura@users.noreply.github.com>
2023-12-05 11:35:05 +01:00
gir489
522fd3bac3
Fixed player getting ejected from nightclub while holding weapon. (#2447)
* Fixed nightclub ejecting the player if they had weapons equipped with Allow Weapons in Interiors on.
* Fix jittering weapons in the freakshop.
* Added all carmod shop scripts to prevent jittering in interiors.
2023-11-24 21:34:33 +01:00
gir489
3275459431
Removed globalplayer_bd IsInvisible set call. (#2416) 2023-11-16 19:47:19 +01:00
thehorizon84
ef355736a2
Player Database Enhancement (#2411)
Added 'Send Friend Request' through the player's rockstar ID.
2023-11-14 20:20:26 +01:00
thehorizon84
5c86d767a7
Fix 'Disable Ocean' not resetting ocean heights correctly on disable (#2404) 2023-11-11 00:02:43 +01:00
gir489
3b714f5c67
fix: Health decuction while in god mode (#2398)
Closes #2164
Closes #2397
Closes #2399
2023-11-09 10:34:00 +01:00
thehorizon84
dc321104c4
feat: New world options + Request Gun Van anywhere (#2393)
+ World -> Gravity Editor (with presets for ease of use)
+ World -> Waypoint Beacon
+ World -> Objective Beacon
+ World -> Time And Weather -> Ground Snow
+ Self -> Mobile -> Request Gun Van (spawns the gun van right in front of you no matter where you are)
2023-11-08 23:16:10 +01:00
thehorizon84
2121ff2b7e
feat: Modify ocean level and add direct invite player from DB (#2384) 2023-11-05 22:39:53 +01:00
gir489
864e15a0bc
fix: Submarine crash and allowing empty JSON filenames to be saved (#2380) 2023-11-05 13:54:15 +01:00
Andreas Maerten
1263f26dc1
refactor(Reactions): translations and change formatting to std::format (#2382)
* refactor(Reactions): replace snprintf strings with std::format
* feat(Reactions): move reaction strings to translation repo
* fix(Notify): crash formatting
2023-11-05 13:00:51 +01:00
HCR-750F
7aad4c5860
refactor(reaction): rework reaction code (#2331)
1. Allow interloper_reaction to use timeout.
2. Fix crash reaction(except TSE) cannot use announce in chat.
3. Allow all friends to bypass auto kick spammers, modder flag and  reactions.
Provides an alternative for users who experience this weird bug https://github.com/YimMenu/YimMenu/issues/2266 . They can just trust their friends until someone provides valuable information for developers to fix.
4. Allow trusting specific players (bypass auto kick spammers, modder flag and reactions).
5. Trust the whole session temporarily (Avoid team members being kicked when in mission).
6. Remove duplicate logs when blocking crash (except for TSE crash)
7. remove unused gamer_instruction_kick in reaction list
8. Allow announce in team only chat
2023-11-04 14:54:32 +01:00
DayibBaba
db5e47d2ce
Xml Map Loader (Menyoo) (#2233)
Co-authored-by: Yimura <24669514+Yimura@users.noreply.github.com>
2023-11-04 00:23:37 +01:00
DayibBaba
ab5c484948
New Flying feature (#2206)
* Remove ultra trash feature
* Added extra raycast
* refactor(OptionsModal): Support translations
* feat(Components): added input float
* feat(SuperHeroFly): converted code to commands and move strings to translations

---------

Co-authored-by: Yimura <24669514+Yimura@users.noreply.github.com>
2023-11-04 00:22:43 +01:00
Andreas Maerten
cd01243904
fix(SpeedoMeter): drawing inside of phone (#2378) 2023-11-03 21:31:09 +01:00
gir489
990946119f
Fixed Rain Vehicles using static text. (#2346) 2023-10-30 22:01:33 +01:00