Repository navigation
Add natives for the extended ReGameDLL API (v5.35) - #401
Open
Pokimoshka wants to merge 1 commit into
Open
Pokimoshka wants to merge 1 commit into
Pokimoshka wants to merge 1 commit into
Conversation
Expose 16 new ReGameDLL API helpers to AMXX plugins: - rg_get_user_account / rg_set_user_account (money) - rg_get_user_health / rg_set_user_health (health) - rg_set_user_frags / rg_set_user_deaths (score) - rg_get_user_team / rg_is_player_alive (player state) - rg_bot_add / rg_bot_kick (bots) - rg_screen_fade / rg_screen_shake (visual effects) - rg_show_message / rg_show_message_all (HUD message) - rg_client_print_all (print text to all) - rg_say_text (chat message to all) The matching natives are implemented in natives_misc.cpp, registered in Misc_Natives_RG, declared in reapi_gamedll.inc, and the bundled regamedll_api.h is synced to API v5.35 so the new function pointers are available. Depends on the ReGameDLL API v5.35 extension.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Exposes 16 new ReGameDLL API helpers to AMXX plugins and syncs the bundled
regamedll_api.hto API v5.35.New natives
rg_get_user_account/rg_set_user_accountrg_get_user_health/rg_set_user_healthrg_set_user_frags/rg_set_user_deathsrg_get_user_teamrg_is_player_aliverg_bot_add/rg_bot_kickrg_screen_fade/rg_screen_shakerg_show_message/rg_show_message_allrg_client_print_allrg_say_textChanges
reapi/src/natives/natives_misc.cpp- native implementations + registration inMisc_Natives_RGreapi/extra/amxmodx/scripting/include/reapi_gamedll.inc-nativedeclarations with docsreapi/include/cssdk/dlls/regamedll_api.h- synced to API v5.35 (19 new function pointers)Dependency
Depends on the ReGameDLL API v5.35 extension (see rehlds/ReGameDLL_CS#1204). The new function pointers are appended at the end of
ReGameFuncs_t, so this stays ABI-compatible for existing consumers.