Skip to content

Commit

Permalink
Replace "Fake Crash" effect with "Nothing"
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptedSnark committed Mar 16, 2024
1 parent 8b460b5 commit 10ebbd9
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 75 deletions.
2 changes: 1 addition & 1 deletion GSChaos/CChaos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void CChaos::FeatureInit()
RegisterChaosFeature<CFeatureZeroGravity>();
RegisterChaosFeature<CFeatureInvisibleEntities>();
RegisterChaosFeature<CFeatureOhio>();
RegisterChaosFeature<CFeatureFakeCrash>();
RegisterChaosFeature<CFeatureNothing>();
RegisterChaosFeature<CFeatureDarkness>();
RegisterChaosFeature<CFeatureTotem>();
RegisterChaosFeature<CFeatureForgotCSS>();
Expand Down
29 changes: 0 additions & 29 deletions GSChaos/CFeatureFakeCrash.cpp

This file was deleted.

39 changes: 0 additions & 39 deletions GSChaos/CFeatureFakeCrash.h

This file was deleted.

21 changes: 21 additions & 0 deletions GSChaos/CFeatureNothing.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include "includes.h"

void CFeatureNothing::Init()
{
CChaosFeature::Init();
}

void CFeatureNothing::ActivateFeature()
{
CChaosFeature::ActivateFeature();
}

void CFeatureNothing::DeactivateFeature()
{
CChaosFeature::DeactivateFeature();
}

const char* CFeatureNothing::GetFeatureName()
{
return "Nothing";
}
37 changes: 37 additions & 0 deletions GSChaos/CFeatureNothing.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
* Copyright - ScriptedSnark, 2024.
* CFeatureNothing.h - description
*
* Project (Project desc) header file
* Authors: ScriptedSnark.
* Do not delete this comment block. Respect others' work!
*/

#ifdef CFEATURENOTHING_H_RECURSE_GUARD
#error Recursive header files inclusion detected in CFeatureNothing.h
#else //CFEATURENOTHING_H_RECURSE_GUARD

#define CFEATURENOTHING_H_RECURSE_GUARD

#ifndef CFEATURENOTHING_H_GUARD
#define CFEATURENOTHING_H_GUARD
#pragma once

#ifdef __cplusplus

class CFeatureNothing : public CChaosFeature
{
void Init() override;
void ActivateFeature() override;
void DeactivateFeature() override;
const char* GetFeatureName() override;
};

#else //!__cplusplus
#error C++ compiler required to compile CFeatureNothing.h
#endif //__cplusplus

#endif //CFEATURENOTHING_H_GUARD

#undef CFEATURENOTHING_H_RECURSE_GUARD
#endif //CFEATURENOTHING_H_RECURSE_GUARD
4 changes: 2 additions & 2 deletions GSChaos/GSChaos.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<ClCompile Include="CFeatureDarkness.cpp" />
<ClCompile Include="CFeatureEntitySpin.cpp" />
<ClCompile Include="CFeatureExplosion.cpp" />
<ClCompile Include="CFeatureFakeCrash.cpp" />
<ClCompile Include="CFeatureNothing.cpp" />
<ClCompile Include="CFeatureFly.cpp" />
<ClCompile Include="CFeatureForgotCSS.cpp" />
<ClCompile Include="CFeatureGiveGauss.cpp" />
Expand Down Expand Up @@ -226,7 +226,7 @@
<ClInclude Include="CFeatureDarkness.h" />
<ClInclude Include="CFeatureEntitySpin.h" />
<ClInclude Include="CFeatureExplosion.h" />
<ClInclude Include="CFeatureFakeCrash.h" />
<ClInclude Include="CFeatureNothing.h" />
<ClInclude Include="CFeatureFly.h" />
<ClInclude Include="CFeatureForgotCSS.h" />
<ClInclude Include="CFeatureGiveGauss.h" />
Expand Down
4 changes: 2 additions & 2 deletions GSChaos/GSChaos.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<ClCompile Include="CFeatureOhio.cpp">
<Filter>Effects</Filter>
</ClCompile>
<ClCompile Include="CFeatureFakeCrash.cpp">
<ClCompile Include="CFeatureNothing.cpp">
<Filter>Effects</Filter>
</ClCompile>
<ClCompile Include="CFeatureDarkness.cpp">
Expand Down Expand Up @@ -301,7 +301,7 @@
<ClInclude Include="CFeatureOhio.h">
<Filter>Effects</Filter>
</ClInclude>
<ClInclude Include="CFeatureFakeCrash.h">
<ClInclude Include="CFeatureNothing.h">
<Filter>Effects</Filter>
</ClInclude>
<ClInclude Include="engine\enginecallback.h">
Expand Down
2 changes: 1 addition & 1 deletion GSChaos/includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ extern bool g_bEncrypted;
#include "CFeatureZeroGravity.h"
#include "CFeatureInvisibleEntities.h"
#include "CFeatureOhio.h"
#include "CFeatureFakeCrash.h"
#include "CFeatureNothing.h"
#include "CFeatureDarkness.h"
#include "CFeatureTotem.h"
#include "CFeatureForgotCSS.h"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ If you don't want to play with this feature, rename `twitch.ini` to `twitch_DISA
> Zero Gravity
> Invisible entities
> Ohio
> Fake Crash
> Nothing
> Darkness
> Totem of Undying
> Forgot to install CS 1.6 :o
Expand Down

0 comments on commit 10ebbd9

Please sign in to comment.