Cannon turret
Moderator: ickputzdirwech
-
- Burner Inserter
- Posts: 5
- Joined: Tue May 15, 2018 12:37 pm
- Contact:
Cannon turret
They should make a stationary cannon turret. Shoots shells like the tank, that would be pretty dope.
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: Cannon turret
Although this is possible to mod in very easily right now, you have the slight issue that cannon shells are a collision detection projectile, meaning they deal damage to the first thing they hit, including your own walls. so either you'd have to put them outside of your walls, or the walls would be the first things that get destroyed when they fire.
-
- Burner Inserter
- Posts: 5
- Joined: Tue May 15, 2018 12:37 pm
- Contact:
Re: Cannon turret
Ohh, troo. Good point. Thx for clarifying that. I've been crankin' out ideas right and left. I'll just keep throwing them out there. Happy fourth.
Re: Cannon turret
The Rampant mod seems to have solved the issue of projectiles hitting walls or flying right over them. I don't think friendly fire is a huge obstacle for creating new player assets.
Re: Cannon turret
Could you add a minimum range?bobingabout wrote:Although this is possible to mod in very easily right now, you have the slight issue that cannon shells are a collision detection projectile, meaning they deal damage to the first thing they hit, including your own walls. so either you'd have to put them outside of your walls, or the walls would be the first things that get destroyed when they fire.
There are 10 types of people: those who get this joke and those who don't.
Re: Cannon turret
Yes, I have also created a weapon/turret mod that allows for 3 walls between the turret and where the projectile is created for things like cannon turrets.Jap2.0 wrote:Could you add a minimum range?bobingabout wrote:Although this is possible to mod in very easily right now, you have the slight issue that cannon shells are a collision detection projectile, meaning they deal damage to the first thing they hit, including your own walls. so either you'd have to put them outside of your walls, or the walls would be the first things that get destroyed when they fire.
- eradicator
- Smart Inserter
- Posts: 5206
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Cannon turret
I'm assuming you simply set the projectile_creation_distance to 3.5-ish? Looking at the gun-turrent it looks like the projectile is entirely dependant on the turrent entity and not on the ammunition?Veden wrote:Yes, I have also created a weapon/turret mod that allows for 3 walls between the turret and where the projectile is created for things like cannon turrets.
I'm asking because i was just wondering if the system is flexible enough to have staged projectiles, i.e. a projectile that fires a non-colliding projectile that after 30 ticks dies and spawns a colliding projectile with same direction.
Re: Cannon turret
Correct.eradicator wrote:I'm assuming you simply set the projectile_creation_distance to 3.5-ish? Looking at the gun-turrent it looks like the projectile is entirely dependant on the turrent entity and not on the ammunition?Veden wrote:Yes, I have also created a weapon/turret mod that allows for 3 walls between the turret and where the projectile is created for things like cannon turrets.
I'm asking because i was just wondering if the system is flexible enough to have staged projectiles, i.e. a projectile that fires a non-colliding projectile that after 30 ticks dies and spawns a colliding projectile with same direction.
The projectile is tied to ammo.
I would think it is possible, but getting the projectile direction may be challenging.
You could have a fixed distance the projectile will travel and when it hits it max range it calls on_trigger_created_entity at which point you spawn the second stage projectile.
- eradicator
- Smart Inserter
- Posts: 5206
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Cannon turret
"challenging" is the new impossible :p. I meant without scripts, not that i see a way they would help because:Veden wrote: I would think it is possible, but getting the projectile direction may be challenging.
You could have a fixed distance the projectile will travel and when it hits it max range it calls on_trigger_created_entity at which point you spawn the second stage projectile.
The main problem i see is that it seems impossible to make an in-air projectile die after a fixed time/distance? Unless you can somehow make a smoke-with-trigger (poison-cloud) move like a projectile.
Re: Cannon turret
You can set the attack_parameters to have whatever range you want the turret to shoot at, then configure the ammo to have whatever max range you want the projectile to stop at.eradicator wrote:"challenging" is the new impossible :p. I meant without scripts, not that i see a way they would help because:Veden wrote: I would think it is possible, but getting the projectile direction may be challenging.
You could have a fixed distance the projectile will travel and when it hits it max range it calls on_trigger_created_entity at which point you spawn the second stage projectile.
The main problem i see is that it seems impossible to make an in-air projectile die after a fixed time/distance? Unless you can somehow make a smoke-with-trigger (poison-cloud) move like a projectile.
I created a medic turret that looks for enemies within a range of 28 and shoots a projectile with a max range of 0. When the projectile hits it can either call into a script or setup the ammo to create whatever you want. In the instance of the medic turret it creates a healing cloud for player built buildings around the turret.