-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
synchronizes Mario's crouch state with CJ. allows you to get past the guard in the bar, in the mission Madd Dogg's Rhymes
- Loading branch information
headshot2017
committed
Feb 2, 2024
1 parent
57e16db
commit d310d40
Showing
4 changed files
with
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
Plugin-SDK (Grand Theft Auto San Andreas) header file | ||
Authors: GTA Community. See more here | ||
https://github.com/DK22Pac/plugin-sdk | ||
Do not delete this comment block. Respect others' work! | ||
*/ | ||
#pragma once | ||
|
||
#include "PluginBase.h" | ||
#include "CTaskSimple.h" | ||
#include "CAnimBlendAssociation.h" | ||
#include "CVector2D.h" | ||
|
||
class PLUGIN_API CTaskSimpleDuck2 : public CTaskSimple { | ||
protected: | ||
CTaskSimpleDuck2(plugin::dummy_func_t a) : CTaskSimple(a) {} | ||
public: | ||
unsigned int m_nStartTime; | ||
unsigned short m_nLengthOfDuck; | ||
short m_nShotWhizzingCounter; | ||
CAnimBlendAssociation *m_pDuckAnim; | ||
CAnimBlendAssociation *m_pMoveAnim; | ||
|
||
bool m_bIsFinished; | ||
bool m_bIsAborting; | ||
bool m_bNeedToSetDuckFlag; // incase bIsDucking flag gets cleared elsewhere, so we know to stop duck task | ||
bool m_bIsInControl; // if duck task is being controlled by another task then it requires continuous control | ||
|
||
CVector2D m_vecMoveCommand; | ||
unsigned char m_nDuckControlType; | ||
|
||
unsigned char m_nCountDownFrames; | ||
|
||
CTaskSimpleDuck2(eDuckControlTypes DuckControlType, unsigned short nLengthOfDuck, short nUseShotsWhizzingEvents = -1); | ||
|
||
public: | ||
static bool CanPedDuck(CPed* ped) | ||
{ | ||
return plugin::CallAndReturn<bool, 0x692610, CPed*>(ped); | ||
} | ||
}; | ||
|
||
VALIDATE_SIZE(CTaskSimpleDuck2, 0x28); |
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