Raised This Month: $51 Target: $400
 12% 

Deleting SVC_TEMPENTITY


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 11-18-2014 , 03:49   Deleting SVC_TEMPENTITY
Reply With Quote #1

Is there a way to delete a TE? With a help of a module perhaps?

An example of why this is needed:
  • Show a HUD message with a fade-in time (e.g. fade-in time: 1.5, hold time: 9999.9).
  • Wait for the text to fade in.
  • Show another HUD message with fade-in time on the same channel: the HUD message starts out already faded in, likely because the previous message hasn't ended yet.
I suspect that deleting the previous HUD message's TE could solve this.
__________________
hleV is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 11-18-2014 , 12:14   Re: Deleting SVC_TEMPENTITY
Reply With Quote #2

There's one message for clearing hud but it clears everything ( weapon icons, timer etc... )
I see one way, sent hudmessage with 0.0 delay ( fadein,fadeout,hold,fx = 0.0 ) ( it will clear the screen ) then sent your hudmessage.
The delay between clear hudmessage and new hudmessage should be something 0.05 - 0.1 sec
It depends on the ping that client is having.

Thats how i made my costom menu color plugin.
You can get the code here: https://forums.alliedmods.net/showthread.php?t=250788
Unfinished zsparkle mod and menu.zs ( open that with any txt editor )

Edit: there's no other proper way to clean hudmessages ... sadly.
Messing with that message ( hudreset or something was it called ) will be really painful since when you pick up the weapon for example ... that icon appears in right side of the screen and after hudreset message it will disappear and you can't make it appear back on its original state ( fade or color )

Last edited by .Dare Devil.; 11-18-2014 at 12:17.
.Dare Devil. is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 11-18-2014 , 12:24   Re: Deleting SVC_TEMPENTITY
Reply With Quote #3

Quote:
Originally Posted by .Dare Devil. View Post
I see one way, sent hudmessage with 0.0 delay ( fadein,fadeout,hold,fx = 0.0 ) ( it will clear the screen ) then sent your hudmessage.
You mean this?
HUD 1 -> HUD 2 -> HUD 3

1- current hud
2- hud with 0.0 delays
3- new hud
__________________
Jhob94 is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 11-18-2014 , 16:15   Re: Deleting SVC_TEMPENTITY
Reply With Quote #4

Quote:
Originally Posted by .Dare Devil. View Post
The delay between clear hudmessage and new hudmessage should be something 0.05 - 0.1 sec
Not an option for me, sadly. I need it to be instanteanous.
__________________
hleV 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 03:39.


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