NPC use of unusual weaponry

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
Ngalo
Competent
Competent
Posts: 58
Joined: Mon Mar 02, 2015 2:08 pm
Location: drifting in remLock mask near Vezadi Station

NPC use of unusual weaponry

Post by Ngalo »

Do we need a better way of telling NPCs how to use (and how not to use) unusual items of pylon-mounted and other equipment?

I ask because I've just made a pylon-mounted rocket projectile pod, and although it works for the player I doubt NPCs would know how to aim them (or even that they need aiming). I can probably override bits of AI or ship script to let NPCs use the RPs, but it will be messy and difficult.

Several related issues here:
-Lack of 'instinctive' aiming behaviour for ballistic weapons in NPCs
-inability to tell NPCs to treat, for instance, a '_MISSILE' as if it was a ballistic weapon, or even an expendable X-ray laser which they would already 'instinctively' know how to aim.
-inability to tell NPCs in which behaviours or AI modes they should (or, equally important, shouldn't) consider using an item in. Changing this might also make it much easier to let NPCs use 'primeable' player equipment of many kinds.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: NPC use of unusual weaponry

Post by Smivs »

Ngalo wrote:
...although it works for the player I doubt NPCs would know how to aim them (or even that they need aiming).
Well, NPCs don't 'aim' normal missiles. Just like you do, they target the 'victim' and the missile does the rest. Or are you talking 'dumb' weapons here - you mention ballistics but of course there is no gravity in space so are you looking at something which just does a straight line after launch?
Commander Smivs, the friendliest Gourd this side of Riedquat.
Ngalo
Competent
Competent
Posts: 58
Joined: Mon Mar 02, 2015 2:08 pm
Location: drifting in remLock mask near Vezadi Station

Re: NPC use of unusual weaponry

Post by Ngalo »

Sorry if the above post was unclear. 'Dumb' weaponry is exactly what I'm talking about, although the point would apply to anything which needs different usage to a standard missile or mine, for instance the pylon-mounted fuel tank or a missile which could only track targets in a limited forward cone.
As I said, I think I can teach NPCs how to use such weapons, but it will involve intrusively overriding ship-script event handlers (or even bits of the AI library) and probably removing & re-awarding the weapon to prevent it being fired like a guided missile. Wouldn't it be nice if there was a simpler way of doing things?
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: NPC use of unusual weaponry

Post by Diziet Sma »

Smivs wrote:
but of course there is no gravity in space
But of course there's gravity in space.. otherwise, the ISS couldn't orbit the earth, and the earth couldn't orbit the sun. Everything would just fly off in straight lines.

Everything in space is falling -being pulled by gravity- towards something else. It's just that those objects are moving tangentially so fast in relation to the particular something else, that they never actually reach the object they're falling towards. They just fall, forever. That's why it's also called "in free fall".

To borrow a line from THHGTTG, the ISS is throwing itself at the ground, and missing.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Stormrider
Deadly
Deadly
Posts: 241
Joined: Sat Jan 25, 2014 2:35 am
Location: At work

Re: NPC use of unusual weaponry

Post by Stormrider »

Diziet Sma wrote:
Everything in space is falling
Yet, oddly enough, the universe is expanding.
Good to see you on the board again Dizzie. :D
Image
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2687
Joined: Thu Jun 20, 2013 10:22 pm
Location: On the moon Thought, orbiting the planet Ignorance.

Re: NPC use of unusual weaponry

Post by Redspear »

Stormrider wrote:
Good to see you on the board again Dizzie. :D
Seconded. Welcome back :D
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: NPC use of unusual weaponry

Post by Diziet Sma »

Thanks guys.. good to be back.
Stormrider wrote:
Diziet Sma wrote:
Everything in space is falling
Yet, oddly enough, the universe is expanding.
Well, that's what happens when your tangential speed exceeds the ability of the local gravity field to keep a grip on you.. you step out/up into the realm of the next bigger gravitational field.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Cmdr. Aiden Henessy
Competent
Competent
Posts: 36
Joined: Wed Aug 24, 2016 10:30 pm

Re: NPC use of unusual weaponry

Post by Cmdr. Aiden Henessy »

Thus we see the progression of a weapons-related post, to a scientific-post. ;P


I for one would like to see dumb-fire weapons, even if NPC's couldn't use them. It's like when I inject towards a pirate, dropping cargo bins, then pulling up. Ineffective, but funny. Now if you did that, but with explosives attached.... everything is better with explosives.
I'm Ravished by the Sheer Implausibility of that Last Statement

It should be a crime for Anacondas to fly without escort. That much temptation is just too much to resist.
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: NPC use of unusual weaponry

Post by Norby »

Cmdr. Aiden Henessy wrote:
inject towards a pirate, dropping cargo bins, then pulling up.
Try [wiki]Q-Bomb[/wiki]. [wiki]Railgun[/wiki] is another dumb-type weapon.
Post Reply