• Fixing the pulley tool.
    4 replies, posted
Alright so here I was having some great ideas about rope contraptions only to find most of them completely impossible due to the current, worthless, pulley tool. Basically, while the tool itself works fine the the pulleys themselves are grounded to the spot you clicked on and not the prop. So if you move the prop selected as the pulley, the pulley constraint doesn't move rendering it useless for any form of mobile contraption. I'd like to fix this, but I'm rather short on lua knowledge. I'll try my hardest however but could someone give me a heads up on what I'm doing? Also if anyone could do this themselves I would really appreciate it. Thanks. Oh and by the way, how can I access the default Garry's Mod tools?
Default tool for [url=http://luabin.foszor.com/code/gamemodes/sandbox/entities/weapons/gmod_tool/stools/pulley.lua]pulleys[/url] I believe that pulleys are hopefully broken, implemented in source. [b][url=wiki.garrysmod.com/?title=Constraint.Pulley]Constraint.Pulley [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
[quote=Wiki]constraint.Pulley( Ent1, Ent4, Bone1, Bone4, LPos1, LPos4, WPos2, WPos3, forcelimit, rigid, width, material )[/quote] WPos2 and WPos3 (WorldPos) and no feeding of Ent2 or Ent3 (Only two entities.) I believe this means that the Source-coded pulleys don't have support for working on moving entities. I think the only way this could be fixed is if Garry implements a custom one or you make your own system for it through Lua, which would probably be possible but not easy.
Yeah after looking at the code for a minute I came to the same conclusion. I don't think it would be too hard but is probably beyond my ability. I suppose I'm going to have to wait for someone else to make it.
You could make some invisible "pulley" entities, and then... You would have to calculate the distance between the pulleys and the props, so when one prop gets further away from one pulley, the other prop gets closer to the other pulley.
Sorry, you need to Log In to post a reply to this thread.