Xeonmeister Posted May 7, 2016 Posted May 7, 2016 Hi! I've been trying to do this for ages but i failed. The only idea i came up with is that i need to attach an object or objects to the player that is only visible for others. As i know the player models disappear after like 80 meters but they are shootable up to like ~200-250 meters. If i attach an object to the player others will see it so they can shoot even if the original player model disappeared. My question is what should i attach? Are there any bodypart objects? Or do you have a better idea to increase the player models visible distance? I need this because i want to make a shooter/freeroam server and with the current distance you need to go very near other players to see them and snipers are just so ineffective since you cannot spot anyone in sniping distances.
myonlake Posted May 9, 2016 Posted May 9, 2016 You are probably looking for https://wiki.multitheftauto.com/wiki/Se ... Streamable
Xeonmeister Posted May 11, 2016 Author Posted May 11, 2016 Yes i've seen that before and i'm sorry that i make a disappointment but it didn't solve my problem. However, it works perfectly but my problem is that the players stream in anyways in about a 200 meters range, but i cannot see them from like 80 meters away - unless i zoom at them. So that's why i want to attach an object to them or something (that s why i opened this topic so you maybe can come up with a better solution). It's because if i set the snipers range to the maximum (350 meters) but you can only see players (without zooming at them) from 80 meters or closer it's just not that good, since sniping should be enjoyable from far away. Hope you can help me
ViRuZGamiing Posted May 11, 2016 Posted May 11, 2016 Why would you need a element attached, players are elements as well, you could combine setElementStreamable and GetDistanceBetweenPoints3D, if I'm right to get what you're looking for.
Xeonmeister Posted May 11, 2016 Author Posted May 11, 2016 My problem is that they are streamed in but i cannot see them from a distance, however, they are stremed in. I cannot say it any more clearly just try it on a local server if u don t understand me. That s why i want to attach an elemnt to it or maybe draw the outlines or something.
ViRuZGamiing Posted May 11, 2016 Posted May 11, 2016 I will try it later, I saw someone doing outlines earlier on the forum
Xeonmeister Posted May 11, 2016 Author Posted May 11, 2016 It's just like players have a stream and a draw distance. And even if they had streamed in you cannot see them until you get closer.
Einheit-101 Posted May 11, 2016 Posted May 11, 2016 Shader_pedwall €DIT: however even this will most likely fail when players fade out. Btw on my server I am pretty sure that players are visible far more than 80m
Xeonmeister Posted May 20, 2016 Author Posted May 20, 2016 Could you then please post a screenshot of a player at the maximum visible range?
Einheit-101 Posted May 21, 2016 Posted May 21, 2016 I can when I have time but make sure your streaming memory and all that stuff is maxed out.
Xeonmeister Posted May 23, 2016 Author Posted May 23, 2016 Everything is maxed out but even 150m is very short compared to the bullet range which is set to 350m (the max). I was thinking about attaching objects to the bones so from far away it will look like a low lod player model. And with that i can just set the player's model's alpha to 0 and if the player comes closer i can set the alpha of the attached objects to 0 and make the original player model visible again. Do you think this is the best solution? Or do you guys have better ideas?
Captain Cody Posted May 23, 2016 Posted May 23, 2016 Xeon, it could be possible to attatch one single object directly to the player and set it as a low lod for the player.
Xeonmeister Posted May 23, 2016 Author Posted May 23, 2016 Yes of course but it would look stupid. If i attach an arm to the arm and a leg to the leg etc. and they move aswell (since they are attached to the bones) it would look like a low detail player model from far away. If i attach one single object to the player and let's say he crouches then that won't be visible so players would shoot the air above him. With objects attached to the bones it would be better i think.
Captain Cody Posted May 24, 2016 Posted May 24, 2016 May or may not work https://wiki.multitheftauto.com/wiki/SetLowLODElement https://community.multitheftauto.com/index.php?p ... ls&id=2540 https://wiki.multitheftauto.com/wiki/En ... ODDistance
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