Page 2 of 2

Posted: Wed Dec 02, 2009 5:32 pm
by JensAyton
Kaks wrote:
plus, when the subentity is destroyed, the equipment is destroyed too, etc, etc..
This aspect should already be scriptable. Last time it was discussed there was some stumbling block, but I think it’s been addressed.

Posted: Wed Dec 02, 2009 5:36 pm
by DaddyHoggy
Ahruman wrote:
Kaks wrote:
plus, when the subentity is destroyed, the equipment is destroyed too, etc, etc..
This aspect should already be scriptable. Last time it was discussed there was some stumbling block, but I think it’s been addressed.
Surely you know? The great Ahruman always knows - it is one of the foundation stones of my existence... :wink:

Posted: Wed Dec 02, 2009 5:57 pm
by Chrisfs
Thanks Kaks :)

I'll try it and see how it works out.

Posted: Wed Dec 02, 2009 6:02 pm
by Kaks
I think Ahruman's just being nice! :P
Kaks wrote:
plus, when the subentity is destroyed, the equipment is destroyed too, etc, etc..
True, that aspect is very scriptable already.
However, if we implement hard_point, we'll do that automagically, without the need for a single line of script.

Sendracks, Chrisfs, glad to be of help! :)

Posted: Wed Dec 02, 2009 6:22 pm
by CheeseRedux
Kaks wrote:
Yep, if you are on a planet with the appropriate tech level, you can buy a plasma cannon to replace any of the lasers.
The problem with the Twin Plasma Cannon (at least last time I tested one) is that it lacks the oomph to compensate for the short range and the sub-light speed of the plasma blobs.
With a bit more power or better firing rate or more time before overheating (or any combination of the three), the TPC could become a viable option as a front mounted weapon.
A possible strategy would then be to use your aft (& side) lasers for sniping, and then use your front TPC for close range dogfights.

For this to be an attractive option for Commanders out there, the TPC would need to be able to take down targets faster than a Military Laser, provided that every shot hits, of course.

Posted: Wed Dec 02, 2009 6:32 pm
by JensAyton
CheeseRedux wrote:
The problem with the Twin Plasma Cannon (at least last time I tested one) is that it lacks the oomph to compensate for the short range and the sub-light speed of the plasma blobs.
…and a leading indicator in the Scanner Targeting Enhancement.

Posted: Wed Dec 02, 2009 8:22 pm
by Sendraks
CheeseRedux wrote:
The problem with the Twin Plasma Cannon (at least last time I tested one) is that it lacks the oomph to compensate for the short range and the sub-light speed of the plasma blobs.
With a bit more power or better firing rate or more time before overheating (or any combination of the three), the TPC could become a viable option as a front mounted weapon.
A possible strategy would then be to use your aft (& side) lasers for sniping, and then use your front TPC for close range dogfights.

For this to be an attractive option for Commanders out there, the TPC would need to be able to take down targets faster than a Military Laser, provided that every shot hits, of course.
And I presume there is no way to achieve this without an ill advised foray into the belly of the beast that is the main Oolite code.

Posted: Wed Dec 02, 2009 8:38 pm
by Kaks
Frame seemed to be able to tweak the plasma cannons somewhat, without touching the Oolite code, but I might be wrong.

Posted: Thu Dec 03, 2009 1:34 pm
by Frame
Kaks wrote:
Frame seemed to be able to tweak the plasma cannons somewhat, without touching the Oolite code, but I might be wrong.
Custom Spawned high yield dumb fire missiles that acquire lead on launch, then never again, until they hit their target or they exceed their range.

Range is customised via javascript, while effective range is determined in the AI..
when hostile target

The script runs down a subjectivity array/list, when it encounters a specific role it checks the targets dot product in regard to up/down/right vectors. and finds out where exactly the target is, for example a right side turret cannot fire on a target that is on the left side..

Turrets are Shipdata entries like this..

Code: Select all

"Frame_DeFenseGrid_NonFrontNonBottomNonLeft" =
	{	
		ai_type = "dumbwreckAI.plist";
		max_flight_pitch = 20;
		max_flight_roll = 20;
		max_flight_speed = 41;
		model = "oolite-ball-turret.dat";
		name = "Turret Subentity";
		max_cargo = 0;
		likely_cargo = 0;
		roles = "FrameDefenseGrid";
		smooth = yes;
		scanClass = "CLASS_SHIP";
		scanner_range  = 4;
	};
as the name indicates it simply determines where the target must not be in order for the turret to launch its Pulses.

As when to put the object the right place i simply go about the same rules.

The javascript uses the sub entities max_flight_speed like bitwise operations.

Code: Select all

/1 = vector up //means fire if only at Vector Up
	//2 = vector down //means fire if only at Vector Down.. carefull a craft is allways at either forward or at the rear
	//4 = vector Right
	//8 = vector left
	//16 = vector forward
	//32 = vector aft


Give it a high enough thrust the wreck model for example will destroy vipers and the likes with 1 or two hits..

And it is deadly accurate in targeting attacking fighters Atm.. :-), while fleeing ones have much better chance at surviving.

Ofcourse if your ship is large, it is an easier target...

Cheers Frame

Re: Additional Laser Weapon OXP?

Posted: Sun Apr 10, 2011 3:48 am
by Commander Wilmot
Ahruman wrote:
CheeseRedux wrote:
The problem with the Twin Plasma Cannon (at least last time I tested one) is that it lacks the oomph to compensate for the short range and the sub-light speed of the plasma blobs.
…and a leading indicator in the Scanner Targeting Enhancement.
The plasma cannon is too slow in my opinion. If you spread the bolt up to the speed of a bolt from a turret then it might work.