209 Commits

Author SHA1 Message Date
Quentin
da028f03b3
fix(vehicle fix all): fix incorrectly fixing everyone vehicles instead of only the targeted one (#2332) 2023-10-23 20:56:13 +02:00
gir489
0c550f158b
Refactor duration_cast calls to use implicit time calculations without extraneous count calls. (#2333) 2023-10-23 20:55:45 +02:00
gir489
352878b8b9
Various translation fixes (#2322)
* Closes #2321
2023-10-22 00:10:46 +02:00
gir489
37468ca7b0
Converted all static strings to translation keys. (#2284) 2023-10-20 18:24:44 +02:00
Quentin
f9c948f909
fix(teleport): code reuse / fix lot of unnecessary logic running for tping our own ped. (#2246) 2023-10-13 00:10:18 +02:00
gir489
207e5457f9
Fixed persist outfit thinking the player was showering when they were not (#2203)
* Fixed a crash emanating from mobile_service::register_vehicles if the vehicle needed to be refreshed.
2023-09-27 09:41:24 +02:00
gir489
b28ce2188d
Fixed fillsnacks not working. (#2180) 2023-09-23 11:54:30 +02:00
gir489
afd3a5e943
Add Garage drop-down to Spawn PV menu (#2171)
* Fixed edge case where a garage that contained only banned vehicles would show if the user was using Spawn Clone.
Refactored a large portion of the garage code to be production ready.
Formatting changes.

* Added singular garage items to the m_garage setter like the Terrorbyte.

* Fixed is_blacklisted_vehicle returning an inverted condition.
Fixed Garage drop-down not updating properly.

* Separated out m_garage's setter into a ctor function.
Replaced the 4 singular garages that use an overloaded index with a define to be able to shift them easier when new properties are added.

* Removed obsolete and incorrect player.character_slot config entry.
Removed deprecated local_player.hpp.
Added self::char_slot that is guaranteed to be correct.

* Removed extraneous semi-colon.

* Added more stuff to fillsnacks.
Removed more extraneous usages of MPPLY_LAST_MP_CHAR.

* Added the vehicle's name to player info.

* Fixed get_property_garage_size returning the incorrect size for the facility.
Fixed get_static_property_name returning the Nightclub's name instead of Nightclub Service Entrance to maintain consistency with the Mechanic.
Fixed garage_slot_iterator not starting and ending at the correct indexes.

* Shifted the singular properties down one to compensate for the new math.

* Fixed backwards math on Terrorbyte and Nightclub B1.

* Fixed garage not being updated when the player moved the vehicle.

* Fixed backwards comments.
2023-09-22 23:16:33 +02:00
張致強
639d776267
fix(NoRecoil): remove sniper scope recoil (#2168) 2023-09-21 20:06:06 +02:00
gir489
04cfa46d78
Closes #2152 (#2156)
* Reduces natives called in hotkey_service::wndproc to prevent collisions.
* Removed debug code from carmod_shop::STAT_GET_INT
* Fixed #2152.
* Added sanity check to script thread in hotkey_service::wndproc.
Made is_mp_chat_active atomic to ensure cache coherence.
* Closes #2164
2023-09-20 16:27:39 +02:00
gir489
347f33fb2d
Disable input when typing into a text field. (#2140)
Closes #2139
2023-09-17 22:23:26 +02:00
gir489
3e65e02eda
Various fixes (#2135) 2023-09-16 17:49:18 +02:00
maybegreat48
4b8e350628
Anticheat bypass fix (#2128) 2023-09-16 13:44:03 +02:00
張致強
59cc4f2aa7
fix(NoRecoil): GTAV-Classes offsets were changed (#2131)
Fixes #2120
2023-09-15 11:42:01 +02:00
張致強
0c6acb7581
feat(Vehicle): Added option to override vehicle weapons. (#2081) 2023-09-14 17:19:32 +02:00
Andreas Maerten
43bf73ba56
fix(EmptySession): use translation in command label (#2112) 2023-09-10 22:24:13 +02:00
Andreas Maerten
956d8110a0
fix(MultiKick): Crash when calling CNetGamePlayer::is_host (#2106) 2023-09-09 11:32:55 +02:00
Andreas Maerten
3385a0d7fb
feat(Settings): disable force relays by default (#2104)
* feat(ForceRelayCxnCmd): move label and desc to translations
* fix(TranslationService): Force updating languages wouldn't regenerate cache
2023-09-09 00:04:08 +02:00
Patryk
a3532a6436
(fix) Seatbelt values are set to opposite (#2085) 2023-09-08 23:58:51 +02:00
alyxme
29fdb5c3bc
Fix(freecam) unfreeze vehicle after freecam (#2101)
Closes #2093
2023-09-08 13:08:26 +02:00
Patryk
1594ee1f76
fix: Passive not working correctly (#2040) 2023-09-02 20:58:13 +02:00
gir489
cf07cfec04
Redesigned Vehicle Spawn menus to have consistent features. (#2063)
Closes #2053
2023-08-31 15:43:55 +02:00
Andreas Maerten
4c6226d022
fix(MultiKick): check against player nullptr (#2057)
* fix(MultiKick): check player ptr before using it

* fix(Kick): guard other commands against nullptr player ptr
2023-08-29 23:58:44 +02:00
gir489
e58f9610b3
Refactored Allow All Vehicles in Heists to use the tunables service and backup the values before writing them. (#2036) 2023-08-28 12:56:29 +02:00
gir489
100de3fee5
Rework Keep Vehicle Repaired to remove damage decals properly. (#2044)
* Keep Vehicle Repaired now uses CDecalManager to remove damage decals which allows it to ignore clan and livery decals.

* Added more conditions to call SET_VEHICLE_FIXED to fix things like the R88 breaking its shell off.
Fixed Seatbelt having inverted conditions.

* Fixed keep_vehicle_repaired repairing things it doesn't need to repair if godmode/always clean is on already.
Fixed spawn_vehicle_json not applying the radio station.

* Consolidated signature for CDecalMgr::ClearDecals and its static instance.
2023-08-28 11:35:17 +02:00
Niuu
e1a2ee21ea
(feat) Add passive toggle switch button and hotkey (#2015)
* (fix) Disable looped "time to end passive" in weaponized vehicles
2023-08-24 22:56:35 +02:00
gir489
066f659cfe
Move all global indices into scr_globals.hpp. (#2018) 2023-08-24 22:06:50 +02:00
gir489
678a021f27
More general fixes (#2011)
* Closes #2008
* Closes #2016
* Closes #1917
* Closes #2012.
2023-08-24 20:23:50 +02:00
gir489
81e43b51d7
Fixes Idle Kick to replace the globals that freemode.c4 uses to determine idle time. (#1979) 2023-08-19 13:02:26 +02:00
T14D3
6c1e821d60
Various fixes (#1983)
* Closes #1928
* Closes #1925
* Closes #1864
2023-08-19 13:01:59 +02:00
maybegreat48
5eead0436f
Huge protection improvements and other stuff (#1963)
* feat(protections): add a fuzzer
* feat(protections): improve protections
* feat(spoofing): add warning
* feat(world): force object cleanup
* fix(weapons): fix custom weapon code
* fix(weapons): fix for #1983
2023-08-19 13:01:08 +02:00
kbabrmover1995
a47af68384
Sending all kick methods (#1921) 2023-08-12 20:45:28 +02:00
gir489
e87931bf60
Added check for IS_VEHICLE_DOOR_DAMAGED in keep_vehicle_repaired. (#1933)
Fixed Selected Teleport not showing up in hotkeys menu.
Added Yim's Vehicle cleanup code from the halted PR.
2023-08-07 10:16:08 +02:00
gir489
32472ff524
Fixed regression issue with rocket boosting while using Hold for Boost scenario. (#1929) 2023-08-06 20:52:55 +02:00
gir489
e1c0f97cd3
Fixed KERS boost not being handled by vehicle_boost_behavior. (#1922) 2023-08-06 10:36:48 +02:00
DayibBaba
ee364cd684
Ped animations interface (#1668) 2023-08-04 14:43:35 +02:00
Andreas Maerten
b7b13ac638
Disable path traversal for Project File/Folder and added Session Switch command (#1908) 2023-08-02 21:38:22 +02:00
gir489
fa0f2b4071
Fix personal vehicles getting godmode removed when you leave them. (#1907) 2023-08-01 22:30:21 +02:00
MoneyDropLobby
bb9ea84862
chore: Use override keyword in commands to make sure virtual funcs are properly overwritten (#1897) 2023-08-01 11:10:14 +02:00
Andreas Maerten
96493b5a22
refactor!: Modify command argument handling and move on_ method to bool_command (#1826) 2023-07-26 22:22:40 +02:00
HCR-750F
f73c1bdc98
Fix crash reaction and add more translation key (#1850) 2023-07-26 18:26:09 +02:00
Quentin
e0f7482ce4
fix(vehicle-god): fix armored vehicles losing armor when vehicle god get disabled. (#1794) 2023-07-25 15:43:28 +02:00
HCR-750F
cf2ada366c
chore: Add "Timeout" as a reaction (#1837) 2023-07-25 11:00:21 +02:00
Rxann
0b2b32dc34
Added Empty lobby button (#1812) 2023-07-24 22:10:44 +02:00
Andreas Maerten
0289576677
fix(byte_patch): sometimes the page protections get modified between apply and restore: make sure the protections are fine for us to memcpy. (#1831)
* feat(BytePatch): add is_active member function
* fix(byte_patch): sometimes the page protections get modified between the apply and restore of the byte_patch, make sure the protections are fine for us to memcpy

Co-authored-by: Quentin E. / iDeath <xiaoxiao921@hotmail.fr>
2023-07-24 16:13:09 +02:00
Andreas Maerten
17d3ad7658
refactor: make window hook into a bool command (#1824) 2023-07-23 22:52:30 +02:00
Quentin
84e3262694
feat(noclip): fix aim nullifying noclip speed. (#1791)
* keep using SET_ENTITY_VELOCITY when not aiming
* provide GUI for editing speed of noclip
2023-07-23 18:56:08 +02:00
TheGreenBandit
ae486ca129
Rework rgb for fun vehicle and paintgun (#1783)
Closes #1819
2023-07-23 18:51:57 +02:00
maybegreat48
09a189eb4d
Force relay connections (#1813)
* feat(protections): add force relay servers
* feat(network): add support for non-direct connections
* feat(info): add helpful tooltip to prevent unnecessary bug reports
2023-07-23 18:47:25 +02:00
maybegreat48
e7562bcdff
Improve protections and other random changes (#1803)
* feat(protections): better logging
* feat(protections): improve protections
* fix(globals): save all spoofing settings
2023-07-22 23:18:47 +02:00