Accuracy List
I want my 15 rapid-fire quantum torpedo launchers Uber-Defiant now! - Get help from modders. Share your work. Discuss modifications.
posted on November 7th, 2013, 9:15 pm
Is there an easier way to list accuracy for different weapons besides listing EVERY SINGLE odf, for EVERY SINGLE SHIP, I noticed the borg have a ton of odfs just for a cube. Is there any way I can limit the number of odfs I have to list in order for the accuracy to work. This question is for my turbolasers in my Star Wars mod. Right now they're all set at hitchance = 1. which is equal to 100% accuracy. Obviously this is overbalanced. I have three main types of turbolasers used on Rebel and Imperial ships. Light, Medium and Heavy.
Light Turbolasers will have a flat hitchance of 85% accuracy against everything. (Light Turbolasers fire quickly but have little power)
I want my medium and heavy turbolasers to have a lower accuracy against smaller ships ( defiant, B'rel,Shirke Etc.) But I'd rather not have to list every odf for one ship. (Standard turbolasers with decent recharge and power) (Heavy turbolasers fire slow but have alot of firepower in them.)
It'd be nice if i could do accuracy based on Race. Like against the borg heavy turbolasers would have an accuracy of 72% against all borg ships. Against Federation/Romulan/Klingons it would be somewhere around 30-50% since they have much smaller ships.
Any suggestions or Is that all I can do?
Light Turbolasers will have a flat hitchance of 85% accuracy against everything. (Light Turbolasers fire quickly but have little power)
I want my medium and heavy turbolasers to have a lower accuracy against smaller ships ( defiant, B'rel,Shirke Etc.) But I'd rather not have to list every odf for one ship. (Standard turbolasers with decent recharge and power) (Heavy turbolasers fire slow but have alot of firepower in them.)
It'd be nice if i could do accuracy based on Race. Like against the borg heavy turbolasers would have an accuracy of 72% against all borg ships. Against Federation/Romulan/Klingons it would be somewhere around 30-50% since they have much smaller ships.
Any suggestions or Is that all I can do?
posted on November 7th, 2013, 9:24 pm
By using the #include "file.odf" command you could have multiple weapons reference an ODF that includes nothing but a hitchance table. That way you could have them reference different tables for high hit chance, low hit chance, etc. and be able to modify potentially dozens of weapons simultaneously.
posted on November 7th, 2013, 9:53 pm
So I can go #include RebW_medium.odf and just list destroyers/frigates/cruisers/battleships/civilian ships etc? or even just Federation/Borg/Romulan/Klingon?
posted on November 7th, 2013, 10:20 pm
Bascially. A weapon would look something like this:
bbpulse.odf
hit1.odf
bbpulse.odf
- Code: Select all
#include "hit1.odf"
classlabel = "cannonimp"
wpnname = "Energy Cannon"
tooltip = "Energy Cannon"
verbosetooltip = "tip-bbpulse.odf"
ordname = "bbpulseo"
shotdelay0 = 4.5
firesound = "klingon_pulse_disruptor.wav"
impulsetohitmodifier = 0
stoptohitmodifier = 0
tohitimpulsemodifier = 0
tohitstopmodifier = 0
range = 800
hit1.odf
- Code: Select all
hitChance = 0.7
"bbattle.odf" 1.0
"fbattle.odf" 1.0
"kbattle.odf" 1.0
"rbattle.odf" 1.0
"bdestroy.odf" 0.5
"fdestroy.odf" 0.5
"kdestroy.odf" 0.5
"rdestroy.odf" 0.5
posted on November 8th, 2013, 1:25 am
can i use multiple #include commands?
If I were to go by race, could I use an #include command for every race in each weapon?
To where it would look like this?
#include fedacc.odf
#include kliacc.odf
#include borgacc.odf
#include romacc.odf
#include domacc.odf
#include impacc.odf
classlabel = "cannonimp"
wpnname = "Turbo-Laser"
tooltip = "Medium Turbo-Laser"
verbosetooltip = "Medium Turbo-Lasers are often found on smaller cruisers. They fire faster than
heavy turbolasers but have less power."
ordname = "RebW_mediumo"
firesound = "sw_tlaser.wav"
HardpointShift = 1
targetLoop = 1
shotdelay0 = 3.75
hitchance = 1
validTargets = 1
"Reb_A-wing.odf" 0
"Reb_B-wing.odf" 0
"Reb_Y-wing.odf" 0
"Reb_T-wing.odf" 0
"Reb_X-wing.odf" 0
"Reb_YT-1300.odf" 0
"Reb_Z-95.odf" 0
"dom_scout.odf" 0
"fed_venture.odf" 0
"fed_avalonF.odf" 0
"kli_noqduj.odf" 0
"rom_talon.odf" 0
"fed_avalonF.odf" 0
"rom_scorpion.odf" 0
"Imp_TIEFighter.odf" 0
"Imp_TIEInterceptor.odf" 0
"Imp_TIEBomber.odf" 0
"Imp_TIEAdvanced.odf" 0
"Imp_TIEDefender.odf" 0
impulsetohitmodifier = 0
stoptohitmodifier = 0
tohitimpulsemodifier = 0
tohitstopmodifier = 0
range = 400
If I were to go by race, could I use an #include command for every race in each weapon?
To where it would look like this?
#include fedacc.odf
#include kliacc.odf
#include borgacc.odf
#include romacc.odf
#include domacc.odf
#include impacc.odf
classlabel = "cannonimp"
wpnname = "Turbo-Laser"
tooltip = "Medium Turbo-Laser"
verbosetooltip = "Medium Turbo-Lasers are often found on smaller cruisers. They fire faster than
heavy turbolasers but have less power."
ordname = "RebW_mediumo"
firesound = "sw_tlaser.wav"
HardpointShift = 1
targetLoop = 1
shotdelay0 = 3.75
hitchance = 1
validTargets = 1
"Reb_A-wing.odf" 0
"Reb_B-wing.odf" 0
"Reb_Y-wing.odf" 0
"Reb_T-wing.odf" 0
"Reb_X-wing.odf" 0
"Reb_YT-1300.odf" 0
"Reb_Z-95.odf" 0
"dom_scout.odf" 0
"fed_venture.odf" 0
"fed_avalonF.odf" 0
"kli_noqduj.odf" 0
"rom_talon.odf" 0
"fed_avalonF.odf" 0
"rom_scorpion.odf" 0
"Imp_TIEFighter.odf" 0
"Imp_TIEInterceptor.odf" 0
"Imp_TIEBomber.odf" 0
"Imp_TIEAdvanced.odf" 0
"Imp_TIEDefender.odf" 0
impulsetohitmodifier = 0
stoptohitmodifier = 0
tohitimpulsemodifier = 0
tohitstopmodifier = 0
range = 400
posted on November 8th, 2013, 5:28 am
When I go to list all the odfs in a hitchance table it's hard to differentiate between ship odfs and replacment odfs with the ship name. Like
"fed_nebula_engAr6.odf"
"fed_nebula_engAr6P.odf"
"fed_nebula_engAr6PM.odf"
"fed_nebula_engP.odf"
"fed_nebula_engPC.odf"
"fed_nebula_engPM.odf"
"fed_nebula_engPR.odf"
will it crash if I list an odf that has the ship name but it's just a replacement weapon? or is it just read as an invalid odf?
"fed_nebula_engAr6.odf"
"fed_nebula_engAr6P.odf"
"fed_nebula_engAr6PM.odf"
"fed_nebula_engP.odf"
"fed_nebula_engPC.odf"
"fed_nebula_engPM.odf"
"fed_nebula_engPR.odf"
will it crash if I list an odf that has the ship name but it's just a replacement weapon? or is it just read as an invalid odf?
posted on November 8th, 2013, 9:20 pm
I think it will just ignore it and keep working.
posted on November 9th, 2013, 9:50 pm
If it references a valid odf, it should accept it whether or not it is a ship. It will probably just skip duplicates and anything that isn't a ship.
Who is online
Users browsing this forum: No registered users and 8 guests