Author Topic: Vehicle Additions Pack (Updated December 8)  (Read 96464 times)

Offline The Lone Badger

  • Survivor
  • ***
  • Posts: 393
    • View Profile
Re: Vehicle Turrets Mod
« Reply #30 on: November 11, 2014, 08:46:31 AM »
Autofiring 120mm would probably be a bad idea (you'd kill yourself).
I don't know how possible this is in-code, but how about a fixed-position cannon? (It's the only way you'd manage to mount a gun like that anyway). Set an orientation when you install it, like a headlight. Fire it from the vehicle controls menu, and it shoots in a straight line in the direction the gun is mounted.

Offline TheFlame52

  • Survivor
  • ***
  • Posts: 2183
  • Forumite Summoner
    • View Profile
Re: Vehicle Turrets Mod
« Reply #31 on: November 11, 2014, 12:24:52 PM »
Autofiring 120mm would probably be a bad idea (you'd kill yourself).
I don't know how possible this is in-code, but how about a fixed-position cannon? (It's the only way you'd manage to mount a gun like that anyway). Set an orientation when you install it, like a headlight. Fire it from the vehicle controls menu, and it shoots in a straight line in the direction the gun is mounted.
Major code overhaul
Quote from: Jarlaxle
All hail our new Over(powered) Lord TheFlame52
Quote from: Arek_PL
THEY CAN DAMAGE FLAME! WE ARE DOOMED!
Quote from: Jakers
Oh Marloss Man, you and your unstoppable rampages throughout the world.

Offline Blaze

  • Survivor
  • ***
  • Posts: 635
    • View Profile
Re: Vehicle Turrets Mod
« Reply #32 on: November 16, 2014, 08:24:51 PM »
What turrets essentially do is create an NPC wielding that weapon and letting that NPC shoot. So fixing that would mean diving into NPC code, which I consider a hands-off zone.

There's some new burst-fire code in yesterday's experimental that changed burst mechanics, but it also meant they'll shoot at you if they run out of valid targets mid-burst. So update if that happens.

Some new code also makes gasoline powered turrets explosive no matter what you do; so be wary of using the flamethrower turrets until it's addressed.

Now excuse me while I try to figure out a way to weaponize sand.

Offline The Lone Badger

  • Survivor
  • ***
  • Posts: 393
    • View Profile
Re: Vehicle Turrets Mod
« Reply #33 on: November 16, 2014, 10:47:10 PM »
Now excuse me while I try to figure out a way to weaponize sand.

Melt it with an internal furnace and fire globs of molten glass at things?

Offline FunsizeNinja123

  • Survivor
  • ***
  • Posts: 7569
  • Bleeding sand
    • View Profile
Re: Vehicle Turrets Mod
« Reply #34 on: November 16, 2014, 10:51:48 PM »
Sand gun that fires large amounts of sand that blinds and stuns enemies?
"Pretty, yep." John Candlebury, on herself.
"Dynamic NPCs turns this game into an ASCII DayZ." ~ChristopherWalken
"Ninjas are so tasty." ~Kevin Granade himself
"This ain't Terraria.  Your wings are not powered by the Soul of Flight." ~KA101
"Never has my snake been more solid..."

Offline chevil

  • NPC
  • **
  • Posts: 107
    • View Profile
Re: Vehicle Turrets Mod
« Reply #35 on: November 17, 2014, 06:03:32 AM »
A sand blaster for killing your enemies layer by layer.

Offline Kevin Granade

  • Administrator
  • Survivor
  • *****
  • Posts: 5346
  • I code dead people.
    • View Profile
Re: Vehicle Turrets Mod
« Reply #36 on: November 17, 2014, 07:55:37 AM »
Autofiring 120mm would probably be a bad idea (you'd kill yourself).
I don't know how possible this is in-code, but how about a fixed-position cannon? (It's the only way you'd manage to mount a gun like that anyway). Set an orientation when you install it, like a headlight. Fire it from the vehicle controls menu, and it shoots in a straight line in the direction the gun is mounted.
Major code overhaul
I don't think it'd be as bad as you think.  Yes it spawns a NPC to fire the gun, but where it's aiming is handled by the turret AI code.
Check out https://github.com/CleverRaven/Cataclysm-DDA/pull/10056, I hacked the tank cannon AI to fire at the vehicle instead of the player.
Its like a fun family cookout, except your family is burning in flames while trying to eat you. -secretfire
I'm more excited than a survivor on meth and toast'ems. -Nighthawk
The the giant wasp is slammed through the zombie brute!

Offline Arek_PL

  • Survivor
  • ***
  • Posts: 1879
  • NEVER ENOUGHT VOLUME IN INVENTORY!
    • View Profile
Re: Vehicle Turrets Mod
« Reply #37 on: November 17, 2014, 08:39:11 AM »
if tankbot will fire at center of vehicle creating bike like this

@HHHHHHH will make player immune to tank bot fire? (no is not long its wide with seat on edge)

Offline KA101

  • Administrator
  • Survivor
  • *****
  • Posts: 6858
    • View Profile
Re: Vehicle Turrets Mod
« Reply #38 on: November 17, 2014, 10:36:09 AM »
if tankbot will fire at center of vehicle creating bike like this

@HHHHHHH will make player immune to tank bot fire? (no is not long its wide with seat on edge)

Makes the shots noticeably more survivable.  Unless (in your case) the tank's on your left, at which point you're screwed.  ;-)

Offline TheFlame52

  • Survivor
  • ***
  • Posts: 2183
  • Forumite Summoner
    • View Profile
Re: Vehicle Turrets Mod
« Reply #39 on: November 20, 2014, 04:57:35 PM »
Which turret has the most range?
Quote from: Jarlaxle
All hail our new Over(powered) Lord TheFlame52
Quote from: Arek_PL
THEY CAN DAMAGE FLAME! WE ARE DOOMED!
Quote from: Jakers
Oh Marloss Man, you and your unstoppable rampages throughout the world.

Offline Blaze

  • Survivor
  • ***
  • Posts: 635
    • View Profile
Re: Vehicle Turrets Mod
« Reply #40 on: November 20, 2014, 11:21:32 PM »
The Slingshot cannon, Scorpion, Spear Turret, and Grenade launcher have the longest range.
Energy weapons have significantly lower range than the above, but still fairly high.
The burst weapons excluding the HMG (Gatling, Autospear, Storm bolter, Avalanche, Dual/Quad SMG/Nail) have moderate range. Due to the guns converging on a singular point.
The flamethrowers have the lowest range, about 5-6 tiles. They're best used as a defensive measure, as they create a wall of flames that'll slaughter incoming zombies, but you probably don't want to drive though.

Just remember that damage dropoff for turrets is significant, a slingshot cannon can 2-3 shot a hulk with rocks, but will do little more than scratch it at max range.
« Last Edit: November 20, 2014, 11:33:12 PM by Blaze »

Offline TheFlame52

  • Survivor
  • ***
  • Posts: 2183
  • Forumite Summoner
    • View Profile
Re: Vehicle Turrets Mod
« Reply #41 on: November 20, 2014, 11:33:36 PM »
Oh wait, it says the range on the turret item itself. That is a very useful feature and one I will remember. I think I will mount an NX-17 Energy turret on the Solar Roller's roof for all-around coverage.
Quote from: Jarlaxle
All hail our new Over(powered) Lord TheFlame52
Quote from: Arek_PL
THEY CAN DAMAGE FLAME! WE ARE DOOMED!
Quote from: Jakers
Oh Marloss Man, you and your unstoppable rampages throughout the world.

Offline jokermatt999

  • Survivor
  • ***
  • Posts: 328
    • View Profile
Re: Vehicle Turrets Mod
« Reply #42 on: November 20, 2014, 11:34:35 PM »
Heads up, gun stats just got a rework. I remember offering to do a PR for this, but it'd slipped my mind til now. Update it with the latest gun stats (dispersion got a rework, as did recoil), and I'll submit it as a PR, though I can't promise it will be approved.

Offline KA101

  • Administrator
  • Survivor
  • *****
  • Posts: 6858
    • View Profile
Re: Vehicle Turrets Mod
« Reply #43 on: November 21, 2014, 12:45:58 AM »
Oh wait, it says the range on the turret item itself. That is a very useful feature and one I will remember. I think I will mount an NX-17 Energy turret on the Solar Roller's roof for all-around coverage.

Careful! the NX-17 can fire explosive projectiles at random.  Bit of a Hazard if you've a large vehicle.

Offline TheFlame52

  • Survivor
  • ***
  • Posts: 2183
  • Forumite Summoner
    • View Profile
Re: Vehicle Turrets Mod
« Reply #44 on: November 21, 2014, 01:09:57 AM »
I had to stop driving and get out to clear a helicopter crash because I couldn't drive through it and I couldn't drive around it. While clearing it out I found a laser turret and a pair of binoculars. I already had 4 high-quality lenses, so I took the turret and binoculars apart and made myself a Beam turret. It sits proudly on the top of my vehicle and now I have a turret that can hit things behind me.
Quote from: Jarlaxle
All hail our new Over(powered) Lord TheFlame52
Quote from: Arek_PL
THEY CAN DAMAGE FLAME! WE ARE DOOMED!
Quote from: Jakers
Oh Marloss Man, you and your unstoppable rampages throughout the world.