Skip to content

Commit

Permalink
ChaosMod: Apply invincibility during "Random Gravity" effect
Browse files Browse the repository at this point in the history
  • Loading branch information
pongo1231 committed Jul 28, 2023
1 parent f6d20ad commit 4dfc660
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChaosMod/Effects/db/Misc/MiscGravityController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4dfc660

Please sign in to comment.