Commit Graph

148 Commits

Author SHA1 Message Date
s1lentq
19714af6e6 get rid of unsafe string functions
minor refactor
2024-09-13 06:43:27 +07:00
s1lentq
8b6d659077 Implemented simple player movement version control to avoid desync
Bump minor API version
2024-08-16 09:53:11 +07:00
s1lentq
a47d55823f Fix compiler warnings 2024-08-06 03:26:10 +07:00
s1lentq
30572ef0b6 Change compiler to Clang, instead of ICC 2019 2024-07-14 23:27:44 +07:00
s1lentq
ad1c58cef5 Add bot_mimic 2024-06-03 01:57:21 +07:00
s1lentq
2a0e54bbf7 Bump minor version up to 27 2024-05-08 14:55:21 +07:00
Javekson
0626800fbb
Implement RemoveAllItems hook (#960) 2024-05-08 14:50:53 +07:00
s1lentq
2d957a7915 utlvector.h fix assert 2024-01-31 15:10:08 +07:00
s1lentq
b413577428 cleanup 2023-12-14 13:24:49 +07:00
Francisco Muñoz
f63b154637
Add member m_iGibDamageThreshold to control GIB damage threshold (#904)
* Add member m_iGibDamageThreshold to control GIB damage threshold
2023-12-14 06:01:34 +07:00
s1lentq
abe648b9d6 Use custom assert instead normal 2023-12-14 03:16:27 +07:00
s1lentq
4928c56f21 Change some Asserts to DbgAssert 2023-12-14 02:54:32 +07:00
s1lentq
f97c9d9f46 Improve dbg code to work Assertion properly 2023-12-14 02:50:32 +07:00
s1lentq
806f5651de Fixed assertion check 2023-12-13 20:01:12 +07:00
s1lentq
85e882f4db utlvector.h add sort methods 2023-12-13 19:19:31 +07:00
s1lentq
8ed193d254 fix linux build 2023-12-13 19:14:01 +07:00
s1lentq
e6d25ba159 utlarray.h add sort methods 2023-12-13 19:01:25 +07:00
s1lentq
34e56f61f2 Minor refactoring API functions 2023-12-12 18:59:13 +07:00
Francisco Muñoz
6863777b81
Initialize m_pevLastInflictor to nullptr to avoid garbage memory (#901) 2023-12-02 05:51:26 +07:00
Francisco Muñoz
556406009f
Tiny API code clean (#897) 2023-11-26 12:59:01 +07:00
Ecnologia
15bca2eab9
Implements Observer_Think Hook (#894)
* Observer Think Hook
* Update CAPI_Impl.cpp
* Update CAPI_Impl.h
* Update regamedll_api.h
2023-11-26 11:27:09 +07:00
Francisco Muñoz
9ab1589d32
Use CSEntity member to hold last inflictor from TakeDamage (#896) 2023-11-26 11:21:04 +07:00
fl0werD
2d0ac93f63
Implement PlayerDeathThink hook (#885) 2023-11-08 21:18:01 +07:00
Javekson
a9ec63df1b
Updated the GiveC4 to return a player pointer (#876) 2023-10-08 20:59:45 +07:00
Dmitry Novikov
108db28143
Add an extended player's DeathMsg message (#858)
* Implemented rarity of kill and assist for extended user message DeathMsg
* Add hookchain CGameRules::SendDeathMessage
* Add domination and revenge
2023-09-28 16:18:15 +07:00
Francisco Muñoz
8a52b7e38d
API: CSPlayer methods enhancement (#862)
* Adding return type to DropShield and DropPlayerItem
* JoinTeam: force C4 drop when changing to SPEC
2023-09-28 16:06:35 +07:00
Francisco Muñoz
f441279294
API: CSPlayer new members (physics related) (#851)
* CSPlayer new members
* API refactory in pm_shared.cpp
* Cached CSPlayer pointer in a global variable
* Changed PM_JumpHeight from lambda function to an inline function
* Changed m_flDuckSpeedMultiplier data type to double
2023-09-05 10:52:14 +07:00
Francisco Muñoz
696f465977
API: Added new API funcs (6) and new Hookchains (21) (#849)
* Added few newest API Hookchains
* Added hookchain for PM_CheckWaterJump
* Added hookchain for PM_Jump
* Added hookchain for PM_Duck
* Added hookchain for PM_UnDuck
* Added hookchain for ClearMultiDamage
* Added hookchain for AddMultiDamage
* Added hookchain for ApplyMultiDamage
* Added hookchain for CSGameRules::TeamFull
* Added hookchain for CSGameRules::TeamStacked
* Added hookchain for CSGameRules::PlayerGotWeapon
* Added hookchain for CBotManager::OnEvent
* Added hookchain for CBasePlayer::EntSelectSpawnPoint
* Added hookchain for CBasePlayerWeapon::KickBack
* Added hookchain for CBasePlayerWeapon::SendWeaponAnim
* Added new PM_* Hookchains
* Added PM_WaterJump
* Added PM_PlayStepSound
* Added PM_AirAccelerate
* Added CBasePlayer::CheckTimeBasedDamage
* Added CBasePlayerWeapon::ItemPostFrame
* Added BuyItem and CSGameRules::Think
* AddAmmoNameToAmmoRegistry refactory
* Bump minor version in an API bump up to 23
2023-09-05 10:43:40 +07:00
s1lentq
f3723d7a04 Add reserve members for CCS Entity
Bump interface version up to CSENTITY_API_INTERFACE_VERSION003
2023-08-24 17:09:50 +07:00
Francisco Muñoz
53d26a7ea5
API: CSPlayerWeapon integration + new members and functions (#850)
- Member name changed to m_iStateSecondaryAttack
- Member type changed to uint8_t which has same size of bool but allows more values than true or false (this wont break API compatibility)
- Moved logic inside HasSecondaryAttack to correctly alter function return based on m_iStateSecondaryAttack, which can be (0) no value / null (1) set (2) block
-Removed logic in CBasePlayerWeapon::Spawn that caches the return value of HasSecondaryAttack, as this can only be overridden when set, rather than always
* Improve API compatibility
2023-08-23 21:27:35 +07:00
Adrian Cirstea
718f0330f1
API: Implement PM_LadderMove hook (#740)
Related to https://github.com/s1lentq/reapi/issues/82
2023-07-16 03:48:44 +07:00
fl0werD
eb91f9280d
Add FreeGameRules hook, util api functions, player api functions (#808) 2023-03-13 02:33:15 +07:00
Sergey Shorokhov
8ff30b4c3e Revert "New entity trigger_bomb_reset (#796)"
This reverts commit 5dec3bad32.
2023-03-11 11:23:30 +03:00
Sergey Shorokhov
5dec3bad32
New entity trigger_bomb_reset (#796)
* Init

* Implementation

* Add `trigger_bomb_reset` to `.fgd`

* Set CC4 position on CC4::AttachToPlayer()

* move to `addons/trigger_bomb_reset`

* rename method & member

* CTriggerBombReset: Add `SetUse()`
2022-12-18 00:17:02 +03:00
Vaqtincha
980162774a
fix: Reset immunity effects always (#788)
* Reset immunity effects always

* add new member m_bSpawnProtectionEffects
2022-12-15 16:04:34 +03:00
Vaqtincha
946b5a9db0
Correcting code style and config (#783)
* cosmetic changes (for perfectionists)

* cosmetic changes (in sdk)

* add quotes for all cvar values
2022-11-24 19:04:42 +03:00
Alejo
112326aa63
New CVar: mp_plant_c4_anywhere (#692)
* Added new CVar `mp_plant_anywhere`

* API member for CVar `m_bCanPlantAnywhere`

Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2021-10-28 14:10:02 +03:00
Alejo
b9cccc691b
New CVars: sv_autobunnyhopping and sv_enablebunnyhopping (#686)
* Add bunnyhopping

* Add missing cvar register. Added cvars to readme and cfg

* API added

* Changed define
2021-10-20 19:18:30 +03:00
Sergey Shorokhov
9233f852ca CSEntity.h: Move reserve funcs to private 2021-09-02 20:47:36 +03:00
Sergey Shorokhov
7e2279f8c5 Implement CBasePlayer::Observer_FindNextPlayer() hook (#667)
* Implement Observer_FindNextPlayer hook

Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2021-08-31 22:04:32 +03:00
FEDERICOMB
983500c9bd Implement CCSEntity::FireBuckshots (#651) 2021-08-31 21:59:28 +03:00
FEDERICOMB
d079f26fc1 Implement CGib::SpawnHeadGib and CGib::SpawnRandomGibs (#650) 2021-08-31 21:57:54 +03:00
Lopol2010
f1b253e5b0
Implement CBasePlayer::Observer_SetMode hook (#663)
Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2021-08-31 15:07:21 +03:00
fl0werD
38dda25a84
Implement player Pain, DeathSound and JoiningThink hooks (#607) 2021-08-29 07:12:25 +03:00
s1lentq
15328fd764 API: Implemented PlantBomb Closes #589
API: Bump minor version
2021-01-04 22:22:45 +07:00
s1lentq
9c6c880644 Delete utlbuffer.cpp 2020-12-25 19:35:37 +07:00
StevenKal
7721348199
API: Add "CBaseEntity::Fire<Bullets[3]|Buckshots>" hooks. (#587) 2020-11-28 05:55:14 +07:00
jeefo
519b7db38d
Fixed memory leak with hintmessage. (#581)
Fixed memory leak with hintmessage.
2020-11-22 02:19:50 +07:00
shel
8142303b1b
push (#553)
Co-authored-by: shel <2@shelru.ru>
2020-06-11 02:20:17 +07:00
fl0werD
bffb373539
implement CGib (#536)
* implement CGib
Move code part from basemonster.cpp to gib.cpp
3-rd party:
Link entity to class (can hookable by HamSandwich amxx module)
Add hooks for ReAPI
2020-05-27 09:56:24 +07:00