|
1 | 1 | This command resets ("cleans up") multiple settings that are usually set during missions and in some scripts. This helps in getting the game back to "normal" without the need to keep track of multiple settings. This command can only have an effect if it is called within a script launched as a mission using LOAD_AND_LAUNCH_MISSION_INTERNAL or, in GTA III and Vice City only, LAUNCH_MISSION; it has no effect elsewhere. The script does not need to follow the mission structure for this command to work. |
| 2 | + |
| 3 | +## Effects |
| 4 | + |
| 5 | +### Rendering & Visuals |
| 6 | + |
| 7 | +- **Streaming:** Enable streaming. |
| 8 | +- **3D Markers Rendering:** Re-enable rendering distance limit. |
| 9 | +- **Extra Colour TimeCycle:** Stop extra color if on main map. |
| 10 | + |
| 11 | +- **Post Effects:** Reset script-applied post effects. |
| 12 | +- **Radar / Map Blips:** |
| 13 | + - Reset radar zoom value |
| 14 | + - Reset `RadarShowBlipOnAllLevels` flag |
| 15 | + - Re-enable frontend blips. |
| 16 | +- **Hud:** |
| 17 | + - Re-enable script-controlled radar, vehicle name, area name, and forced-counters display. |
| 18 | + - Ensure scripts allow HUD display. |
| 19 | + - Re-enable update stats display. |
| 20 | + - Reset HUD help message box size to `200.0f`. |
| 21 | + - Clear item-to-flash. |
| 22 | + |
| 23 | +### Camera & Input |
| 24 | + |
| 25 | +- **Camera:** |
| 26 | + - Reset camera heading variables for turret mode. |
| 27 | + - Turn widescreen off. |
| 28 | + - Restore two-player camera mode defaults. |
| 29 | + - Allow first-person-in-car mode. |
| 30 | + - Force cinema cam off. |
| 31 | + - Initialize scriptable camera components. |
| 32 | + - Set camera distance and scripted fixed-camera collision flag to defaults. |
| 33 | + - Disable overlays (e.g. video/lift). |
| 34 | +- **Input:** |
| 35 | + - Reset ducking system. |
| 36 | + - Reset drunk input delay to `0`. |
| 37 | + - Re-enable button controls. |
| 38 | + - Re-enable drive-by ability. |
| 39 | +- **Crosshair:** Turn script crosshair off. |
| 40 | +- **Frontend Widescreen Pause:** Disable `bPauseWhenInWidescreen` flag. |
| 41 | +- **Shop/Mini-game Camera Handling:** If not in mini-game, restore camera (unless player in remote vehicle) and restore player control; clear help message. |
| 42 | + |
| 43 | +### Player & Population |
| 44 | + |
| 45 | +- **Player Fire Damage Multiplier:** Reset to `1.0`. |
| 46 | +- **Player Group Defaults:** Restore player's group intelligence, decision-maker, default task allocator, and max separation; re-enable group behaviors (no forced follow/never follow), make group reappear. |
| 47 | +- **Ped Speech:** Re-enable ped speech and script ped speech. |
| 48 | +- **Ped Type Relationships:** Clear acquaintances/relationships between normal ped types and mission ped types and clear all relationships of mission ped types to everything. |
| 49 | +- **Forced Ped Type:** Reset forced ped type. |
| 50 | +- **Gang War Triggers:** Disable triggering gang wars from missions and clear specific trigger zones. |
| 51 | +- **Gang Wars Training:** Clear training-mission flag and refresh zone gang colors. |
| 52 | +- **Zone Gang Colors:** Refresh zone gang colors. |
| 53 | +- **Riot:** Reset gunshot sense range. |
| 54 | +- **Riot Intensity:** Reset to `0`. |
| 55 | + |
| 56 | +### World & Environment |
| 57 | + |
| 58 | +- **Ambient Crime:** Re-enable ambient crime. |
| 59 | +- **Ambient Planes:** Switch ambient planes on. |
| 60 | +- **Military Zones:** Re-enable military cull zones. |
| 61 | +- **Crane Controls:** Re-enable crane controls. |
| 62 | +- **Entry/Exit Manager:** Re-enable entry/exit functionality. |
| 63 | +- **Fire Generations Limit:** Reset max script fire generations to `99999`. |
| 64 | +- **Garages Respray:** Clear `NoResprays` and open/close all resprays. |
| 65 | +- **Weather:** Release mission weather and return control to normal weather system. |
| 66 | +- **Path Nodes:** Release requested path nodes, unmark "don't wander" road nodes, tidy node switches. |
| 67 | +- **Population Density:** Reset pedestrian and car density multipliers to `1.0`. |
| 68 | +- **Random NPC/Cops Creation:** Re-enable creation of random gang members and cops; disable "only create random gang members". |
| 69 | +- **Random Trains:** Re-enable random trains and release mission trains. |
| 70 | +- **Road Blocks:** Clear script-created roadblocks. |
| 71 | +- **SAM Sites Flags:** |
| 72 | + - Reset Area51 SAM disabled flag to `false`. |
| 73 | + - Set aircraft carrier SAM disabled to `true`. |
| 74 | + |
| 75 | +### Vehicles & Entities |
| 76 | + |
| 77 | +- **Cop Bikes Streaming Flag:** Re-enable cop bikes streaming. |
| 78 | +- **Store Vehicle Cleanup:** Reset store vehicle index to `-1` and mark it was random. |
| 79 | +- **Suppressed Car Models / Forced Random Car:** Clear suppressed car models list; set forced random car model to `-1`. |
| 80 | +- **Upside-down / Stuck Cars Lists:** Clear upside-down and stuck cars arrays. |
| 81 | +- **Vehicle Recordings:** Unload unused vehicle recordings. |
| 82 | +- **Vehicle Remote Detonation:** Re-enable remote detonation and detonation-on-contact. |
| 83 | + |
| 84 | +### Mission & Script |
| 85 | + |
| 86 | +- **Mission Audio:** Clear mission audio slots. |
| 87 | +- **Mission Pickups:** Remove mission pickups. |
| 88 | +- **Mission-Created Entities Cleanup:** for all entries: |
| 89 | + - For `CLEANUP_CAR`: Validate mission vehicle and call `CleanUpThisVehicle`. |
| 90 | + - For `CLEANUP_CHAR`: Validate mission char and call `CleanUpThisPed`. |
| 91 | + - For `CLEANUP_OBJECT`: Validate mission object and call `CleanUpThisObject`. |
| 92 | + - For `CLEANUP_EFFECT_SYSTEM`: Delete script particle effects. |
| 93 | + - For `CLEANUP_DECISION_MAKER`: Unload decision maker. |
| 94 | + - For `CLEANUP_PEDGROUP`: Remove ped group. |
| 95 | + - For `CLEANUP_SEQUENCE_TASK`: Flush sequences. |
| 96 | + - For `CLEANUP_ATTRACTOR`: Deactivate scripted attractors. |
| 97 | + - For `CLEANUP_SEARCHLIGHT`: Remove script searchlight. |
| 98 | + - For `CLEANUP_CHECKPOINT`: Remove script checkpoint. |
| 99 | + - For `CLEANUP_TEXTURE_DICTIONARY`: Remove script texture dictionary. |
| 100 | + - Remove each entity from the cleanup list after handling. |
| 101 | +- **Script Coop Flag:** Clear `bScriptCoopGameGoingOn`. |
| 102 | +- **Script Fire Flags:** Clear all script fires. |
| 103 | +- **Script Gang Size Limit:** Reset script limit to gang size to `99`. |
| 104 | +- **Script Text Formatting:** Disable script text formatting and alignment. |
| 105 | +- **Special Characters Requirement:** Mark all special char models as not required by mission. |
| 106 | +- **Trip Skips:** Clear trip skip. |
| 107 | +- **Respawn Point:** Clear mission respawn point override. |
| 108 | + |
| 109 | +### Miscellaneous |
| 110 | + |
| 111 | +- **Drunkenness / Drug State:** Fade drunkenness, clear drug level to `0`. |
| 112 | +- **Mobile Phone Task:** Stop/abort any running mobile-phone use script task. |
| 113 | +- **On-screen Timers:** Unfreeze on-screen timers. |
| 114 | +- **Wanted Multiplier:** Reset player wanted multiplier to `1.0`. |
0 commit comments