Skip to content
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

Attach to vehicles #1669

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Attach to vehicles #1669

wants to merge 7 commits into from

Conversation

PabstMirror
Copy link
Collaborator

#733

Attach IR Strobes to Vehicles (AKA Tactical duct-tape)

Allows attaching stuff to vehicles (same items as to players).
Can attach multiple objects to a vehicle.
When detaching from vehicles it will just detach whatever you are closest to.

Uses the Explosive placement to get a starting position of the item.
It then uses lineIntersectsWith to try and find where the hull starts, so it can attach the light directly.

2014-12-06_00006

Problems:
A light attached to a turret won't rotate with it. Not sure if fixable.

Adds the ability to attach to vehicles (chemlights, IR grenades).  3
positions, left and right of driver and the rear.
Based partialy on AGM_explosive.  Allows muliple points.
@jonpas
Copy link
Contributor

jonpas commented Dec 7, 2014

That looks cool. Could it be made so you can select what to detach?

A duct tape texture wouldn't be bad either, just behind the object a grey texture maybe?

@commy2 commy2 added this to the Version 0.96 milestone Dec 7, 2014
@kripto202
Copy link

hell why not go the full 9 yards and do backpacks too

@nicolasbadano
Copy link
Collaborator

hell why not go the full 9 yards and do backpacks too

Do you mean "attaching backpacks to vehicles" or "attaching stuff to backpacks"?

@jonpas
Copy link
Contributor

jonpas commented Dec 7, 2014

I think he meant "attaching backpacks to vehicles", like on the back of an off-road. The only problem I see is that there are already backpacks there, it might get confusing.

@nicolasbadano
Copy link
Collaborator

I think he meant "attaching backpacks to vehicles", like on the back of an off-road. The only problem I see is that there are already backpacks there, it might get confusing.

If that's the case, I don't think it's worth it. You can easily put the backpacks inside the vehicle inventory. Yes, it might be a bit slower, but getting that to work reliably might take us a lot of time we may better spend on other things.

@jonpas
Copy link
Contributor

jonpas commented Dec 7, 2014

I agree.

With "attaching stuff to backpacks", what exactly do you have in mind? Tie another rifle to it for example so it would like hang off? Or basically any other item?

@nicolasbadano
Copy link
Collaborator

With "attaching stuff to backpacks", what exactly do you have in mind? Tie another rifle to it for example so it would like hang off? Or basically any other item?

Basically I was thinking about chemlights, strobes, etc. Probably not worthwhile either.

Having an extra weapon on back was discussed extensively, but has some serious problems that prevent us from doing it right, so it was discarded. You can also put extra weapons inside the backpack already, so it is not vital.

@PabstMirror
Copy link
Collaborator Author

Attaching Backpacks To Vehicles:
I don't think there is any way to remove the (backpackContainer player) cargo container from the player. Cargo containers are extremity complex, there is a lot of stuff you can't script with them because of unique gear.

@nicolasbadano
Copy link
Collaborator

I don't think there is any way to remove the (backpackContainer player) cargo container from the player

Actually there is a hack for that, if you ever need to: just add an empty backpack and then remove it. The original will fall to the ground. I still think doing that is not worthwhile to pursue this though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants