Skip to content

API: New gamedll hookchains#280

Merged
s1lentq merged 9 commits intorehlds:masterfrom
dystopm:new-hookchains
Sep 5, 2023
Merged

API: New gamedll hookchains#280
s1lentq merged 9 commits intorehlds:masterfrom
dystopm:new-hookchains

Conversation

@dystopm
Copy link
Contributor

@dystopm dystopm commented Jul 21, 2023

Based on rehlds/ReGameDLL_CS#849

  • Added new functions to API:
    • PM_WaterJump
    • PM_CheckWaterJump
    • PM_Jump
    • PM_Duck
    • PM_UnDuck
    • PM_PlayStepSound
    • PM_AirAccelerate
    • ClearMultiDamage
    • AddMultiDamage
    • ApplyMultiDamage
    • BuyItem
    • CSGameRules::Think
    • CSGameRules::TeamFull
    • CSGameRules::TeamStacked
    • CSGameRules::PlayerGotWeapon
    • CBotManager::OnEvent
    • CBasePlayer::CheckTimeBasedDamage
    • CBasePlayer::EntSelectSpawnPoint
    • CBasePlayerWeapon::ItemPostFrame
    • CBasePlayerWeapon::KickBack (API: Implement RG_CBasePlayerWeapon_KickBack hook #253)
    • CBasePlayerWeapon::SendWeaponAnim
  • Added support to CBotManager class
    • Added GameEventType constants to cssdk_const.inc
  • Refactory:
    • Code cleaning in reapi.inc: group valid function index types in macro for better readability
    • Added support to float pointers in forward parameters
  • Fixed PM_LadderMove hook which had value 0 on playerIndex
  • Extended ReGameFuncs_t structure with new API functions (not implemented as natives yet)

@Natsheh11
Copy link

Add a hook aswell for PM_PlayerTrace, to control which entities get to collide with the player...

@dystopm
Copy link
Contributor Author

dystopm commented Aug 22, 2023

Add a hook aswell for PM_PlayerTrace, to control which entities get to collide with the player...

That's a modification that must be done on ReHLDS. PM_PlayerTrace it's a pointer to a function located in engine. Also, "exporting" this function to an AMXX plugin forces to create an interface to handle physent_t (pmtrace_t is implemented) structures, which are pending since PM_LadderMove hook implementation. If you are willing to use this in a submodule, then you can without issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants