-
Notifications
You must be signed in to change notification settings - Fork 737
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
Fixed airdrops sink in the ground #6238
Conversation
Wouldn't this mean the cargo is stuck inside the parachute model? |
Yes... look here -> https://youtu.be/IYS29dWDe5s?t=1m20s But the problem is... the driangle thing is the bottom of the parachute... and because the supply is attached is has no physics so... the parent model must be the bottom... It now works for every supply box! |
How about only doing it for the boxes that actually don't have physx and need this "fix"? |
The problem is the attachTo to the parachute.... then the supplybox is there but has no collision. So then the parachute then hit the ground and the box is in the ground if it is not attached a littlebit over the bottom of the parachute.
That was a fail... i mean NOW it works for everything. Vanilla is doing the same... if you place a supplybox in zeus and then change the height to 100m (with ALT) it will automatic attach a parachute to it with attachTo [0,0,1] ^^ |
Seems logical to attach it above the object instead of under |
I can confirm that this is how curator does it (and it works): case "Object": {
switch _objectType do {
case "AmmoBox": {
//--- Create parachute for vehicles in the air
if ((position _object select 2) > 20 && alive _object) then {
_para = createvehicle ["B_Parachute_02_F",_objectPos,[],0,"none"];
_object attachto [_para,[0,0,1]];
};
};
};
}; |
Question though, why do we not just create the parachute where the object is? (Instead of at |
I dont understand what you mean... with this PR it works for all container... do you mean dynamically? |
Not specific to this PR, I was just looking at the code we have above these changes: private _parachute = createVehicle ["B_Parachute_02_F", [0,0,0], [], 0, "CAN_COLLIDE"];
// cannot use setPos on parachutes without them closing down
_parachute attachTo [_item, [0,0,0]];
detach _parachute;
private _velocity = velocity _item;
_item attachTo [_parachute, [0,0,1]];
_parachute setVelocity _velocity; |
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.
lower straps look a little funny but functionality over form
Before this fix, my solution was the following:
It's messy by all means, but perhaps the logic could be applied? |
When merged this pull request will: