• util.PxelVisible broken !?
    36 replies, posted
Oh well the idea is just that people can see vehicle lights at a distance of 1500 units. Well, I did not understand the radius was relative to the vehicle's size. I was sure the second argument was how far away I should see lights... Ok so I need actually to calculate it because well my server supports bus, cars, and big cars. The bus is huge ! Well I'll see what I can do... I'll just need a function to get the model size...
[QUOTE=Yuri6037;47952678]I'll just need a function to get the model size...[/QUOTE] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/PhysObj/GetVolume]PhysObj:GetVolume[/url] take a look at that, it is used by FPP as well [url]https://github.com/FPtje/DarkRP/blob/262ef62bed2130fb667ffb179b2c27307a33b49d/gamemode/modules/fpp/pp/server/antispam.lua#L53[/url]
Well that's strange putting 8 as value for radius for every vehicles seams to have worked for every of the vehicles on the server. Thank you very much Robotboy. But if I understand 8 is the radius of lights isn't it ?
[QUOTE=Yuri6037;47955907]Well that's strange putting 8 as value for radius for every vehicles seams to have worked for every of the vehicles on the server. Thank you very much Robotboy. But if I understand 8 is the radius of lights isn't it ?[/QUOTE] It was already said to you that radius is in [b]screen pixels[/b].
[QUOTE=mijyuoon;47967514]It was already said to you that radius is in [b]screen pixels[/b].[/QUOTE] Well it wasn't said black on white. Actualy please also note that I'm not native english. I do not live in a country which speaks english. I live in France. Also even if my english is not bad (I actualy never use any translator/corrector), that's normal if there are some expressions or words I don't understand... Anyways thanks for your help I finaly defeated this f****** function enough ! That's the 5th time I tried to make it working. But visibly the 5th time was the great time, so yay ! This leaves me some more time to finish the rrp_derma_button, which is designed to replace the DButtons of every frame in the game ! I'm working on a hacking function (an override of vgui.Create) to make all DButton in the game using RRP_DButton instead of DButton. It will be at the end compatible with all mods(garrysmod/addons/)/modules (RRP) in the game.
Sorry, you need to Log In to post a reply to this thread.