Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help HudElem disappear after map changes
#1
Hello everyone,

I'm making a little plugin with HudElem to show informations to the players.
I have problems with HudElem, some of them disappear after map change. (and sometimes appear again after next map change)

Informations:
Some of the HudElem are showed to single players and some are showed to all (Entity_world).
The desappear effect seems to append in both cases.

(I also see a little bug sometime after the map change, if i arrive quickly "before the count 5,4,3,..." i see one of the HudElem with the same zoom effect as count 5, 4,3,.... maybe there is a conflict with some normal game hudd ? Sorry it's very difficult to explain bug with my english, but i can make a small movie if needed)

Any ideas of what append?
Thx in advance guys!
Reply

#2
Pretty sure zxz already mentioned that they get deleted after the map restarting.
Have you tried just changing the ShowToEnt value to 1337 and just creating a new hudelem after the map has restarted?
It's what I do in my plugin.

However, I had problems with the HUD as well. It's very unreliable
Reply

#3
Some hud desapear and some not...
I'll try the ShowToEnt value to 1337... but what mean 1337? also show to all players like 'int Entity_world'?

The 6 huds that i show to every players are destroyed then recreate everytime a new player connect. but the same 2 huds appear and desapear every time a player connect.
I also use 10 others huds per player to show score, damage, enabled stuff etc. And some of them desappear and appear every map change. Those one are created only when the player connect.

I join a little screen of the huds when they are working.


Attached Files Image(s)
   
Reply

#4
Keep in mind that you can only display a specific amout of HudElement to a client's hud. You do not have to recreate HudElement which are shown to the entity Entity_World during the game. I also recommend to wait some seconds with creating hudElements after a mapchange/fast_restart until the game is fully started.
[Image: azuw.jpg]
Reply

#5
Thank you for the answer!
I tried to do an other plugin with only 3 huds common to all clients, i delete them when the map change and i recreate the 3 huds 15 seconds after that. This work perfectly, but if let them active or if i recreate them before the 5 in the countdown some of them are used by the game.

"you can only display a specific amout of HudElement to a client's hud"
Please more infos Wink
How many huds per players? ...or total for the server?

Thanks!
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help HUDElem's "disappear". DidUknowiPwn 12 6,109 10-31-2012, 17:30
Last Post: DidUknowiPwn
  Preview HudElem in game [Z00MBY] Alex 1 2,073 08-05-2012, 23:16
Last Post: Nekochan
  HudElem Position Deviler86 7 3,993 08-04-2012, 16:19
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.