• Questions
    6 replies, posted
Two questions: 1) Why does my cam.Start3D2D() draw twice, once at the right position and once outside of the map? See links below. [url]http://puu.sh/fzxdB/150b2a674b.jpg[/url] [url]http://puu.sh/fzxEt/6d2803cbee.jpg[/url] (the other drawings are in other places on the map, they are in the same positions relative to each other both on and off the map) 2) What is the following error? I started using ply:SetupHands() at player spawn to enable hands on some SWEPS, and now this pops up in console every 10 or so times that I cycle weapons. [CODE] Bad SetLocalOrigin(-19694.732422, -10451.845703, -101.660095) on gmod_hands (354) [/CODE]
Can you post your code? It could be something as simple as running the code in a loop to produce more than one draw. It is hard to help without code.
If you're using Pre/Post Draw Translucent/Opaque Renderables.... It has an argument to draw in the skybox. See: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/render_lasers_rendering_cubes.lua.html[/url]
[QUOTE=Acecool;47091362]If you're using Pre/Post Draw Translucent/Opaque Renderables.... It has an argument to draw in the skybox. See: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/render_lasers_rendering_cubes.lua.html[/url][/QUOTE] Thanks, this seems like it's my problem. I'll test shortly. Any idea about the hands?
Bumpin. Not a major problem, doesn't seem to have any effect, but the console spam is fairly annoying. Anyone know anything about this "BadSetLocalOrigin ... on gmod_hands"?
Seems I didn't hit reply on the last post... Basically the issue could be one of the following problems: a holster system is moving the hands way out of bounds, a swep is moving hands out of bounds, an animation is moving hands out of bounds, or potentially the most likely the weapon base may be using a global var to handle view-model positioning and it is accumulating so every "10" as you say switches alter it. If you can show us your swep base, and some sweps ( if it is always ONE swep that it happens on then send us that swep file plus the base, or if it happens on all we'll only need one plus the base ) to see if we can help debug it. Alternatively, it could be in GM:CalcViewModelView; if we could see that code ( and hooks ) that may help.
[QUOTE=Acecool;47102669]Seems I didn't hit reply on the last post... Basically the issue could be one of the following problems: a holster system is moving the hands way out of bounds, a swep is moving hands out of bounds, an animation is moving hands out of bounds, or potentially the most likely the weapon base may be using a global var to handle view-model positioning and it is accumulating so every "10" as you say switches alter it. If you can show us your swep base, and some sweps ( if it is always ONE swep that it happens on then send us that swep file plus the base, or if it happens on all we'll only need one plus the base ) to see if we can help debug it. Alternatively, it could be in GM:CalcViewModelView; if we could see that code ( and hooks ) that may help.[/QUOTE] Thanks for the response. I'm not using CalcViewModelView anywhere in the gamemode, so all that should just be default. Upon further testing, it's very spotty. Sometimes it will happen 2-3 times in a row, but usually it doesn't happen at all. I guess for now this isn't a big deal, if it becomes clear that this is a bigger issue later, I'll revive this thread. Thanks again
Sorry, you need to Log In to post a reply to this thread.