Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: New gamedll hookchains #280

Merged
merged 9 commits into from
Sep 5, 2023
Merged

Conversation

dystopm
Copy link
Contributor

@dystopm dystopm commented Jul 21, 2023

Based on s1lentq/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.

@s1lentq s1lentq merged commit 2142208 into rehlds:master Sep 5, 2023
3 checks passed
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