Hi
I am developing MMORTS game. I have a problem with realization of fog of war. I searching to way how to mark units (MMO Items) as invisible for user even it in user's AOI(so client do not recive any events about them).
For now i see such solutions:
1) Dont use server functionality of proximity list and send all data by custom events.
2) Somehow override proximity list manager class.
But i dont like any of them, may be you can advice some right way to do this?
P.S. Sorry for my bad english
Fog of war
Re: Fog of war
Hi,
MMOItems will always generate events when they are within the AOI range.
If you want them to temporarily "disappear" you could flag then with an MMOItemVariable. This way the client will still receive events about their presence but the Variable will tell you that they are in "hidden" state and you shouldn't put them on screen.
Makes sense?
MMOItems will always generate events when they are within the AOI range.
If you want them to temporarily "disappear" you could flag then with an MMOItemVariable. This way the client will still receive events about their presence but the Variable will tell you that they are in "hidden" state and you shouldn't put them on screen.
Makes sense?
Re: Fog of war
Hi Lapo
In this case client will receive all data, so some cheaters may extract info about positions of enemies. So i need server side solution.
In this case client will receive all data, so some cheaters may extract info about positions of enemies. So i need server side solution.
Re: Fog of war
Then I think you will need to implement a custom solution via server side code.
cheers
cheers
Re: Fog of war
Hi.
By you last recomendation i made my own solution, i override MMOItemManager and set it to MMORoom by Reflection API. It's works fine, but now i see that some overrided methods works slow on high load, because of using Reflection API in it. I unable to refuse of reflection because some methods i ned to override is private. Can you suggest a specific solution for this situation?
By you last recomendation i made my own solution, i override MMOItemManager and set it to MMORoom by Reflection API. It's works fine, but now i see that some overrided methods works slow on high load, because of using Reflection API in it. I unable to refuse of reflection because some methods i ned to override is private. Can you suggest a specific solution for this situation?
Who is online
Users browsing this forum: No registered users and 89 guests