diff --git a/reapi/include/cssdk/dlls/API/CSEntity.h b/reapi/include/cssdk/dlls/API/CSEntity.h index 2c69f23..a179efa 100644 --- a/reapi/include/cssdk/dlls/API/CSEntity.h +++ b/reapi/include/cssdk/dlls/API/CSEntity.h @@ -38,8 +38,8 @@ public: } virtual ~CCSEntity() {} - virtual void FireBullets(int iShots, Vector &vecSrc, Vector &vecDirShooting, Vector &vecSpread, float flDistance, int iBulletType, int iTracerFreq, int iDamage, entvars_t *pevAttacker); - virtual Vector FireBullets3(Vector &vecSrc, Vector &vecDirShooting, float vecSpread, float flDistance, int iPenetration, int iBulletType, int iDamage, float flRangeModifier, entvars_t *pevAttacker, bool bPistol, int shared_rand); + virtual void FireBullets(int iShots, Vector &vecSrc, Vector &vecDirShooting, Vector &vecSpread, float flDistance, int iBulletType, int iTracerFreq, int iDamage, entvars_t *pevAttacker) = 0; + virtual Vector FireBullets3(Vector &vecSrc, Vector &vecDirShooting, float vecSpread, float flDistance, int iPenetration, int iBulletType, int iDamage, float flRangeModifier, entvars_t *pevAttacker, bool bPistol, int shared_rand) = 0; public: CBaseEntity *m_pContainingEntity; diff --git a/reapi/include/cssdk/dlls/API/CSPlayer.h b/reapi/include/cssdk/dlls/API/CSPlayer.h index 3367818..1494509 100644 --- a/reapi/include/cssdk/dlls/API/CSPlayer.h +++ b/reapi/include/cssdk/dlls/API/CSPlayer.h @@ -50,51 +50,51 @@ public: m_szModel[0] = '\0'; } - virtual bool IsConnected() const; - virtual void SetAnimation(PLAYER_ANIM playerAnim); - virtual void AddAccount(int amount, RewardType type = RT_NONE, bool bTrackChange = true); - virtual CBaseEntity *GiveNamedItem(const char *pszName); - virtual CBaseEntity *GiveNamedItemEx(const char *pszName); - virtual void GiveDefaultItems(); - virtual void GiveShield(bool bDeploy = true); - virtual void DropShield(bool bDeploy = true); - virtual void DropPlayerItem(const char *pszItemName); - virtual bool RemoveShield(); - virtual void RemoveAllItems(bool bRemoveSuit); - virtual bool RemovePlayerItem(const char* pszItemName); - virtual void SetPlayerModel(bool bHasC4); - virtual void SetPlayerModelEx(const char *modelName); - virtual void SetNewPlayerModel(const char *modelName); - virtual void ClientCommand(const char *cmd, const char *arg1 = nullptr, const char *arg2 = nullptr, const char *arg3 = nullptr); - virtual void SetProgressBarTime(int time); - virtual void SetProgressBarTime2(int time, float timeElapsed); - virtual struct edict_s *EntSelectSpawnPoint(); - virtual void SetBombIcon(bool bFlash = false); - virtual void SetScoreAttrib(CBasePlayer *dest); - virtual void SendItemStatus(); - virtual void ReloadWeapons(CBasePlayerItem *pWeapon = nullptr, bool bForceReload = false, bool bForceRefill = false); - virtual void Observer_SetMode(int iMode); - virtual bool SelectSpawnSpot(const char *pEntClassName, CBaseEntity* &pSpot); - virtual bool SwitchWeapon(CBasePlayerItem *pWeapon); - virtual void SwitchTeam(); - virtual bool JoinTeam(TeamName team); - virtual void StartObserver(Vector& vecPosition, Vector& vecViewAngle); - virtual void TeamChangeUpdate(); - virtual void DropSecondary(); - virtual void DropPrimary(); - virtual bool HasPlayerItem(CBasePlayerItem *pCheckItem); - virtual bool HasNamedPlayerItem(const char *pszItemName); - virtual CBasePlayerItem *GetItemById(WeaponIdType weaponID); - virtual CBasePlayerItem *GetItemByName(const char *itemName); - virtual void Disappear(); - virtual void MakeVIP(); - virtual bool MakeBomber(); - virtual void ResetSequenceInfo(); - virtual void StartDeathCam(); - virtual bool RemovePlayerItemEx(const char* pszItemName, bool bRemoveAmmo); - virtual void SetSpawnProtection(float flProtectionTime); - virtual void RemoveSpawnProtection(); - virtual bool HintMessageEx(const char *pMessage, float duration = 6.0f, bool bDisplayIfPlayerDead = false, bool bOverride = false); + virtual bool IsConnected() const = 0; + virtual void SetAnimation(PLAYER_ANIM playerAnim) = 0; + virtual void AddAccount(int amount, RewardType type = RT_NONE, bool bTrackChange = true) = 0; + virtual CBaseEntity *GiveNamedItem(const char *pszName) = 0; + virtual CBaseEntity *GiveNamedItemEx(const char *pszName) = 0; + virtual void GiveDefaultItems() = 0; + virtual void GiveShield(bool bDeploy = true) = 0; + virtual void DropShield(bool bDeploy = true) = 0; + virtual void DropPlayerItem(const char *pszItemName) = 0; + virtual bool RemoveShield() = 0; + virtual void RemoveAllItems(bool bRemoveSuit) = 0; + virtual bool RemovePlayerItem(const char* pszItemName) = 0; + virtual void SetPlayerModel(bool bHasC4) = 0; + virtual void SetPlayerModelEx(const char *modelName) = 0; + virtual void SetNewPlayerModel(const char *modelName) = 0; + virtual void ClientCommand(const char *cmd, const char *arg1 = nullptr, const char *arg2 = nullptr, const char *arg3 = nullptr) = 0; + virtual void SetProgressBarTime(int time) = 0; + virtual void SetProgressBarTime2(int time, float timeElapsed) = 0; + virtual struct edict_s *EntSelectSpawnPoint() = 0; + virtual void SetBombIcon(bool bFlash = false) = 0; + virtual void SetScoreAttrib(CBasePlayer *dest) = 0; + virtual void SendItemStatus() = 0; + virtual void ReloadWeapons(CBasePlayerItem *pWeapon = nullptr, bool bForceReload = false, bool bForceRefill = false) = 0; + virtual void Observer_SetMode(int iMode) = 0; + virtual bool SelectSpawnSpot(const char *pEntClassName, CBaseEntity* &pSpot) = 0; + virtual bool SwitchWeapon(CBasePlayerItem *pWeapon) = 0; + virtual void SwitchTeam() = 0; + virtual bool JoinTeam(TeamName team) = 0; + virtual void StartObserver(Vector& vecPosition, Vector& vecViewAngle) = 0; + virtual void TeamChangeUpdate() = 0; + virtual void DropSecondary() = 0; + virtual void DropPrimary() = 0; + virtual bool HasPlayerItem(CBasePlayerItem *pCheckItem) = 0; + virtual bool HasNamedPlayerItem(const char *pszItemName) = 0; + virtual CBasePlayerItem *GetItemById(WeaponIdType weaponID) = 0; + virtual CBasePlayerItem *GetItemByName(const char *itemName) = 0; + virtual void Disappear() = 0; + virtual void MakeVIP() = 0; + virtual bool MakeBomber() = 0; + virtual void ResetSequenceInfo() = 0; + virtual void StartDeathCam() = 0; + virtual bool RemovePlayerItemEx(const char* pszItemName, bool bRemoveAmmo) = 0; + virtual void SetSpawnProtection(float flProtectionTime) = 0; + virtual void RemoveSpawnProtection() = 0; + virtual bool HintMessageEx(const char *pMessage, float duration = 6.0f, bool bDisplayIfPlayerDead = false, bool bOverride = false) = 0; void Reset(); diff --git a/reapi/include/cssdk/dlls/API/CSPlayerItem.h b/reapi/include/cssdk/dlls/API/CSPlayerItem.h index 8c47d6e..cd67ea2 100644 --- a/reapi/include/cssdk/dlls/API/CSPlayerItem.h +++ b/reapi/include/cssdk/dlls/API/CSPlayerItem.h @@ -37,7 +37,7 @@ public: Q_memset(&m_ItemInfo, 0, sizeof(m_ItemInfo)); } - virtual void SetItemInfo(ItemInfo *pInfo); + virtual void SetItemInfo(ItemInfo *pInfo) = 0; CBasePlayerItem *BasePlayerItem() const;