Lock On Weapon (For Future Reference)

Started by Snake, May 02, 2014, 04:49:16 PM

Previous topic - Next topic
May 02, 2014, 04:49:16 PM Last Edit: May 19, 2014, 06:57:20 PM by Snake
Well, I have finally figured it out..

Here are the things required for lock on ability:

ClassLabel       = "launcher"

LockOnRange      = "85.0"
LockOnAngle      = "6.0"
LockOffAngle      = "10.0"
LockTime       = "0.2"

TargetEnemy      = "1"
TargetNeutral      = "0"
TargetFriendly      = "0"

TargetPerson      = "1"
TargetAnimal      = "1"
TargetDroid      = "1"
TargetVehicle      = "0"
TargetBuilding      = "0"

Since it is a launcher, it must also have an ord and exp file. Here are my working spyrifle odf's:

[WeaponClass]

ClassLabel = "launcher"

[Properties]
IconTexture = "IMP_blasterrifle_icon"


MuzzleFlash = "small_muzzle_flash"
FlashColor = "255 80 80 255"
FlashLength = 0.025
FlashLightColor = "255 192 192 175"
FlashLightRadius = "2.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"
GeometryName = "all_weap_inf_seeker"
HighResGeometry         = "all_1st_weap_inf_seeker"

RoundsPerClip = "30"
ReloadTime = "1.5"

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

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

AnimationBank = "rifle"

FirePointName = "hp_fire_ALL_INF_BlasterRifle"

WEAPONSECTION = 1

ModeTexture = "HUD_weap_scope"
ReticuleTexture = "reticule_rifle"
OrdnanceName = "imp_weap_inf_spyrifle_ord1"

ShotDelay = "0.15"
TriggerSingle = "0"
//HeatPerShot = "0.005"

PitchSpread = "1.0"
YawSpread = "1.0"


SpreadPerShot = "1.2"//1.2
SpreadRecoverRate = "4.8"//0.08
SpreadThreshold = "1.6"//0.03
SpreadLimit = "6.0"

StandStillSpread = "0.0"//0.4
StandMoveSpread = "0.0"//0.9
CrouchStillSpread = "0.0"//0.1
CrouchMoveSpread = "0.0"//0.6
ProneStillSpread = "0.0"
ProneMoveSpread = "0.0"

MinRange = "0"
OptimalRange = "50"
MaxRange = "100"

LockOnRange = "85.0"
LockOnAngle = "6.0"
LockOffAngle = "10.0"
LockTime = "0.2"

SalvoCount = "1"
ShotsPerSalvo = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.0"
SalvoTime = "0.0"

TargetEnemy = "1"
TargetNeutral = "0"
TargetFriendly = "0"

TargetPerson = "1"
TargetAnimal = "1"
TargetDroid = "1"
TargetVehicle = "0"
TargetBuilding = "0"

//RecoilLengthLight     = "0.2"
//RecoilLengthHeavy     = "0.1"
//RecoilStrengthLight   = "1"
//RecoilStrengthHeavy   = "1"

FireSound = "all_weap_inf_spyrifle_fire"
//FireEmptySound = "com_weap_inf_weapon_empty"
FireLoopSound = ""
ReloadSound = "all_weap_inf_reload_med"
ChargeSound = ""
//ChangeModeSound = "com_weap_inf_blaster_rifle_modechange"
WeaponChangeSound = "all_weap_inf_equip_med"
ClankLeftWalkSound  = ""
ClankRightWalkSound = ""
ClankLeftRunSound   = ""
ClankRightRunSound  = ""
JumpSound           = "all_weap_inf_spyrifle_mvt_jump"
LandSound           = "all_weap_inf_spyrifle_mvt_land"
RollSound           = "all_weap_inf_spyrifle_mvt_roll"
ProneSound          = "all_weap_inf_spyrifle_mvt_squat"
SquatSound          = "all_weap_inf_spyrifle_mvt_lie"
StandSound          = "all_weap_inf_spyrifle_mvt_getup"






[OrdnanceClass]
ClassLabel = "missile"

[Properties]
ImpactEffectWater = "watersplash_md"

LightColor              = "254 254 15 150"
LightRadius             = "4.0"

ExplosionName = "imp_weap_inf_spyrifle_exp"

GeometryName            = ""
TrailEffect = "com_sfx_weap_spyrifle_ord"

OrdnanceSound ="com_weap_inf_ord_hum_sm"

LifeSpan = "8.0"
TurnRate = "3.0"
Velocity = "45.0"
Gravity = "0.0"
Rebound = "0.0"

Damage = "500"

VehicleScale = "1.23"
PersonScale = "1.0"
DroidScale = "1.0"
BuildingScale = "0.25"
AnimalScale = "1.0"


[ExplosionClass]
ClassLabel = "explosion"

[Properties]
WaterEffect = "watersplash_lg"

Damage = "0.0"

DamageRadiusInner = "0.75"
DamageRadiusOuter = "2.5"

Push   = "1.0"
PushRadiusInner   = "0.75"
PushRadiusOuter   = "0.75"

Shake   = "0.01"
ShakeLength   = "0.60"
ShakeRadiusInner  = "1.0"
ShakeRadiusOuter  = "2.0"

Effect = "com_sfx_weap_spyrifle_exp"
LightColor = "254 254 15 150"
LightRadius = "7.0"
LightDuration = "1.0"

VehicleScale = "0.0"
PersonScale = "1.0"
DroidScale = "1.0"
BuildingScale = "0.25"
AnimalScale = "1.0"

SoundProperty = "imp_weap_ord_exp"


Have fun!
=AaTc= Forever

SALLY....

-Retired Modder


Thanks for noticing! That was the first ord but I actually used a different one and got them mixed up somehow. Fixed.
=AaTc= Forever

SALLY....

-Retired Modder