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

Add message natives #523

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions modules/cstrike/cstrike/CstrikeNatives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2011,7 +2011,9 @@ static cell AMX_NATIVE_CALL cs_draw_progress_bar(AMX *amx, cell *params)
int index = params[1];

if(index)
{
CHECK_PLAYER(index);
}

int startpercent = params[3];

Expand All @@ -2030,7 +2032,9 @@ static cell AMX_NATIVE_CALL cs_play_reload_sound(AMX *amx, cell *params)
int index = params[1];

if(index)
{
CHECK_PLAYER(index);
}

MESSAGE_BEGIN(get_msg_destination(index, params[4] != 0), MessageIdReloadSound, NULL, index ? TypeConversion.id_to_edict(index) : NULL);
WRITE_BYTE(params[3]);
Expand All @@ -2045,7 +2049,9 @@ static cell AMX_NATIVE_CALL cs_set_hud_icon(AMX *amx, cell *params)
int index = params[1];

if(index)
{
CHECK_PLAYER(index);
}

int active = params[2];

Expand Down Expand Up @@ -2080,7 +2086,9 @@ static cell AMX_NATIVE_CALL cs_set_user_shadow(AMX *amx, cell *params)
int index = params[1];

if(index)
{
CHECK_PLAYER(index);
}

MESSAGE_BEGIN(get_msg_destination(index, params[3] != 0), MessageIdShadowIdx, NULL, index ? TypeConversion.id_to_edict(index) : NULL);
WRITE_LONG(params[2]);
Expand Down