[Help] WalkGuard Block Bombsites
Hello,
so, I made this: https://forums.alliedmods.net/showpo...&postcount=172 But I'm 99.9% certain that my edit is far from being good, so I would like to ask for help here :bee: I know I'm still making dumb mistakes, please bear with me. One player reported a "CL_Flush Entity Packet" error but I'm not sure if it's related to the edit I made. Edited lines: Global scope PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
A message that only shows once after all bombsites are enabled again would be cool too, and I already had it working, but then I got lost again and ended up deleting it... - LegacyCode |
Re: [Help] WalkGuard Block Bombsites
Hello,
so I've just encountered a "Reliable channel overflowed" when touching a block like this. This only happened for the first time on a map where I have like 8+ of these blocks. What could it be? //e: I can only think of "client_print()" in "ZoneTouch()"... but I guess some expert can enlighten me here. Will test without client_print(). //e2: I set sv_gravity to 200 and spam-touched (jump + duck) the block. This also happens with only one of these blocks, but only with client_print() and sv_gravity not being 800. Does anyone know how to solve this? Only allow printing the message once every x seconds for a player? //e3: This whole stuff lags the server like hell, I suppose because it shows the crosses the whole time. I really need your help :( - LegacyCode |
Re: [Help] WalkGuard Block Bombsites
your are sending to many messages, if you remove the show crosses and client_print you will not get more over flows
|
Re: [Help] WalkGuard Block Bombsites
Hello,
yeah, that's what I thought. But I need an indicator for a blocked zone, preferably that red cross. Any ideas how I can accomplish this without a massive performance hit? Also it should draw that red cross on all sites of the block, because someone could block a zone on the ground, etc. I would like to avoid any custom stuff like textures/sprites, too. - LegacyCode |
Re: [Help] WalkGuard Block Bombsites
you have to spawn an entity give it a model (wall model or any thing that you want). then remove it when not needed that way you don't need to keep sending the show cross each 0.2 sec
|
Re: [Help] WalkGuard Block Bombsites
Hello,
what I did for now: - increasing the task time to 1.0 (instead of 0.2) - only show one side of the block (x/y) by comparing the size with pev_size (- always show top z) - set a task when player touches a bombsite block, to only show the message every 5 seconds This should at least decrease the performance hit a bit for now, as it only draws a max of 4 lines at once for a box instead of 12. PHP Code:
Quote:
- LegacyCode |
Re: [Help] WalkGuard Block Bombsites
one model/sprite is not much
|
Re: [Help] WalkGuard Block Bombsites
Quote:
- LegacyCode |
Re: [Help] WalkGuard Block Bombsites
Hello,
The lines now only show to the specific player (not like before via MSG_BROADCAST). I'm now trying to apply a basic grid of points to the side where it shows the cross: http://i.imgur.com/CoJW1P5.png PHP Code:
If not, it doesn't draw the cross. Is this a "good" solution, or am I overthinking this? There must be a better way to deal with this... //e: Current status: http://i.imgur.com/GZgNXeO.jpg I currently use PHP Code:
Everything works now. Will test and optimize this a little further, hoping someone stumbles across this thread with better knowledge. :bee: - LegacyCode |
Re: [Help] WalkGuard Block Bombsites
check your pm i sended you a plugin that does what you want.
|
| All times are GMT -4. The time now is 10:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.