Laser System With AutoFire = "1"

Started by MileHighGuy, February 15, 2010, 11:11:55 AM

Previous topic - Next topic
February 15, 2010, 11:11:55 AM Last Edit: February 15, 2010, 11:16:21 AM by MileHighGuy
I'm trying to make a laser security system sort of like this:



With The AutoFire = "1" on a deployable remote, but it is not working. It will deploy, but not fire the beam weapon. Any Ideas on whats wrong?

Here are the odfs:

The Dispenser ODF
Quote[WeaponClass]
ClassLabel          = "dispenser"

[Properties]
IconTexture         = "HUD_com_probedroid_health_icon"

MuzzleFlash         = ""
Discharge         = ""

GeometryName          = "com_weap_inf_grenadethermal_ord"

RoundsPerClip          = "1"
ReloadTime          = "0.0"
LockOnRange         = "80.0"
LockTime          = "0.4"

ZoomMin            = "0.0"
ZoomMax            = "0.0"
ZoomRate         = "0.0"

AnimationBank         = "grenade"

SwitchImmediately       = "0"


TrackingSound             = ""

OrdnanceName        = "hmn_weap_inf_laser_system_ord"

ShotDelay          = "0.5"
MinSpread         = "0.0"
MaxSpread         = "0.0"
AutoAimSize         = "1.0"

SalvoCount         = "1"
SalvoDelay         = "0.0"
InitialSalvoDelay      = "0.3"

FireSound           = "com_weap_inf_remotedroid_fire"
ReloadSound         = "all_weap_inf_equip_med"
ChangeModeSound       = "all_weap_inf_equip_med"
WeaponChangeSound   = "all_weap_inf_equip_med"
The Laser SystemODF
Quote[GameObjectClass]
ClassLabel       = "droid"
GeometryName        "com_weap_probedroid.msh"

[Properties]
ImpactEffectWater    = "watersplash_ord"

FLYERSECTION       = "BODY"
VehicleType       = "light"

PilotType      = "remote"

MapTexture       = "troop_icon"
HealthTexture      = "HUD_com_probedroid_health_icon"
MapScale       = 1.0

GeometryName       = "com_weap_probedroid"
CollisionScale       = 10.0

MaxHealth       = 300.0

SetAltitude      = 1.0
GravityScale      = 1.0//2
LiftSpring      = 5.0001  //10Lighter the veh the high the number
LiftDamp      = 3.0

ScanningRange      = 30.0
TransmitRange      = 300.0

Acceleration       = 0.0
Deceleration      = 0.0
Traction      = 1000.0
ForwardSpeed      = 0.0
ReverseSpeed      = 0.0
StrafeSpeed      = 0.0

SpinRate      = 0.0
TurnRate      = 0.0
TurnFilter      = 0.0
PitchRate      = 0.0
PitchFilter      = 0.0
BankAngle      = 0.0
BankFilter      = 0

MoveTension      = "0.0"//how much swim the craft has from the center of the screen


LevelSpring      = 2.5
LevelDamp      = 10000.0

EyePointOffset       = "0.0 0.5 0.0"
TrackOffset       = "0.0 -0.25 1.5"
TiltValue      = "5.0"

PitchLimits      = "-50.0 50.0"
YawLimits      = "-0.0 0.0"
AimerPitchLimits   = "-90 90"
AimerYawLimits      = "-90 90"

WEAPONSECTION   = 1
WeaponName      = "hmn_weap_inf_laser_beam"
WeaponAmmo      = 0
WeaponChannel      = 0
AutoFire = "1"

AmbientSound   = "remotedroid_engine_lp"
Ambient2Sound  = "remotedroid_radio"
HurtSound      = ""
DeathSound     = ""

AISizeType      = "SMALL"

\\\\\\\\\\\\ Collision \\\\\\\\\\\\\\

BuildingCollision      = "p_buildingsphere"
VehicleCollision      = "p_buildingsphere"
OrdnanceCollision      = "p_sphere"
SoldierCollision      = "p_sphere"

...continued (the above post ran out of space)

Laser Beam Weapon ODF
Quote[WeaponClass]

ClassLabel       = "cannon"

[Properties]

Label         = "Dish Laser"
IconTexture      = "HUD_all_lascannon_icon"
ReticuleTexture      = "reticule_rifle"

OrdnanceName       = "hmn_weap_inf_laser_beam_ord"
MuzzleFlash      = ""
Discharge      = ""


HeatRecoverRate      = "0.0"
HeatThreshold      = "0.0"
HeatPerShot      = "0.0"

RoundsPerClip       = "0"
ShotDelay       = "1.0"
ReloadTime       = "0.0"

LockOnRange      = "0.0"

//AutoAimSize      = "0.1"

TriggerSingle      = "0"

FireSound            = "imp_weap_hover_fightertank_beam_fire"
FireLoopSound      = "imp_weap_hover_fightertank_beam_loop"
//ReloadSound        = "laserbeamreload"

OverheatSound            = "com_weap_energy_depleted"
OverheatSoundPitch       = "0.5"
OverheatStopSound         = "com_weap_energy_refilled"


ModeTexture      = "HUD_weap_semiauto"

ZoomFirstPerson      = 1
ZoomMin         = "1.5"
ZoomMax         = "3.0"
ZoomRate      = "0.0"

MinRange      = "0"
OptimalRange      = "50"
MaxRange      = "150"


RecoilLengthLight            = "0.3"
RecoilStrengthLight        = "1"

RecoilDelayHeavy           = ".1"
RecoilLengthHeavy            = "0.1"
RecoilStrengthHeavy        = ".4"

Laser Beam ODF
Quote[OrdnanceClass]

ClassLabel          = "beam"

[Properties]
ImpactEffectWater    = "watersplash_md"

LaserTexture      = "bluelaser_D"
ImpactEffect      = "med_cannon_impacts"
LaserWidth         = "0.4"
//LaserGlowColor      = "254 6 18 100"
LaserGlowColor         = "92 136 250 100"
Range             = "500.0"
Gravity            = "1.0"
Rebound            = "0.0"

LifeSpan         = "0.4"

MaxDamage          = "1.0"
VehicleScale         = "1.0"
ShieldScale         = "1.0"
PersonScale         = "1.0"
AnimalScale         = "1.0"
DroidScale         = "1.0"
BuildingScale         = "1.0"

//ImpactEffect          = "spiderdroid_ord_exp"

OrdnanceSound      = "" // No Ordnance Sound on Beams