From 4dfc660a11f7208f4ae5f2ce65f754094bb5f608 Mon Sep 17 00:00:00 2001 From: pongo1231 Date: Fri, 28 Jul 2023 21:48:06 +0000 Subject: [PATCH] ChaosMod: Apply invincibility during "Random Gravity" effect --- ChaosMod/Effects/db/Misc/MiscGravityController.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ChaosMod/Effects/db/Misc/MiscGravityController.cpp b/ChaosMod/Effects/db/Misc/MiscGravityController.cpp index 5f019015b..331c4fa32 100644 --- a/ChaosMod/Effects/db/Misc/MiscGravityController.cpp +++ b/ChaosMod/Effects/db/Misc/MiscGravityController.cpp @@ -167,6 +167,8 @@ REGISTER_EFFECT(OnStartSideways, OnStop, OnTickSideways, EffectInfo static Vector3 randomGravityForce; static void OnTickRandom() { + SET_ENTITY_INVINCIBLE(PLAYER_PED_ID(), true); + Memory::SetGravityLevel(0.f); static DWORD lastTick;