PM wrote:Is this the same weapon you are trying to make in your other "...Firing 4 projectiles, into one target " topic, including turret placement?
You want one of us to post custom <OnFireWeapon> code to do what you ask?
Yep.
PM wrote:
The weapon does not fire when no targets are within "certain range"? What is the "certain range"? Range 30 is the maximum targeting range for standard omnidirectional weapons.
The certain range is the omnidirectional range, of 30. for the swivelling option below, but if it is omnidirectional, then 20 because I do not want an over powered weapon.
PM wrote:
What are eligible targets? Enemies only (red only)? Anyone who is shooting at you (red and angry green)? Ships only? Ships and stations? Missiles too?
Do you want to check for friendly fire, and not target an enemy if a friendly is in the line of fire?
The certain targets are enemies and angry greens. and it will always target those.
PM wrote:It should not take much for me to adapt Phaser/DDT code to do what you want.
Well, I will try not to copy your DDT stuff since I do not like to be similar. But for this weapon, I want the weapon to simply have four swivelling turrets that every turret can turn only 135º limit with 45º degrees of it overlapping 2 of the 4 turrets. The purpose of this weapon is to simply make every ship a battleship.
Here is the weapon code that I want to become like that above:
Code: Select all
<ItemType UNID="&itexclusion;"
name= "weapon(s) named "exclusion""
attributes= "commonwealth, energyWeapon, majorItem, kabuto"
level= "1"
frequency= "common"
value= "1"
mass= "1"
description= "This weapon fires 4 independently omnidirectional ion beams that fire in a expanding formation."
>
<Image imageID="&rsItems1;" imageX="96" imageY="0" imageWidth="96" imageHeight="96"/>
<Weapon
type= "beam"
omnidirectional="true"
damage= "ion:2d2+1"
fireRate= "5"
lifetime= "20"
powerUse= "10"
effect= "&efIonBeamDefault;"
hitEffect= "&efDriHitDefault;"
sound= "&snLaserCannon;"
>
; Fires 4 times!
<Configuration aimTolerance="5">
<Shot/> <Shot/> <Shot/> <Shot/>
</Configuration>
</Weapon>