Raised This Month: $ Target: $400
 0% 

Status X - Remove Player Names on Crosshair [v1.1]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
WATCH_D0GS UNITED
Senior Member
Join Date: Jan 2023
Old 12-05-2023 , 19:53   Re: Status X - Remove Player Names on Crosshair [v1.1]
Reply With Quote #7

Quote:
Originally Posted by Jhob94 View Post
The defines are making no sense.
We've kept the (#define joiner) and the (#define quitter) because we are currently making a research to use them soon in the next plugin update.

Quote:
Originally Posted by Jhob94 View Post
Making a define to get cvar value is just senseless, harder to read and will confuse inexperienced programmers.
We are not creating the num #define to get a cvar value, it is just a string replacement for making the code narrow and faster to read.
It is simply a shortened way of writing get_pcvar_num, which is a code styling case.
The definition of num is already there, the programmer will see it in the beginning of the code.
We've not added a comment about this in front of the #define because this will cause a error.

Quote:
Originally Posted by Jhob94 View Post
The operation could be much cheaper if you defined on ham_spawn what the players can see.
The StatusText event/message is the right place for this purpose: it is called in the moment the print occurs.
With ham_spawn, a cvar change will take effect only in a new spawn, which will be horrible to make a test.

As an additional note, using a pdata to remove the print in the spawn moment is a low call frequency case.
We prefer something being applied faster.

What we could do is to make the two versions of the plugin.

--
__________________
💻Know Our New Blog👄
🔗tube2downs.blogspot.com

Last edited by WATCH_D0GS UNITED; 12-05-2023 at 20:18.
WATCH_D0GS UNITED is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode