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
Show file tree
Hide file tree
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
19 changes: 19 additions & 0 deletions plugins/include/message_const.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,25 @@ enum BreakModelFlags
*/
#define TE_MULTIGUNSHOT 126

/**
* Colors used in te_create_user_tracer()
*/
enum TracerColors
{
TracerColor_White = 0,
TracerColor_Red,
TracerColor_Green,
TracerColor_Blue,
TracerColor_Yellow,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it black?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WPMGPRoSToTeMa Nope, unless it's uncolored - https://i.imgur.com/1rqQ1r7.jpg
But the 12th color definitely isn't black as well - https://i.imgur.com/3rbtdlx.jpg

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OciXCrom yeah, 12th color is buggy and invalid, it'll be 000080 on Windows client and 000000 on Linux client (what about Mac? lol). 4th color is based on tracerred, tracergreen, tracerblue and traceralpha cvars.

Copy link
Contributor Author

@OciXCrom OciXCrom Aug 30, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WPMGPRoSToTeMa Thanks for this information, I updated the documentation.

PS: who even uses Mac, lol.

TracerColor_Orange,
TracerColor_Pink,
TracerColor_Purple,
TracerColor_Pink2,
TracerColor_Pink3,
TracerColor_Pink4,
TracerColor_Pink5,
TracerColor_DarkBlue
}

/**
* Larger message than the standard tracer, but allows some customization.
Expand Down
2 changes: 1 addition & 1 deletion plugins/include/tempent.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1286,4 +1286,4 @@ native te_create_multi_gunshot(position[3], direction[3], decal = 105, count = 1
* @error If "receiver" is non-zero and the client isn't
* connected, an error will be thrown.
*/
native te_create_user_tracer(position[3], velocity[3], life = 10, color = 5, length = 10, receiver = 0, bool:reliable = true);
native te_create_user_tracer(position[3], velocity[3], life = 10, TracerColors:color = TracerColor_Orange, length = 10, receiver = 0, bool:reliable = true);