[Code] Logistic truck, Supplycrate hold

Making or wanting help making your own asset? Check in here
J.F.Leusch69
Retired PR Developer
Posts: 2988
Joined: 2008-04-23 16:37

[Code] Logistic truck, Supplycrate hold

Post by J.F.Leusch69 »

hello there,

let me first expalin this a bit:
the idea was that the trucks (in this case the logistictrucks) hold the supplycrates on their back and not "inside" the truck. this could also affect gameplay because you would see if and how many crates a logistictruck holds (own and enemy trucks).

and now some pics to let you see how it could look like:
Image
:arrow: both crates on the back
Image
:arrow :o ne crate dropped, one still on the back
Image
:arrow: both crates dropped, back is empty

i hope you like it and it can be used by PR (even if i dont think it would work well with supplytrucks because their back is mostly full of people :D )
Last edited by J.F.Leusch69 on 2009-08-06 20:24, edited 1 time in total.
dbzao
Retired PR Developer
Posts: 9381
Joined: 2006-06-08 19:13

Re: [Code] Logistictruck, Supplycrate hold

Post by dbzao »

yep, we always wanted to do that, but we never got to doing it.

I think there are issues with reload and the dummy projectiles in dedicated, but even if it stays on the back would look cool. :)

"There's always one more bug." - Lubarsky's Law of Cybernetic Entomology
J.F.Leusch69
Retired PR Developer
Posts: 2988
Joined: 2008-04-23 16:37

Re: [Code] Logistictruck, Supplycrate hold

Post by J.F.Leusch69 »

well i wouldnt think so, because its the same way how the AA missles work on the helis for example and i think they work without problems
Wilkinson
Posts: 1916
Joined: 2008-08-18 21:55

Re: [Code] Logistictruck, Supplycrate hold

Post by Wilkinson »

AA is stationed though. It doesnt Move around like the Logistic Truck
Image
Image
HughJass
Posts: 2599
Joined: 2007-10-14 03:55

Re: [Code] Logistictruck, Supplycrate hold

Post by HughJass »

Wilkinson wrote:AA is stationed though. It doesnt Move around like the Logistic Truck
since when do helicopters not move?
Image
503
Posts: 679
Joined: 2008-08-30 02:53

Re: [Code] Logistictruck, Supplycrate hold

Post by 503 »

Man if that works, that would be pretty sick. I always thought the emptiness of the back of the logistic truck disturbing.
dbzao
Retired PR Developer
Posts: 9381
Joined: 2006-06-08 19:13

Re: [Code] Logistictruck, Supplycrate hold

Post by dbzao »

We never put anything on the back because we planned to do this exact suggestion.

"There's always one more bug." - Lubarsky's Law of Cybernetic Entomology
J.F.Leusch69
Retired PR Developer
Posts: 2988
Joined: 2008-04-23 16:37

Re: [Code] Logistictruck, Supplycrate hold

Post by J.F.Leusch69 »

well its done :)
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [Code] Logistictruck, Supplycrate hold

Post by Rhino »

Nice work :)

Was going to code this myself but when I saw I would have to totally rework the code to allow this to happen I thought f*ck it and went onto something more important :p

Also a small tip if you rotate one of the two crates by 180degs will most likley look a little better, at the moment since they are at the same rotation they look like clones (which they are but you can make it look less of a clone by rotating it ;) )
Image
ReadMenace
Posts: 2567
Joined: 2007-01-16 20:05

Re: [Code] Logistictruck, Supplycrate hold

Post by ReadMenace »

I think someone ought to share the hookers & blow with Leusch. ;)

-REad
Scot
Posts: 9270
Joined: 2008-01-20 19:45

Re: [Code] Logistictruck, Supplycrate hold

Post by Scot »

Nice job :D


Edit: REad, your sig just scared the **** out of me!
Image
=(DK)=stoffen_tacticalsup
Posts: 231
Joined: 2008-04-24 09:45

Re: [Code] Logistictruck, Supplycrate hold

Post by =(DK)=stoffen_tacticalsup »

[R-CON]ReadMenace wrote:I think someone ought to share the hookers & blow with Leusch. ;)

-REad
Rank does have it's privileges 'hu? ;)
Random mumble talk between maps
Dude1-Ive heard that people, through gaming, satisfy their need for social life.
Dude2-LOL
Dude3-Thats why I play, to make friends.
Dude4- I play for the chicks.
-silence-
Dude5- Bourgh-bourgh-bourgh-booorghurK?
Celestial1
Posts: 1124
Joined: 2007-08-07 19:14

Re: [Code] Logistictruck, Supplycrate hold

Post by Celestial1 »

[R-DEV]Rhino wrote:Also a small tip if you rotate one of the two crates by 180degs will most likley look a little better, at the moment since they are at the same rotation they look like clones (which they are but you can make it look less of a clone by rotating it ;) )
Or, better: put both the crates in the same way, but offset them from the center slightly and/or rotate the crate within 15 degrees of their current state. It makes it look like they were deliberately put in the truck that way (usually, people think that kind of way when they load them up) but look like it was more of a job done by a human rather than computer.

As for the Transport trucks, you could put the crate nearest the front or back of the bed (depending on the truck or whatever), and squeeze the passengers either closer to the back or rotate the crate 45 degrees to kind of give them 'leg room'.

Nicely done, though. Hope to see it in game.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [Code] Logistictruck, Supplycrate hold

Post by Rhino »

Celestial1 wrote:As for the Transport trucks, you could put the crate nearest the front or back of the bed (depending on the truck or whatever), and squeeze the passengers either closer to the back or rotate the crate 45 degrees to kind of give them 'leg room'.
iirc I believe the plan is to remove the crate from the transport version.
Image
Priby
Posts: 2379
Joined: 2008-06-21 18:41

Re: [Code] Logistictruck, Supplycrate hold

Post by Priby »

Awesome, good work Leusch.
Btw will the indicator be removed? Now that you can simply press c and look back to check.
Image
J.F.Leusch69
Retired PR Developer
Posts: 2988
Joined: 2008-04-23 16:37

Re: [Code] Logistictruck, Supplycrate hold

Post by J.F.Leusch69 »

Priby wrote:Awesome, good work Leusch.
Btw will the indicator be removed? Now that you can simply press c and look back to check.
thats not my desicion :D
[R-DEV]Rhino wrote:Nice work :)

Was going to code this myself but when I saw I would have to totally rework the code to allow this to happen I thought f*ck it and went onto something more important :p

Also a small tip if you rotate one of the two crates by 180degs will most likley look a little better, at the moment since they are at the same rotation they look like clones (which they are but you can make it look less of a clone by rotating it ;) )
wel rotating 1 of the crates 180 wouldnt work because i am using a "ObjectTemplate.fire.projectileStartPosition" and thats and important line i cant delete, so if you rotate one "too much" than they wouldnt dropped at the back of the truck, maybe even glitch so how in the vehicale etc

so i think the best is to rotate them maybe only 5-10° and move them a bit so there are not in a line.

and if the devs wants to use it, PM me and i can send you a example of the code and could explan it a bit mroe (codingwise)

anyway thanks for your nice comments
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [Code] Logistictruck, Supplycrate hold

Post by Rhino »

why dont you put a barrel in and then tell both projectiles to fire out of that barrel, which is just off the back of the truck? then it dose not matter w/e way the dummies are rotated or positioned.
Image
J.F.Leusch69
Retired PR Developer
Posts: 2988
Joined: 2008-04-23 16:37

Re: [Code] Logistictruck, Supplycrate hold

Post by J.F.Leusch69 »

i dont think that works, because the barrels are also the dummy objects, like the AA missles in the helis.

so adding another barrel wont work, and just adding the dummy objects and 1 barrel could work, but then i think the weapon cant see whats just a child object sticked on the weapon and whats a dummy object that it should use

EDIT: okay, i have try it in the editor and it doesnt work that way. but i think there is 1 possible ways to work a round that:


1. make a "new" mesh with a different pivot point
Last edited by J.F.Leusch69 on 2009-08-07 13:20, edited 3 times in total.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [Code] Logistictruck, Supplycrate hold

Post by Rhino »

you should be able to make a dummy barrel with no mesh that is named differently to the dummy weapons then you set the barrel to that. What you most likley have setup is using the dummy weapons as barrels which I'm pretty sure you dont need to do.
Image
Gore
Retired PR Developer
Posts: 2491
Joined: 2008-02-15 21:39

Re: [Code] Logistictruck, Supplycrate hold

Post by Gore »

This is awesome, a must.
Post Reply

Return to “PR:BF2 Community Modding”