-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a5b324
commit 7b17870
Showing
7 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include "includes.h" | ||
|
||
void CFeatureLongJump::Init() | ||
{ | ||
CChaosFeature::Init(); | ||
} | ||
|
||
void CFeatureLongJump::ActivateFeature() | ||
{ | ||
CChaosFeature::ActivateFeature(); | ||
} | ||
|
||
void CFeatureLongJump::DeactivateFeature() | ||
{ | ||
CChaosFeature::DeactivateFeature(); | ||
} | ||
|
||
void CFeatureLongJump::PM_Jump() | ||
{ | ||
g_svpmove->velocity.x *= 2.0f; | ||
g_svpmove->velocity.y *= 2.0f; | ||
} | ||
|
||
const char* CFeatureLongJump::GetFeatureName() | ||
{ | ||
return "Long Jump"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* Copyright - ScriptedSnark, 2024. | ||
* CFeatureLongJump.h | ||
* | ||
* Project (GSChaos) header file | ||
* Authors: ScriptedSnark. | ||
* Do not delete this comment block. Respect others' work! | ||
*/ | ||
|
||
#ifdef CFEATURELONGJUMP_H_RECURSE_GUARD | ||
#error Recursive header files inclusion detected in CFeatureLongJump.h | ||
#else //CFEATURELONGJUMP_H_RECURSE_GUARD | ||
|
||
#define CFEATURELONGJUMP_H_RECURSE_GUARD | ||
|
||
#ifndef CFEATURELONGJUMP_H_GUARD | ||
#define CFEATURELONGJUMP_H_GUARD | ||
#pragma once | ||
|
||
#ifdef __cplusplus | ||
|
||
class CFeatureLongJump : public CChaosFeature | ||
{ | ||
void Init() override; | ||
void ActivateFeature() override; | ||
void DeactivateFeature() override; | ||
void PM_Jump() override; | ||
const char* GetFeatureName() override; | ||
}; | ||
|
||
#else //!__cplusplus | ||
#error C++ compiler required to compile CFeatureLongJump.h | ||
#endif //__cplusplus | ||
|
||
#endif //CFEATURELONGJUMP_H_GUARD | ||
|
||
#undef CFEATURELONGJUMP_H_RECURSE_GUARD | ||
#endif //CFEATURELONGJUMP_H_RECURSE_GUARD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters