Skip to content

API: CSPlayer methods enhancement#862

Merged
s1lentq merged 2 commits intorehlds:masterfrom
dystopm:csplayer_api_upgrade
Sep 28, 2023
Merged

API: CSPlayer methods enhancement#862
s1lentq merged 2 commits intorehlds:masterfrom
dystopm:csplayer_api_upgrade

Conversation

@dystopm
Copy link
Contributor

@dystopm dystopm commented Sep 12, 2023

  • Added C4 drop when changing from CT/T to SPEC
    • Deleted m_bHasC4 assignation to false due to code redundancy in RemoveAllItems
  • Changed return types of DropShield and DropPlayerItem to CBaseEntity to retrieve created entity index.

This requieres to update API version and submodules like ReAPI. (actually done)

EDIT: this partially grabs #699 changes in a segmented/detailed way

@StevenKal
Copy link
Contributor

StevenKal commented Sep 12, 2023

I am not sure (must test), but also if we use "CCSPlayer::JoinTeam" to transfer from T/CT to SPECTATOR when the spawn protection icon ("StatusIcon" with ""suithelmet_full"") is still blinking, the icon keeps blinking while it should not, so might need to add the reset inside the "SPECTATOR" case, or elsewhere.

@s1lentq : Please close my PR #699 as I will not update it.

@s1lentq s1lentq merged commit 8a52b7e into rehlds:master Sep 28, 2023
@dystopm dystopm deleted the csplayer_api_upgrade branch October 11, 2023 15:00
yohimik pushed a commit to yohimik/ReGameDLL_CS that referenced this pull request Jun 5, 2025
* Adding return type to DropShield and DropPlayerItem
* JoinTeam: force C4 drop when changing to SPEC
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