[INC] Temp Entity Util
1 Attachment(s)
Description:
This include Can Simplify Your Work Only. Stocks: Code:
|
Re: [INC] Trace Util
Example:
PHP Code:
|
Re: [INC] Trace Util
1. Why is this called "trace" util?
2. Don't redefine all of those constants since they are already made with AMXX (see message_const.inc). 3. You don't have a parameter for player id's, so individual messages (MSG_ONE, MSG_ONE_UNRELIABLE) will just give errors. 4. Support for floating vectors would be nice. |
Re: [INC] Trace Util
Quote:
Updated Thanks. 4. Support for floating vectors would be nice. Wait it's a Hard Work :( But I Must Set Float only vector O.o And The velocity No ?? |
Re: [INC] Trace Util
I'm not saying they should use those messages.
I'm saying that your include doesn't support them. Individual messages require a player id, but your include doesn't have player id parameters in any function. Therefore, individual messages aren't supported. Also, MSG_PVS and MSG_PAS aren't supported by your include because they need a separate origin parameter to be passed. EDIT: Quote:
Code:
I mean, you are even using SVC_TEMPENTITY in every function. And by floating vector support, I mean the actual vector and not rounding it when it's passed to the message. |
Re: [INC] Trace Util
Quote:
|
Re: [INC] Temp Entity Util
Almost forgot. You didn't delete all of the redundant defines. You apparently didn't look through message_const.inc for very long.
|
Re: [INC] Temp Entity Util
Quote:
All The Errors Fixed Only The Floating Vectors... Can You Help Me To Fix it because I'm Tired. And Thanks! |
Re: [INC] Temp Entity Util
Is that hard to wait having a decent knowledge before proposing things ? Wanted to help is welcomed but right now you don't know what you're doing... You should be able to see yourself now.
MSG_PVS/MSG_PAS still not fixed, nor floating vectors. For the first Exolent told you what to do, for the second, see EngFunc_ constants, it supports float. About how to organize things, it's up to you, I don't have suggestions. |
Re: [INC] Temp Entity Util
The fact that you changed the SVC_TEMPENTITY to be a parameter (as if it's going to be any other value besides SVC_TEMPENTITY) shows you don't even understand these messages and are just trying to make shorter code for it.
Before you try to make utilities for something, you should completely understand it first. If you did understand it completely, then you wouldn't have made the mistakes that I've been pointing out (except for floating vectors since that's more of a feature). |
All times are GMT -4. The time now is 12:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.