_Q_ Posted October 6, 2015 Share Posted October 6, 2015 Here is the mod updated to caves beta version:http://forums.kleientertainment.com/files/file/1329-wormhole-marks-dst/ If you are host both wormholes gets changed icons visible on minimap.If you are client you only can see the exit wormhole changed icon and the entrance icon is the same till you jump back or go near it on foot. @IpsquiggleAny idea how to get it working on client the same way it works for the host?Is this some case of minimap not refreshing on client side, or I need to use net vars to get clients know that icon updated? Link to comment Share on other sites More sharing options...
Developer Ipsquiggle Posted October 6, 2015 Developer Share Posted October 6, 2015 So it looks like it's a minimap caching issue. Did this work before? The problem is that the entrance wormhole on the client is no longer in range, so it stops being syncronized with the client. The client won't get any updated info about it until they next stand near it. I don't recall the code off the top of my head, but a few things come to mind: 1) Color the wormholes from the start, rather than when they are jumped through.2) Color the wormhole slightly before it is jumped through (for example on the JUMPIN action) Link to comment Share on other sites More sharing options...
_Q_ Posted October 6, 2015 Author Share Posted October 6, 2015 So it looks like it's a minimap caching issue. Did this work before? The problem is that the entrance wormhole on the client is no longer in range, so it stops being syncronized with the client. The client won't get any updated info about it until they next stand near it. I don't recall the code off the top of my head, but a few things come to mind: 1) Color the wormholes from the start, rather than when they are jumped through.2) Color the wormhole slightly before it is jumped through (for example on the JUMPIN action)It never worked, on clients, thats why I had to ask about it.Is there some list of minimap functions?I saw some stuff called in the player prefab, but can't find the file with all functions in it. Will try to change the way coloring is handled for now.Thanks for help. Link to comment Share on other sites More sharing options...
Developer Ipsquiggle Posted October 6, 2015 Developer Share Posted October 6, 2015 MiniMapEntity is a c-side component so there's no list available, but a quick check looks like::SetIcon(texture):SetEnabled(bool):DrawOverFogOfWar(bool):SetPriority(layer) Link to comment Share on other sites More sharing options...
_Q_ Posted October 6, 2015 Author Share Posted October 6, 2015 MiniMapEntity is a c-side component so there's no list available, but a quick check looks like::SetIcon(texture):SetEnabled(bool):DrawOverFogOfWar(bool):SetPriority(layer) Using events did the trick and its finally working like it should for clients.Since this is c-side code I bet there is no functions to manipulate the color of minimap image either.I will have to add more icons for use with custom and ginat maps then. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now