Page 2 of 2

Posted: Fri Sep 15, 2006 6:46 pm
by somen00b
No idea what is wrong I've tried many different things , here are my files

weapon
[WeaponClass]
ClassLabel = "cannon"

[Properties]
GeometryName = ""
HighResGeometry = ""

//MuzzleFlash = "med_muzzle_flash"
FlashColor = "80 80 255 255"
FlashLength = 0.025
FlashLightColor = "220 220 255 175"
Discharge = "med_smoke_effect"

//RoundsPerClip = "32"
RoundsPerClip = "0"
ReloadTime = "1.5"
HeatRecoverRate = "1.0"
HeatThreshold = "0.0"

TriggerSingle = "0"
ShotDelay = "5.0"
HeatPerShot = "0.0"
//MaxPressedTime = "2.25"

DisplayRefire = "0"

InstantPlayFireAnim = 1
OffhandWeapon = 1

OrdnanceName = "all_weap_inf_lightningcaller_ord"

LockOnRange = "8.0"
LockTime = "0.0"
AutoAimSize = "2.0"

MinRange = "0"
OptimalRange = "4"
MaxRange = "10"

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

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

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

//ChargeRateLight = "1.0"
//MaxChargeStrengthLight = "1.0"
//ChargeDelayLight = "0.0"
//ChargeRateHeavy = "1.0"
//MaxChargeStrengthHeavy = "0.5"
//ChargeDelayHeavy = "2.2"

//RecoilLengthHeavy = "0.25"
//RecoilStrengthHeavy = "2"
//RecoilDecayHeavy = "0.0"

FireSound = ""
FireEmptySound = ""
ChargeSound = ""
ChargeSoundPitch = "0.05"
OverheatSound = ""
OverheatSoundPitch = "0.5"
OverheatStopSound = ""
JumpSound = ""
LandSound = ""
RollSound = ""
ProneSound = ""
SquatSound = ""
StandSound = ""
beacon
[OrdnanceClass]
ClassLabel = "beacon"

[Properties]
//GeometryName = "com_weap_inf_grenadethermal_ord"
//ExplosionExpire = "all_weap_inf_grenadethermal_exp"
//OrdnanceEffect = "thermal_detonator"
//ImpactEffect = "medium_explosion"
//TrailEffect = "com_sfx_weap_grenade_thermal"

OrdnanceName = "all_weap_inf_lightningstrike_ord"
LifeSpan = "3.0"
Velocity = "1150.0"
Gravity = "0.0"
Rebound = "0.0"
Friction = "1.0"

MaxDamage = "0.0"

SalvoCount = "3"
SalvoDelay = "0.5"

ScatterDistance = "0.0"

OrdnanceName = "all_weap_inf_lightningstrike_ord"

OrdnanceSound = "com_weap_inf_ord_hum_lg"
CollisionSound = "imp_weap_ord_exp"
(this is copied from a BF1 mod I made then edited to suit my purposes)

lightning
[OrdnanceClass]

ClassLabel = "emitterordnance"

[Properties]

ImpactEffectWater = "com_sfx_watersplash_ord"

ConeLength = "2000"
ConeAngle = "0.3"
FirstRadius = "0.0"
MaxTargets = "4" // Max number of targets to hit. Chaining is off so the damage will be split between the number of targets
NoChaining = "1" // No chaining - all bolts coming from the attacker

//OrdnanceSound = "com_weap_launcher_energy_dumbfire"

Damage = "10000" // This is the min damage. Even if the initial damage is split between the number of targets, it will never go below this number for each target
MaxDamage = "30000" // This is the max damage
JumpDeduction = "0" // No jump deduction. This is for chaining only
DamageThreshold = "0" // Always do damage (no threshold)
MaxJumpDistance = "0" // No max jump distance because the chaining is off

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

Push = "0.0"
LightningEffect = "all_sfx_lightningstrike"
LightningEffectScale = "0.15"
NoTargetLightningEffectCount = "1" // The number of ligthning effects to display when the ordinance has no targets to hit
NoTargetLightningEffectRandomSpread = "0.0" // The random rotation spread the ligthning effects does when the ordinance has no targets to hit
Any ideas? Ive tried to get a standard orbital strike working with no luck too
edit: fixed and improved :D

Posted: Fri Sep 15, 2006 6:54 pm
by Hebes24
I've never heard of ClassLabel = "cannon" before. Is it a grenade launcher?

Posted: Fri Sep 15, 2006 8:49 pm
by somen00b
It is close to a force power, I made a magic fire shooter (ala flamethrower but with blue fire) with the force power animations, then copied the weapon odf and made this. Im working on more spells. If some one wants me to I will upload it to file front. If I can't do that I will find someone to host it for me. Disclamer: "it is unbalenced"

Posted: Sat Sep 16, 2006 9:24 pm
by somen00b
Solved! :D the file names need to be setup like this, that was tripping me up.

beacon: "blahblahblahblah_ord" salvo: 'blahblahblahblah_salvo_ord
hope this helps!

edit: or not :cry:
I thought it worked when I tried a beacon called rep_weap_inf_orbital_attack_ord and an ord called rep_weap_inf_orbital_attack_salvo_ord, that worked

Posted: Sat Sep 16, 2006 9:35 pm
by crazytieguy
Hebes24 wrote:I've never heard of ClassLabel = "cannon" before. Is it a grenade launcher?
Cannon means it is a weapon, according to the mod tools documentation.