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

(Feature) Add a way to re-arm armed vehicles #71

Open
JoSchaap opened this issue Jul 17, 2013 · 20 comments
Open

(Feature) Add a way to re-arm armed vehicles #71

JoSchaap opened this issue Jul 17, 2013 · 20 comments
Assignees
Milestone

Comments

@JoSchaap
Copy link
Owner

  • explosive specialists wearing a toolbox can rearm an armed vehicle once if they have item X in their inventory
  • item X will spawn arround the map just as baseparts but be small and hard to find (wooden box or something)
  • a long animation will play while re-arming an armed vehicle :)
@ghost ghost assigned JoSchaap Jul 17, 2013
@JoSchaap
Copy link
Owner Author

or alternatively create an ammotruck mission using a normal truck with some variables set to it's init
allowing 3-5 reloads before its empty :)

but i like the first idea better

@AgentRev
Copy link

How about Land_Suitcase_F? Or Box_IND_Support_F?

@JoSchaap
Copy link
Owner Author

suitcase is allready the repairkit ;)

ill think of something 👍

@MercyfulFate
Copy link

Why not combine the two ideas....
Have a ammo truck mission like in arma 2...
But only explosive experts close enought(or maybe in the truck) can rearm vehicles/helicopters.

Rather than a long animation, have it incrementally increase the ammo in the the vehicle (if its possible).

@AgentRev
Copy link

You can only increase the ammo if there are magazines left in the vehicle. If all turret ammo counters are at 0, it means there are no more magazines, and new ones must be added.

@MercyfulFate
Copy link

you guys would know more about it than me, but that is how I would try to do it.

up to you guys if you want to do it or not, but that just seems the easiest way, and also adds another mission into the mix. later on you could have an immovable "air dropped crate" (another mission?) that players can refill their ammo trucks at.

@JoSchaap
Copy link
Owner Author

might make it so that an explsive engeneer needs to have a Box_IND_Support_F nearbye to rearm a vehicle (or maybe from inside the vehicles content (R3F) :)

need to do some more brianstorming over this :)

@Cosmo121
Copy link

How about adding them to the gun store in a separate 'Vehicle Ammo' tab?

For instance, 200Rnd_127x99_mag_Tracer_Red, labeled as 'Hunter 200Rnd HMG Ammo'.
hunterhmgarma3

@JoSchaap
Copy link
Owner Author

thats what im going for indeed but need to take some time to code it all in :) offcourse only explosive specialists will be able to use these ;)

@AgentRev
Copy link

If you make it so it stores the vehicle magazines in the Wasteland inventory with jerry cans and food, I guess it could work.

I can help you with that if you want. Since you will need to use addMagazineTurret, you will need to know the "turret path" to add the magazine to the proper slot, and I know how to find it.

You will probably have to make entries for every compatible turret in the action menu, since for example the UH80 has 2 turrets using the same ammo, so it can't just be a generic "Load vehicle ammo" action.

@AgentRev
Copy link

I'll probably just make you a function to which you pass a vehicle and a magazine name, and it will return you an array of arrays contains the name of turret weapons and their turret path value, for example [["Missiles", [0]], ["Minigun", [1]]]

@MercyfulFate
Copy link

Working on my inventory system all today so hopefully I should have a pull request in soon. (now have two account so i dont need to wait for others to test the multiplayer side). If you want I can add another item in for you so you have something to base that off of.

@JoSchaap
Copy link
Owner Author

postponed till v2.4 there just isnt an appropriate part to use..

did find out there's a bomb in the game :)
classname 'Bomb' and yes you die if you shoot at it /offtopic

@JoSchaap JoSchaap reopened this Jul 25, 2013
@AgentRev
Copy link

Sqyrel from the TPG forums mentioned this:

"A new item called Supply Crate - Vehicle Ammo is in the game, pull it up next to your vehicle, and it slowly starts to automatically reload."

@JoSchaap
Copy link
Owner Author

Ive been playing with those two crates. But they have an endless supply :)

@HatchetHarry
Copy link

Hey JoSchaap
I scripted the Vehicle Reload as Item for the General store.

I just have to fix 2 Bugs:

  • Vehicle Passgenger Check as Precondition (only works if the vehicle is empty)
  • Need to use another item than the suitcase, because the Playeraction is already using suitcase_f

Will send you the code, when i am ready
Atm i am combining Fussion + Vehicle Buy + GoT + Ammo

Testserver: Armajunkies Myloc Testserver
PW: 1234

@AgentRev
Copy link

AgentRev commented Aug 8, 2013

You should put the code on here

@HatchetHarry
Copy link

will upload the files on my github. I have already created a base version, to mark the changes.
will link it than. there are changes in different files.

@JoSchaap
Copy link
Owner Author

JoSchaap commented Aug 8, 2013

either way any submissions are allways appreciated. and nice to see KOS and others picking up fussion WL :)

@HatchetHarry
Copy link

https://github.com/HatchetHarry/AJ_GoT_Wasteland_23.Stratis/tree/AJ-Changes
Added my version with the ammokits

The version is not productive. I am still fighting against buyguns.sqf. Buying Vehicles is currently not working on the dedicated server. Think i have to learn more about bis_fnc_mp

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

No branches or pull requests

5 participants