i have one last request when i tryed to put that part of code into a wepon from a mod it coused errors so if you dont mind could you help me out
ID = Changerboy.laser_mini_gun_shot
Range = 450
IdealRange = [60, 150]
IdealRadius = [5, 50]
Speed = 130
Components
{
Physics
{
Type = CirclePhysics
Radius = 0.01
Density = 0.1
}
Death
{
Type = DeathByLifetime
}
Sprite
{
Type = AnimatedSprite
Animation
{
AtlasSprite
{
Texture
{
File = "laser.png"
SampleMode = Linear
MipLevels = max
}
Size = [1.75, 1.75]
}
FrameCount = 8
FrameSize = [128, 128]
FramesPerRow = 2
FramesPerSecond = 60
}
}
MediaEffects
{
Type = MediaEffects
InheritVelocityFrom = Physics
MediaEffects
[
&<../../../commen_effects/particles/laser_glow_green.txt>
]
}
Hit
{
Type = PenetratingHit
PhysicsComponent = Physics
PenetratesShields = false
Penetration = 25000
PenetrationSpeed = 150
HitShield
{
HitEffects
[
{
Type = Damage
Damage = 150
Filter
{
Ships = false
Shields = true
Bullets = false
}
}
{
Type = Impulse
Impulse = 2.5
}
]
MediaEffects = &../HitOperational/MediaEffects
}
HitOperational
{
HitEffects
[
{
Type = Damage
Damage = 150
TreatShieldAsPart = true
Filter
{
Ships = true
Shields = false
Bullets = false
}
}
{
Type = Impulse
Impulse = 2.5
}
]
MediaEffects
[
&<../../../commen_effects/particles/laser_hit_green.txt>
&<../../../commen_effects/particles/laser_flash_green.txt>
&<../../../commen_effects/particles/laser_sparks_green.txt>
: /BASE_SOUNDS/AudioExterior
{
Sound = "hit.wav"
Volume = .4
SpeedVariation = .4
}
: /BASE_SHAKE
{
ShakeAmount = .03
Duration = .3
}
]
}
HitStructural
{
HitEffects
[
{
Type = Damage
Damage = 150
TreatShieldAsPart = true
Filter
{
Ships = true
Shields = false
Bullets = false
}
}
{
Type = Impulse
Impulse = 2
}
]
MediaEffects
[
&<../../../commen_effects/particles/laser_hit_struct_green.txt>
: /BASE_SOUNDS/AudioExterior
{
Sound = "hit.wav"
Volume = .3
SpeedVariation = .4
}
]
}
PenetratingOperational
{
HitEffects
[
{
Type = Damage
Damage = 75
TreatShieldAsPart = true
Filter
{
Ships = true
Shields = false
Bullets = false
}
}
]
MediaEffects
[
]
}
PenetratingStructural = &PenetratingOperational
FinishedPenetratingOperational = &PenetratingOperational
FinishedPenetratingStructural = &PenetratingOperational
}
}
thats the shot for the wepon could you please add the fire thing into it please im not to good at this stuff just small things