Garry's Mod

Garry's Mod

62 ratings
[PHOENIX] LVS Parts
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Vehicle
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
22.900 KB
3 Apr, 2023 @ 6:37pm
15 May, 2023 @ 1:15pm
2 Change Notes ( view )

Subscribe to download
[PHOENIX] LVS Parts

Description
A New, easy to use, and modular parts system compatible with LVS Planes

This unofficial expansion to LVS adds custom entities and functions using PHOENIX, a new work in progress LVS base.

The addon allows creators to use custom models for destructible parts on their planes, and uses a slightly modified Fighter Base for ease of use in making new planes.

Current features:
  • Destructible parts
  • Animated flap entities
  • Custom part entities
  • Damage based on collisions
  • Parts effect flight
  • Optional propeller

Planned features:
  • Gear Support
  • 3rd person camera ignores parts
  • Canards
  • Rudder-vators
  • Improved propeller animation


FAQ (read before commenting please)

Q: Why not spend more time working on the addon until all the planned features are done?
A: I'm going into surgery tomorrow as off this addon's initial creation, so I don't want to risk forgetting everything and not being able to get SOMETHING out

Q: Will Neuromicro get updated with this?
A: Yes, Neuromicro will be ported to LVS with this parts sytstem in the coming months (probably maybe less time)

Q: What projects are going to happen next?
A: After I update Neuromicro I hope to begin work on Neuromicro Naval in some capacity while I wait for LVS Tank or something

Q: Why is this so janky
A: Im still learning GLua... hopefully this addon doesn't hurt too much

Q: Can you make [something]
A: I'm not taking any suggestions currently (unless its feedback about this addon), and my commissions will be inactive while I'm recovering from surgery


*plane not included

How to use LVS Parts in your own planes

I first assume that your plane already as the parts models. The parts you need are
  1. Main Body
  2. Left Wing
  3. Left Aileron
  4. Right Wing
  5. Right Aileron
  6. Tail
  7. Elevator
  8. Rudder
  9. Propeller (OPTIONAL)

You'll also need a skeleton in the main body of the aircraft that will be used to animate the flaps, and be able to spawn them in the correct position. the names of the bones don't matter, the positions of them do as they control where the flaps are spawned. (The propeller is considered a flap aswell)

The wings and tail need to have their offset already in the model, like this[cdn.discordapp.com]

The flaps will be spawned using attachments, and need to not be offset unlike the wings. The attachments need to be in a specific order for them to work:

$attachment "laileron" "bonename" x y z rotate x y z $attachment "raileron" "bonename" x y z rotate x y z $attachment "rudder" "bonename" x y z rotate x y z $attachment "elevator" "bonename" x y z rotate x y z $attachment "propeller" "bonename" x y z rotate x y z
(propeller is optional)

They have to be the first attachments, otherwise the code will put a nil model where your part was meant to go.

Once the model has been compiled like this, the code should handle everything from here. You can get a modified version of Luna's fighter base here[github.com].

You only need to add the models for the parts into shared.lua, and everything else is handled by the code. The flight turn rates currently cannot be modified to anything other than 1, but I am going to work on fixing that when I'm recovered from surgery.
Popular Discussions View All (1)
7
7 Apr, 2023 @ 5:56am
PINNED: BUG REPORTS
jon b
18 Comments
Neko Damian 12 May, 2023 @ 11:18am 
Regarding land vehicles it appears LVS comes with Land vehicles in the Star Wars Pack might ask Luna about that.
jon b  [author] 22 Apr, 2023 @ 11:32am 
@AdiVitto Gredwitch's planes are actually older than this, and it was directly inspired by it. I am currently working on a plane pack for it yes (i said it in the FAQ)
AdiVitto2k3 22 Apr, 2023 @ 11:27am 
Any planes that use it so far? cuz the only ones I know of are the old LFS gredwitch FW-190's and that's it.
Dr. Ford 19 Apr, 2023 @ 7:20pm 
Yes.. I've been getting into developing and I haven't used anything like this before
jon b  [author] 19 Apr, 2023 @ 6:17am 
@Pondering_Death it's not for normal players to use it's for developers to add to their planes
Dr. Ford 18 Apr, 2023 @ 9:29pm 
This is really complex, I seriously don't understand how to use this at all
selfsucc 12 Apr, 2023 @ 6:51am 
thats cool. hope you get well sool
jon b  [author] 10 Apr, 2023 @ 6:26am 
@Eric yeah i said in the FAQ im gonna update Neuromicro to LVS. I'm recovering from surgery at the moment so I can't be bothered to start
selfsucc 10 Apr, 2023 @ 5:37am 
you should make micro planes/helis for lvs like you did for lfs. i used to love the micro planes i and probably a lot more people would highly appreciate it.
jon b  [author] 8 Apr, 2023 @ 9:50am 
@AdiVitto2k3 not yet