-
Notifications
You must be signed in to change notification settings - Fork 738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Vehicle Towing #8380
Add Vehicle Towing #8380
Conversation
|
Damn, I wanted to write something very similar this weekend ;-D Nice one! |
Btw with 2.06 you can now also make custom rope models/textures. The problem that you have to use the brakes to "loosen" the brakes of the towed vehicle is weird ish. I think the issue here might be that the rope actually stops and pulls back the heavy truck (in your video), so at the point where you affect force on the towed vehicle, you instantly stop. One possible thing could be to use addForce or setVelocity to push the towed vehicle slightly. In my testing I always attached rope first and then setTowParent, not 100% sure if its relevant though
|
Nvm, I was stoop and didn't call setTowParent 🤦 Nvm I still did a huge fuckup. in, inMin, inMxa, outMin, outMax As you can see I fucked that up, parentSpeed is usually faster than mySpeed so you always end up with a negative here 🤦 |
Okey I fixed my interpolation and added a second factor.
TankX can also be towed, but in my tests most ropes were insufficient for the mass and just ripped. |
I don't understand the question, what do you mean by "anymore"? This is a new feature |
I just got my info from the Biki page. It explicitly says that TankX can't be towed at all |
Wiki is outdated then |
|
You can make custom ropes that stretch less. If a rope stretches too far, it breaks.
maxRelLenght -> max stretch before break |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Not a merge blocker but some missing features I noticed while testing:
|
I would merge this now, but that script error is no good, we should cleanup helper/rope objects on vehicle deletion. |
probably fixed |
We won't add handling for vehicle deletion on our side. |
Is it possible to make some vehicles tow "heavier" vehicles? It's currently not possible for the recovery vehicle Nemmera (built on the Merkava Mk3 chassis) to tow e.g. the AAF Leopard. |
I fixed the deleting issue finally: was a stupid reason, I forgot that the event handlers would still exist after you detach. It's on the engine to make vehicles be able to tow other vehicles - as far as I know it has to do with the weight of the vehicles, and manually adjusting weights via script seems like a good way to cause issues |
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
When merged this pull request will:
setTowParent
carx
vehicleACE_ropeX
fromace_fastrope
toace_common
Requires ARMA version 2.06. Any vehicle with simulation
TankX
orCarX
can tow any vehicle with simulationCarX
- this is an engine limitation and I don't really have any way to tell the user that is the case: any suggestions?In Action: https://youtu.be/hSGIu9_rrCg