2019-05-30 19:24:47 +00:00
|
|
|
#pragma once
|
2019-07-04 20:31:21 +00:00
|
|
|
#include "Weapon.h"
|
|
|
|
|
2019-07-09 16:50:35 +00:00
|
|
|
class CVehicle;
|
|
|
|
class CPed;
|
|
|
|
|
2019-07-04 20:31:21 +00:00
|
|
|
enum eKillFrenzyStatus
|
|
|
|
{
|
2019-07-07 07:13:04 +00:00
|
|
|
KILLFRENZY_NONE,
|
2019-07-04 20:31:21 +00:00
|
|
|
KILLFRENZY_ONGOING,
|
|
|
|
KILLFRENZY_PASSED,
|
|
|
|
KILLFRENZY_FAILED,
|
|
|
|
};
|
2019-05-30 19:24:47 +00:00
|
|
|
|
|
|
|
class CDarkel
|
|
|
|
{
|
2019-06-14 23:34:19 +00:00
|
|
|
private:
|
2019-07-04 20:31:21 +00:00
|
|
|
static int32 &TimeLimit;
|
|
|
|
static int32 &PreviousTime;
|
|
|
|
static int32 &TimeOfFrenzyStart;
|
|
|
|
static int32 &WeaponType;
|
|
|
|
static int32 &AmmoInterruptedWeapon;
|
|
|
|
static int32 &KillsNeeded;
|
|
|
|
static int8 &InterruptedWeapon;
|
|
|
|
static int8 &bStandardSoundAndMessages;
|
|
|
|
static int8 &bNeedHeadShot;
|
|
|
|
static int8 &bProperKillFrenzy;
|
|
|
|
static eKillFrenzyStatus &Status;
|
|
|
|
static int16 *RegisteredKills;
|
|
|
|
static int32 &ModelToKill;
|
|
|
|
static int32 &ModelToKill2;
|
|
|
|
static int32 &ModelToKill3;
|
|
|
|
static int32 &ModelToKill4;
|
|
|
|
static wchar *pStartMessage;
|
2019-06-14 23:34:19 +00:00
|
|
|
|
2019-05-30 19:24:47 +00:00
|
|
|
public:
|
2019-07-04 20:31:21 +00:00
|
|
|
static int32 CalcFade(uint32 time, int32 min, uint32 max);
|
2019-05-30 19:24:47 +00:00
|
|
|
static void DrawMessages(void);
|
2019-06-14 23:34:19 +00:00
|
|
|
static bool FrenzyOnGoing();
|
2019-07-04 20:31:21 +00:00
|
|
|
static void Init();
|
|
|
|
static int16 QueryModelsKilledByPlayer(int32 modelId);
|
|
|
|
static eKillFrenzyStatus ReadStatus();
|
2019-07-09 16:50:35 +00:00
|
|
|
static void RegisterCarBlownUpByPlayer(CVehicle *vehicle);
|
|
|
|
static void RegisterKillByPlayer(CPed *victim, eWeaponType weapontype, bool headshot = false);
|
2019-07-04 20:31:21 +00:00
|
|
|
static void RegisterKillNotByPlayer();
|
|
|
|
static void ResetModelsKilledByPlayer();
|
|
|
|
static void ResetOnPlayerDeath();
|
|
|
|
static void StartFrenzy(eWeaponType weaponType, int32 time, int16 kill, int32 modelId0, wchar *text, int32 modelId2, int32 modelId3, int32 modelId4, bool standardSound, bool needHeadShot);
|
|
|
|
static void Update();
|
|
|
|
|
2019-05-30 19:24:47 +00:00
|
|
|
};
|