Ballistic Weapons?
Moderators: winston, another_commander
- Cmdr Memelord
- Average
- Posts: 10
- Joined: Fri Sep 18, 2015 12:12 am
Ballistic Weapons?
What do you guys think of an OXZ that allows you to mount a ballistic weapon in place of a laser weapon? I know there's already a Railgun OXP, but it would be cool to use a chaingun instead of a laser.
- Disembodied
- Jedi Spam Assassin
- Posts: 6885
- Joined: Thu Jul 12, 2007 10:54 pm
- Location: Carter's Snort
Re: Ballistic Weapons?
It would be an interesting experiment, but you'd have to have some way of removing the slugs from the universe after a set length of time, to avoid the game having to constantly keep track of hundreds or thousands of extra entities.
Re: Ballistic Weapons?
There's another problem with the Railgun OXP-- if you fire too quickly you can hit your own railgun slugs, which not only destroys them, but, (at least when I tried it in 1.80) counts as a kill towards Elite status! I was amazed to find my Elite ranking had jumped by about thirty points after only one combat, when I knew I'd only splashed two or three ships at the most. It wasn't until I put the Trophy Collector OXP on that I confirmed it, and saw 'Railgun Shot' or whatever the entity is called under my trophies as having 'killed' over twenty of them.Disembodied wrote:It would be an interesting experiment, but you'd have to have some way of removing the slugs from the universe after a set length of time, to avoid the game having to constantly keep track of hundreds or thousands of extra entities.
Doing my part to curb the railgun ammo menace in this quadrant, yup, that's me.
(I removed the OXP and reverted to an earlier save to clean up my Elite record. Killing innocent railgun ammunition isn't my style.)
Reports of my death have been greatly underestimated.
- Smivs
- Retired Assassin
- Posts: 8408
- Joined: Tue Feb 09, 2010 11:31 am
- Location: Lost in space
- Contact:
Re: Ballistic Weapons?
It needs "counts_as_kill" = no; in shipdata perhaps?
Commander Smivs, the friendliest Gourd this side of Riedquat.
Re: Ballistic Weapons?
Very likely! But this was when I was new to Oolite and hadn't started tinkering in OXP's yet, so I never had a closer look.Smivs wrote:It needs "counts_as_kill" = no; in shipdata perhaps?
Reports of my death have been greatly underestimated.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Ballistic Weapons?
The railgun was interesting ordnance, especially once I'd tinkered with the slugs. At one stage, I disabled my laser and used the trigger for the railgun. It was a strange feeling when the magazine ran-out - all 100 slugs gone, and no other weapon to use. At close quarters, it was an easy-to-use killer, but long-range accuracy required practice - splashing a bandit at 10km or more needed skill!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- Cmdr Memelord
- Average
- Posts: 10
- Joined: Fri Sep 18, 2015 12:12 am
Re: Ballistic Weapons?
If I recall, in the code the railgun projectile model is just a cargo canister defined as a ship entity. So yeah, turning off "counts_as_kill" should keep you from gaining kills by shooting other railgun explody things.
Re: Ballistic Weapons?
Also, as I recall, it was one of those weapon upgrades that none of the NPC's were able to use. One thing I like about Redspear's New Lasers for 1.82 is that the shipdata has been tweaked to give many of the NPC ships access to the greater variety of weapons. Fair play's a jewel. Even if you could equip NPC ships with the railgun, I'm not sure they've got the AI to handle using it well; as Cody notes, it's a different sort of weapon and needs different tactics.
Anyhow, off topic-- I do like the idea of some sort of an ammo-based ballistic weapon (perhaps even with an add-on equipment to manufacture ammunition using raw alloys or minerals), but it'd have to be something the enemy gets to play with as well.
Anyhow, off topic-- I do like the idea of some sort of an ammo-based ballistic weapon (perhaps even with an add-on equipment to manufacture ammunition using raw alloys or minerals), but it'd have to be something the enemy gets to play with as well.
Reports of my death have been greatly underestimated.
- Disembodied
- Jedi Spam Assassin
- Posts: 6885
- Joined: Thu Jul 12, 2007 10:54 pm
- Location: Carter's Snort
Re: Ballistic Weapons?
That might really cause problems, though - imagine a dozen or more NPCs spread throughout a system, all pop-pop-popping new entities at each other all over the place! Even if slugs were just little flat metal plates (with an improbably high mass, presumably, if they're going to do any damage), any sort of chain-gun could seriously overload things.Layne wrote:I do like the idea of some sort of an ammo-based ballistic weapon (perhaps even with an add-on equipment to manufacture ammunition using raw alloys or minerals), but it'd have to be something the enemy gets to play with as well.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Ballistic Weapons?
<nods sagely> Is it still 2048 entities for a full universe? Or have I mis-remembered something?Disembodied wrote:... any sort of chain-gun could seriously overload things.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
Re: Ballistic Weapons?
Now, I'm not up on all the game mechanics, but as I recall, too many entities even stops lasers from working-- which implies laser beams are entities too. (Side note: That needs to be a ship bumpersticker; 'Laser Beams Are Entities Too!' They deserve photon rights!) Is their nearly instant dispersal what keeps the same issue from cropping up?Disembodied wrote:That might really cause problems, though - imagine a dozen or more NPCs spread throughout a system, all pop-pop-popping new entities at each other all over the place! Even if slugs were just little flat metal plates (with an improbably high mass, presumably, if they're going to do any damage), any sort of chain-gun could seriously overload things.Layne wrote:I do like the idea of some sort of an ammo-based ballistic weapon (perhaps even with an add-on equipment to manufacture ammunition using raw alloys or minerals), but it'd have to be something the enemy gets to play with as well.
Reports of my death have been greatly underestimated.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Ballistic Weapons?
Don't know about lasers, but hit the entity limit and the whole game can lock-up!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- Wildeblood
- ---- E L I T E ----
- Posts: 2453
- Joined: Sat Jun 11, 2011 6:07 am
- Location: Western Australia
- Contact:
Re: Ballistic Weapons?
Laser beams are indeed entities too.
Captan Okti long ago made a Rocket Launcher OXP that fired several missiles simultaneously, said missiles having no manoeuvrability so they flew straight.
Captan Okti long ago made a Rocket Launcher OXP that fired several missiles simultaneously, said missiles having no manoeuvrability so they flew straight.
In your heart, you know it's flat.
- Norby
- ---- E L I T E ----
- Posts: 2577
- Joined: Mon May 20, 2013 9:53 pm
- Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
- Contact:
Re: Ballistic Weapons?
Yes, but with proper coding it is possible to put all slugs into the same entity. I plan the next [wiki]Trails[/wiki] in the same way, using a single entity for each ship with many individually repositioned subentities.Cody wrote:Is it still 2048 entities for a full universe?
Re: Ballistic Weapons?
Collision detection doesn't reliably determine which subentity was hit, though.Norby wrote:Yes, but with proper coding it is possible to put all slugs into the same entity.
E=mv² - even a small projectile if it's moving fast enough to actually hit anything is going to do a lot of damage. Though, if it's going fast enough, depending on the frame rate it may end up going from in front of the target to behind it without ever hitting it.Disembodied wrote:(with an improbably high mass, presumably, if they're going to do any damage)