// $Id: n-USA-NRA-LongRange.tgt 3069 2022-05-11 17:35:37Z dmc $ // $Author: dmc $ $Revision: 3069 $ $Date: 2022-05-11 14:35:37 -0300 (Wed, 11 May 2022) $ var YARDSTOMETRES = 3 / 3.28; var INCHESTOMM = 25.4; var METRESTOFEET = 3.28; var std_nra_options = { // options used by v2.1 code: shot_format: '{1}-{2}X', // e.g. "99-7X" speed_unit_name: 'fps', // units to report speed; default = 'fps' speed_unit_mpier: METRESTOFEET, // speeds will be round()'ed }; var tgtdef_LR_universal = { distance: 1000 * YARDSTOMETRES, "distances": [ { "d": 800 * YARDSTOMETRES, "name": "800y", "unit": "y" }, { "d": 900 * YARDSTOMETRES, "name": "900y", "unit": "y" }, { "d": 1000 * YARDSTOMETRES, "name": "1000y", "unit": "y", "p": "true" }, // preferred distance ], centrecoords: { x: 0, y: 0 }, centrecoords: { x: 0, y: 0 }, targetboard: { width: 72 * INCHESTOMM, height: 72 * INCHESTOMM, colour: "white", bordercolour: "black", borderwidth: 10 }, targetboards: [ { h: 1700, w: 1700, name: "6x6" }, { h: 1700, w: 2400, name: "6x8", p: true }, { h: 1700, w: 3000, name: "6x10" }, ], options: std_nra_options, // see at top scoringzones: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name: "X", score: [10, 1], colour: "transparent", bordercolour: "white", borderwidth: 2.3, type: { name: "ring", dia: 10 * INCHESTOMM } }, { name: "10", score: 10, colour: "transparent", bordercolour: "white", type: { name: "ring", dia: 20 * INCHESTOMM } }, { name: "9", score: 9, colour: "transparent", bordercolour: "white", type: { name: "ring", dia: 30 * INCHESTOMM } }, { name: "8", score: 8, colour: "black", /* no border - aiming mark */ type: { name: "ring", dia: 44 * INCHESTOMM } }, { name: "7", score: 7, colour: "transparent", bordercolour: "black", borderwidth: 1, type: { name: "ring", dia: 60 * INCHESTOMM } }, { name: "6", score: 6, colour: "transparent", bordercolour: "black", borderwidth: 1, type: { name: "rect", width: 72 * INCHESTOMM, height: 72 * INCHESTOMM } }, ], scoringzones_f: [ // draw this in reverse order // search for a hit in forward order // default values: {x:0, y:0} { name: "X", score: [10, 1], colour: "transparent", bordercolour: "white", borderwidth: 2.3, type: { name: "ring", dia: 5 * INCHESTOMM } }, { name: "10", score: 10, colour: "transparent", bordercolour: "white", type: { name: "ring", dia: 10 * INCHESTOMM } }, { name: "9", score: 9, colour: "transparent", bordercolour: "white", type: { name: "ring", dia: 20 * INCHESTOMM } }, { name: "8", score: 8, colour: "transparent", bordercolour: "white", type: { name: "ring", dia: 30 * INCHESTOMM } }, { name: "7", score: 7, colour: "black", /* no border - aiming mark */ type: { name: "ring", dia: 44 * INCHESTOMM } }, { name: "6", score: 6, colour: "transparent", bordercolour: "black", borderwidth: 1, type: { name: "ring", dia: 60 * INCHESTOMM } }, { name: "5", score: 5, colour: "transparent", bordercolour: "black", borderwidth: 1, type: { name: "rect", width: 72 * INCHESTOMM, height: 72 * INCHESTOMM } }, ], }; module.exports = { // http://www.nrahq.org/compete/nra-rule-books.asp // http://www.nrahq.org/compete/RuleBooks/HPR/hpr-book.pdf (F-Class in section 22) // 2018-Mar-08: http://rulebooks.nra.org/documents/pdf/compete/RuleBooks/HPR/hpr-book.pdf // NRA target dimensions from http://www.nrahq.org/compete/rules/fullbore_07.pdf // // new addresses: http://compete.nra.org/official-nra-rule-books.aspx // http://compete.nra.org/documents/pdf/compete/RuleBooks/Fullbore/fb-book.pdf // http://compete.nra.org/documents/pdf/compete/RuleBooks/HPR/hpr-book.pdf // // US 800..1000y LR targets; only the distance differs! // handles f class and sling - new method 'US-LR': tgtdef_LR_universal, 'US-LRFC-1000y': (t=JSON.parse(JSON.stringify(tgtdef_LR_universal)) ,t.scoringzones = t.scoringzones_f, t.distances=undefined , delete(t.scoringzones_f) ,t ), }