Subentities for player ship?
Moderators: winston, another_commander
-
- ---- E L I T E ----
- Posts: 452
- Joined: Mon Mar 13, 2006 5:46 pm
- Location: St Petersburg, Russia
- Contact:
Subentities for player ship?
Can a player ship have subentities with AI?
- LittleBear
- ---- E L I T E ----
- Posts: 2882
- Joined: Tue Apr 04, 2006 7:02 pm
- Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.
Hmm an auto anti-pirate turret!
A sub-enentry turret but with a scanforship with role:pirate, set state to ATTACK ship AI. Only downside being it always fires on pirates even if they are not attacking you, forcing you into battle when you really wanted to let your shields build up!
Player subentries do have to have an AI (albiet they are given nullAI), don't know if anybody has tried giving them a different AI, but don't see why it shouldn't work.
I'll do a quick copy and paste of a Renegade Ship to a player-version and give the turrets pirateAI and see what happens...
A sub-enentry turret but with a scanforship with role:pirate, set state to ATTACK ship AI. Only downside being it always fires on pirates even if they are not attacking you, forcing you into battle when you really wanted to let your shields build up!
Player subentries do have to have an AI (albiet they are given nullAI), don't know if anybody has tried giving them a different AI, but don't see why it shouldn't work.
I'll do a quick copy and paste of a Renegade Ship to a player-version and give the turrets pirateAI and see what happens...
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
- LittleBear
- ---- E L I T E ----
- Posts: 2882
- Joined: Tue Apr 04, 2006 7:02 pm
- Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.
Err it will do when I do a search and replace with six modles, to change .png to .PNG! But I haven't uploaded the fixed version yet (darn real world of criminal trials in way), will try to get round to putting up a fixed version next week. It should be an easy home fix, just a pain opening up the models dats and doing s&r, so haven't got round to it yet.
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
To be fair to LB some of my models were used in this .oxp & I'm pretty sure the 'case-bugs' were caused by me.
Benulobiweed.inc
By Appointment to
--- : GalCoop : ---
Your nearest Benulobiweed.inc dealer:
http://www.box.net/public/b2tic3tjsk#main
Charlie
By Appointment to
--- : GalCoop : ---
Your nearest Benulobiweed.inc dealer:
http://www.box.net/public/b2tic3tjsk#main
Charlie
- Killer Wolf
- ---- E L I T E ----
- Posts: 2280
- Joined: Tue Jan 02, 2007 12:38 pm
Turrets
"Only downside being it always fires on pirates even if they are not attacking you, forcing you into battle when you really wanted to let your shields build up! "
ah, but couldn't you have a keyboard command to activate the turret? kinda "If keystroke = "~" then set to attackshipAI ELSE set to nullAI" ?
ah, but couldn't you have a keyboard command to activate the turret? kinda "If keystroke = "~" then set to attackshipAI ELSE set to nullAI" ?
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
I think having the turrets auto attack pirates is a good ying/yang balance thing for having turrets that automatically attack pirates...
Sometimes its a good thing - sometimes its not!
Sometimes its a good thing - sometimes its not!
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
- Killer Wolf
- ---- E L I T E ----
- Posts: 2280
- Joined: Tue Jan 02, 2007 12:38 pm
do sub-ents like turrents drain from the players energy too? that might be an edded minus, if fitted.
i quite fancy building a battleship now, might be cool to script a mission w/ a Thargoid battle ship where you have to blow all the turrets off it so the military bombers can go in and torpedo it safely.
i quite fancy building a battleship now, might be cool to script a mission w/ a Thargoid battle ship where you have to blow all the turrets off it so the military bombers can go in and torpedo it safely.
- Cmdr Wyvern
- ---- E L I T E ----
- Posts: 1649
- Joined: Tue Apr 11, 2006 1:47 am
- Location: Somewhere in the great starry void
I think if we could have autoturrets on player ships that worked, then they should fire on all hostiles, not just pirates. After all, turrets that shot at pirates but ignored thargoids (or persuing cops and bounty hunters if you got into trouble) would be rather useless.
A scanforhostiles in the AI might work.
A scanforhostiles in the AI might work.
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
- LittleBear
- ---- E L I T E ----
- Posts: 2882
- Joined: Tue Apr 04, 2006 7:02 pm
- Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.
Made a start on this:-
Now the hard part is gonna be getting those turrets fireing!
If I can get this going, then the Auto-Turrets are gonna have some downsides. They'll chew up some cargo space and there gonna have a "bug" in them. Allthough most of the time, they'll auto-fire on a ship attacking you, somtimes they'll go wrong and open up on a police ship or station!
Now the hard part is gonna be getting those turrets fireing!
If I can get this going, then the Auto-Turrets are gonna have some downsides. They'll chew up some cargo space and there gonna have a "bug" in them. Allthough most of the time, they'll auto-fire on a ship attacking you, somtimes they'll go wrong and open up on a police ship or station!
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
- LittleBear
- ---- E L I T E ----
- Posts: 2882
- Joined: Tue Apr 04, 2006 7:02 pm
- Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.
Hmm.
Well those bolt on turrets attached to my python are swivelling (when I look at them in external views) as if they are looking for something to shoot at, but despite the 20 fat trade ships I've added nearby, they are not fireing. They have the normal entry for a turret (which works as a sub-entry on an NPC ship), but have pirateAI!
This is the entry for the turret:-
EDIT : I took off the setup_actions and gave them a forward military laser and changed the AI to thargoid AI. They seem to be trying to attack by turning towards the non-Thargoid in front of me, but no joy getting them to actually fire!
Any ideas?[/img]
Well those bolt on turrets attached to my python are swivelling (when I look at them in external views) as if they are looking for something to shoot at, but despite the 20 fat trade ships I've added nearby, they are not fireing. They have the normal entry for a turret (which works as a sub-entry on an NPC ship), but have pirateAI!
This is the entry for the turret:-
Code: Select all
<key>redturret</key>
<dict>
<key>energy_recharge_rate</key>
<real>1.5</real>
<key>max_energy</key>
<real>200</real>
<key>ai_type</key>
<string>pirateAI.plist</string>
<key>model</key>
<string>bigship_turret.dat</string>
<key>name</key>
<string>Renegade Turret</string>
<key>roles</key>
<string>redturret</string>
<key>thrust</key>
<real>1</real>
<key>weapon_energy</key>
<real>20</real>
<key>laser_color</key>
<string>redColor</string>
<key>setup_actions</key>
<array>
<string>initialiseTurret</string>
</array>
</dict>
Any ideas?[/img]
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
- LittleBear
- ---- E L I T E ----
- Posts: 2882
- Joined: Tue Apr 04, 2006 7:02 pm
- Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.
Bah!
Gave 'em my minesweeperAI (which I know works on an NPC sub-entry to knock out q-mines) and they failed to follow it.
I guess whist a sub-entry attached to a NPC can have an AI, anything attached to the player-entry cannot.
Gave 'em my minesweeperAI (which I know works on an NPC sub-entry to knock out q-mines) and they failed to follow it.
I guess whist a sub-entry attached to a NPC can have an AI, anything attached to the player-entry cannot.
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
Hmmm, somewhat related issues have got me stuck with a couple of .oxp's
It does seem that some things that work on a ship that ought to work for a sub-entity don't, and the same for NPC vs Player ships.
I'm also finding this can be true for *AI.plist vs shipdata.plist ...bah!
An idea LB??
Rather than a sub-entity as a turret how about a minimal NPC ship with the turret attached to that..?
Then try to write an AI.plist for that NPC such that it follows your ship very closely?
Maybe not poss to keep it attached, but maybe a powered 'Turret-drone' that keeps a close escort?
This and a number of related ideas were to go into an ordinance.oxp but as usual my scripting isn't up to it
( I'll push that one out too once I've finally won my battle with other .oxp's I'm struggling to complete, but I suspect it may be redundant by then )
It does seem that some things that work on a ship that ought to work for a sub-entity don't, and the same for NPC vs Player ships.
I'm also finding this can be true for *AI.plist vs shipdata.plist ...bah!
An idea LB??
Rather than a sub-entity as a turret how about a minimal NPC ship with the turret attached to that..?
Then try to write an AI.plist for that NPC such that it follows your ship very closely?
Maybe not poss to keep it attached, but maybe a powered 'Turret-drone' that keeps a close escort?
This and a number of related ideas were to go into an ordinance.oxp but as usual my scripting isn't up to it
( I'll push that one out too once I've finally won my battle with other .oxp's I'm struggling to complete, but I suspect it may be redundant by then )
Benulobiweed.inc
By Appointment to
--- : GalCoop : ---
Your nearest Benulobiweed.inc dealer:
http://www.box.net/public/b2tic3tjsk#main
Charlie
By Appointment to
--- : GalCoop : ---
Your nearest Benulobiweed.inc dealer:
http://www.box.net/public/b2tic3tjsk#main
Charlie