Here we are again with the 5th weird experimental mod I've uploaded on the repo. This time I made a flamethrower for the Pigeon.
It's a proof of concept mod made in a few days (would have been out earlier if my beta tester wasn't busy), with not too much complexity in terms of physics, won't deform (or will glitch out) on crashes, and can detach from the roof and bed, the top part can also detach from the fuel tank. That will not only render the flamethrower unusable, but also create a fuel leak from the tank, which means it will be able to catch on fire. The flamethrower's fuel tank is very heavy, but will progressively lose weight as it runs out of fuel when you use the flamethrower. In the top left corner of the screen you will see the amount of fuel you have left, and additionally a message if the flamethrower gets broken.
You fire it by holding F, if that doesn't work then it's a mod conflict and you have to rebind your controls manually:
There's one thing you should be aware of while using the flamethrower: IN THIS GAME, HEAT DOESN'T TRANSFER BETWEEN VEHICLES, so it won't do damage to any other cars and won't catch them on bigger fire. It CAN however affect your own vehicle. Being too close to the fire you started might result in overheating of various components of the vehicle, or even transfering the fire to them if you drive into it!
The Pigeon configuration included in the mod has some upgrades installed (racing brakes and radiator) to resist temperature better, but this doesn't instantly make it fireproof. You have to be really careful with it regardless. Overheating brake pads can lead to brake failure, and engine or radiator overheating can quickly cause a permanent engine failure! Driving forward while using the flamethrower is generally a very bad idea. Once your car catches on fire, you have to keep driving to keep it from spreading, but at the same time you can't work the engine too hard or else it overheats quicker! And obviously also don't do this:
This mod was made with the use of a custom LUA code I made. What I like about this code is it's flexibility - it can simulate not only a flamethrower, but it theoretically can work on anything that can shoot. I have included an example that can be found in the parts selector...
It's an example of a fully adjustable machine gun. While still using the flamethrower model, it makes machine gun fire, smoke and sound effects, all of this has been in the game's files for ages, no idea why lol. It can already do some damage on default settings...
But there are also some things you can adjust in the tuning menu!
Some explanation for each one:
I have already written way too much so I'll end the description here lol, have fun with the mod! You can use the flamethrower/gun LUA in your mods if you want, as long as you credit me! Time for my credits:
- Amount of bullets is self-explanatory. It doesn't affect the weight of the gun, because each bullet is normally very light.
- Additional energy is a generic term that you can treat as explosive/penetrating energy of each bullet. Leaving it at 1 will make it behave like a normal object shot at high speed rather than a bullet. A higher energy equals to higher mass in game (the bullet will have more momentum), so it needs a stronger gun to be shot at the same speed as a bullet with less energy.
- Bullet weight is just weight per bullet. This one can make a big difference in the gun's weight as there are many bullets and it has a high range of setting (up to 10kg per bullet).
- Fire rate is how fast the gun shoot, obviously it affects how fast you run out of ammo.
- Launching spring precompression is basically how much force goes into the bullets getting shot. You have to keep in mind that it also means more recoil. Be careful with this setting, too high values for too low energy can mean bullets passing through objects, and too high both precompression and energy can cause instabilities! Smaller precompression is usually better for close targets, while bigger is better when they are far away.
- Me - LUA code, model edits and most Jbeam
- BeamNG - models and textures used for the mod, including a removed Pigeon skin I brought back, T-Series exhaust used as a flamethrower base, fuel tank from tanker trailer, and old lighter version of cannon Jbeam that I used for the shooting mechanism
- Felipe Maciel - beta testing, ideas, feedback, etc.