Endon final killcam
-
I have a message script that shows ingame messages at the top of the screen.
I have the usual
level endon("game_ended");
level endon("end_game");
self endon( "disconnect" );
but how do I get the messages to dissappear once the final killcam comes on?Edit
Realised that it is not the messages displaying in the final killcam from the script but actual messages being shown at the time of the final killIs there a way to disable final killcam?
-
Could you better describe what you want to do?
Why do you want to remove final killcams?
I have a script that has HUDs and whenever the game ends, before the final killcam it will destroy all these HUDs. If that's what you want to do I can send my script. What you need is to call the destroy function on an HUD entity -
What happens is I display messages at the top of the screen but when the final killcam comes on these messages are under the "FINAL KILLCAM" text so it looks a mess.
What I realised is these messages in the final killcam are not the messages in real time but the killcam is showing the messages at the time of the last kill. In the normal killcam when you get killed these messages are not displayed as the killcam header has a red background and not see through like the Final Killcam so in this instance the messages are not displayed..I hope you get the gist of what I mean.
-
I also have multiple HUDs on one of my servers and they stay where they are so maybe you used a wrong relative position or something like that.
In my opinion the two best solutions, depending on what you want to do are:
- Send your code so I/someone can take a look and see if they can reproduce it and eventually fix it
- Do what I said and add a function that destroys the HUDs you don't want when the game ends, this can be called before the final killcam is playing, that's what I do on my server
I could do both just let me know.
If you still want to disable the final killcam then I would say it's probably doable but you'd need to dig the source code and it's bypassing the issue instead of fixing + you remove a feature so imo it's not a good idea -
Found another hud message script and it does what I need. As soon as the Final Killcam comes on the messages disappear.
Job Done
Thanks
MAD_DAD