Raised This Month: $ Target: $400
 0% 

Event ResetHUD - When does it take place?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
souvikdas95
Senior Member
Join Date: Mar 2012
Old 03-27-2014 , 04:40   Event ResetHUD - When does it take place?
Reply With Quote #1

I want to know when does ResetHUD take place. There have been some false leads regarding it getting executed at round ending. Some say it gets executed anytime
Need a better and detailed information about its execution and parameters.
souvikdas95 is offline
Old 03-27-2014, 05:01
devilicioux
This message has been deleted by devilicioux.
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 03-27-2014 , 05:02   Re: Event ResetHUD - When does it take place?
Reply With Quote #2

Quote:
Originally Posted by Arkshine View Post
ResetHUD is an event which called on player spawn, when player is entered a server, using "fullupdate" client command, demo recording and round restart attempt.
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 03-27-2014 , 07:48   Re: Event ResetHUD - When does it take place?
Reply With Quote #3

i.e. most depreciated event ever created by half-life...
btw ty

Last edited by souvikdas95; 03-27-2014 at 07:54.
souvikdas95 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-27-2014 , 09:06   Re: Event ResetHUD - When does it take place?
Reply With Quote #4

There's not really any good reason to use ResetHUD in a plugin. You should explain what your actual question is so that we can help you.
__________________
fysiks is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 03-27-2014 , 09:46   Re: Event ResetHUD - When does it take place?
Reply With Quote #5

I was upgrading my CSX extended module derived from original CSX module where it updates the rank using resetHUD... an absolute failure by AMX Mod X dev team... I just can't imagine how they could afford so many bugs...
Just for reducing processing time and integrating custom ( yet useless ) forwards with the same event, they have literally neglected the natives and basic functionality and accuracy of the module.
Anyways, good news is I have fixed a large part... will be posting it soon

Last edited by souvikdas95; 03-27-2014 at 09:50.
souvikdas95 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-27-2014 , 13:02   Re: Event ResetHUD - When does it take place?
Reply With Quote #6

Quote:
Originally Posted by souvikdas95 View Post
I was upgrading my CSX extended module derived from original CSX module where it updates the rank using resetHUD... an absolute failure by AMX Mod X dev team... I just can't imagine how they could afford so many bugs...
Just for reducing processing time and integrating custom ( yet useless ) forwards with the same event, they have literally neglected the natives and basic functionality and accuracy of the module.
Anyways, good news is I have fixed a large part... will be posting it soon
Don't go insulting the developers. The developers never got paid to do any of this so consider the fact that AMX Mod X exists as a blessing. You can submit bug reports and optimizations to the bugzilla. It's there for exactly this purpose. There is at least one person working on upgrading the current version of AMX Mod X so I don't see it beyond the realm of possibility of getting into the dev version (assuming the changes are logical, tested, and don't break backward compatibility).
__________________
fysiks is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 03-27-2014 , 13:29   Re: Event ResetHUD - When does it take place?
Reply With Quote #7

the bug tracker is offline...
yes totally made sure that it's compatible
It's true amxmodx is comparable to blessing indeed. Else we modders wouldn't have had much options in HL1 games.
Well you obfuscate by saying something such as an "insult". I would rather go with them being less concerned.
Well, you say they did not get paid... but updates keep coming and no changes are seen.
It's going to take a very long time before they realize some1 even released it. Sorry to say, but I feel the forum is slowly leaving the HL1 engine and shifting to Source Engine... Most of the major developers are inactive. The remaining ones too seem to have very less interest.
souvikdas95 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-28-2014 , 05:07   Re: Event ResetHUD - When does it take place?
Reply With Quote #8

Quote:
Originally Posted by souvikdas95 View Post
the bug tracker is offline...
Oh Really? https://bugs.alliedmods.net/


Quote:
Originally Posted by souvikdas95 View Post
Well, you say they did not get paid... but updates keep coming and no changes are seen.
Getting paid and "updates keep coming" are not related at all. There are a couple people creating/pushing changes currently for the dev build. There has been quite a bit activity in the last year or so for the dev build. Also, the last major release was only release because of major changes by Valve.


Quote:
Originally Posted by souvikdas95 View Post
The remaining ones too seem to have very less interest.
If you have not put your changes into bugzilla, they can't know what you are talking about.
__________________
fysiks is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-28-2014 , 06:34   Re: Event ResetHUD - When does it take place?
Reply With Quote #9

souvikdas95, you seem to misunderstand few things.

Quote:
Originally Posted by souvikdas95
i.e. most depreciated event ever created by half-life...
Deprecated how? With current design, HUD needs to be reset. Such event makes sense and is useful.

Quote:
Originally Posted by souvikdas95
where it updates the rank using resetHUD... an absolute failure by AMX Mod X dev team
If you're talking about current CSX, it doesn't do that.

Quote:
Originally Posted by souvikdas95
It's going to take a very long time before they realize some1 even released it
That's the whole point to use the bug tracker.

Quote:
Originally Posted by souvikdas95
but I feel the forum is slowly leaving the HL1 engine and shifting to Source Engine
Which makes sense as HL1 games are now less played. You should open your eyes, anyone can see HL1 is really starting to die now. Check steam stats. Comparing to last games, HL1 starts to feel really too old to be played. Switching to Source or others games are an expected and logical course. Though HL1 has still some years left.

Quote:
Originally Posted by souvikdas95
Most of the major developers are inactive
SourceMod.


Well,
  • About CSX, you have to understand such module has been made when AMXX was just starting more or less ; at this time you should take in count current devs knowledge. It was also the first time they built such product, you can expect easily code was not going to be perfect at first try. Also they have to keep in mind to support others mods than CS, which is not your case. Oh, and as BAIL said once, SourceMod is AMXX done right.

  • AMXX is a mature project since few years, you can understand they wanted to focus on SourceMod creation. It doesn't mean AMXX is not supported. You can see well AMXX was already ready when the official steam update was out (+OSX support!). But you're right AMXX is no more developed by original devs, though like fysiks said there are now maintainers and 1.8.3-dev contains already a lot of changes.

  • If you want some changes in AMXX, feel free to file a bug report. Considering you can make module, you should provide a patch and like I've said you in PM, there is no reason to not include it if your modifications make sense, doesn't change unnecessary code, backward compatibility is kept and fully tested.
__________________
Arkshine is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 03-28-2014 , 08:00   Re: Event ResetHUD - When does it take place?
Reply With Quote #10

Quote:
If you're talking about current CSX, it doesn't do that.
I downloaded it from "https://hg.alliedmods.net/amxmodx-central". I hope that's the latest source available?
In any case, when you open usermsg.cpp, you will find ResetHUD event defined which sets clearstats to 0.25f ( assumed time )while a prethink occurs which corresponds to that time duration and updates the rank based on collected round stats. Now think about a player using some or other way to do the following as you said :

Quote:
ResetHUD is an event which called on player spawn, when player is entered a server, using "fullupdate" client command, demo recording and round restart attempt.
If exploited, this event can be called continuously, the huge linked list ( assuming large no. of stats entries ) will keep updating for all players and if any 2 or more such event of update coincides ( which is possible in case of large no. of stats entries ), then list can get corrupt ( cases where it unlinks and relinks the nodes. check: void RankSystem::updatePos( RankStats* rr , Stats* s ) )

Now to get rid of such issues, all what was done by the developers was to put a maxsize clamp of csstats ( 3500 - assumed quantity ).

Is this fair?

I can only predict that since they began incorrectly, starting with ResetHUD and assumed timer, they had to end up compromising on size of stats.

EDIT - Please note that they have cleared round stats directly after updating the ranks. So get_user_rstats() won't always return correct round stats.

Last edited by souvikdas95; 03-28-2014 at 08:15.
souvikdas95 is offline
Reply



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:01.


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