mirror of
https://github.com/l0k1/oprf_assets.git
synced 2024-11-01 07:41:15 +08:00
Auto-Update shared Files
missile-code 1.1.5->1.1.6 (BUK-M2/Nasal/guided-missiles.nas) missile-code 1.1.5->1.1.6 (MIM-104D/Nasal/guided-missiles.nas) missile-code 1.1.5->1.1.6 (S-75/Nasal/guided-missiles.nas) missile-code 1.1.5->1.1.6 (SA-3/Nasal/guided-missiles.nas) missile-code 1.1.5->1.1.6 (SA-6/Nasal/guided-missiles.nas) damage 1.4.8->1.4.10 (BUK-M2/Nasal/damage.nas) damage 1.4.8->1.4.10 (depot/Nasal/damage.nas) damage 1.4.8->1.4.10 (fleet/Nasal/damage.nas) damage 1.4.8->1.4.10 (Frigate/Nasal/damage.nas) damage 1.4.8->1.4.10 (gci-radar/Nasal/damage.nas) damage 1.4.8->1.4.10 (groundtarget/Nasal/damage.nas) damage 1.4.8->1.4.10 (MIM-104D/Nasal/damage.nas) damage 1.4.8->1.4.10 (missile-frigate/Nasal/damage.nas) damage 1.4.8->1.4.10 (S-200/Nasal/damage.nas) damage 1.4.8->1.4.10 (S-300/Nasal/damage.nas) damage 1.4.8->1.4.10 (S-75/Nasal/damage.nas) damage 1.4.8->1.4.10 (SA-3/Nasal/damage.nas) damage 1.4.8->1.4.10 (SA-6/Nasal/damage.nas) damage 1.4.8->1.4.10 (ZSU-23/Nasal/damage.nas)
This commit is contained in:
parent
b1d37b5ae0
commit
a7e2485b6c
@ -212,7 +212,7 @@ var radar_signatures = {
|
||||
var id2warhead = [];
|
||||
var launched = {};# callsign: elapsed-sec
|
||||
var approached = {};# callsign: uniqueID
|
||||
var lastSeenTacObject = {};# tacID: last time seen
|
||||
var lastSeenTacObject = {};# tacID: last time seen weapon/flare
|
||||
var heavy_smoke = [61,62,63,65,92,96,97,100];
|
||||
|
||||
var k = keys(warheads);
|
||||
@ -340,10 +340,7 @@ var DamageRecipient =
|
||||
} else {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~tacID~"|\n");
|
||||
#tacview.write("0,Event=Destroyed|"~tacID~"|\n");
|
||||
#tacview.write("-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
}
|
||||
@ -382,19 +379,19 @@ var DamageRecipient =
|
||||
if (tacview_supported and (getprop("sim/multiplay/txhost") != "mpserver.opredflag.com" or m28_auto)) {
|
||||
# Record armament flightpath in tacview
|
||||
if (tacview.starttime) {
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity),6);
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity~typ[4]),6);
|
||||
var elapsed = getprop("sim/time/elapsed-sec");
|
||||
lastSeenTacObject[tacID] = elapsed;
|
||||
if (notification.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = typ[4]=="pilot"?"Parachutist":typ[4];
|
||||
var extra = typp=="Parachutist"?"|0|0|0":"";
|
||||
var extra2 = typ[2]==0?",Type=Weapon+Missile":",Type=Weapon+Bomb";
|
||||
extra2 = typ[4]=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Parachutist"?"":extra2;
|
||||
var color = radarOn or CWIOn?",Color=Red":",Color=Yellow";
|
||||
thread.lock(tacview.mutexWrite);
|
||||
@ -1068,7 +1065,7 @@ var recordOwnFlare = func (msg) {
|
||||
if (msg.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = "Flare";
|
||||
@ -1447,8 +1444,7 @@ var processCallsigns = func () {
|
||||
if (elapsed - lastSeenTacObject[key] > 30) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(key ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~key~"|\n");
|
||||
tacview.write("-"~key~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
new_lastSeenTacObject[key] = lastSeenTacObject[key];
|
||||
|
@ -945,7 +945,6 @@ var AIM = {
|
||||
if (tacview.starttime) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write("0,Event=Destroyed|"~me.tacviewID~"\n");
|
||||
tacview.write("-"~me.tacviewID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
|
@ -212,7 +212,7 @@ var radar_signatures = {
|
||||
var id2warhead = [];
|
||||
var launched = {};# callsign: elapsed-sec
|
||||
var approached = {};# callsign: uniqueID
|
||||
var lastSeenTacObject = {};# tacID: last time seen
|
||||
var lastSeenTacObject = {};# tacID: last time seen weapon/flare
|
||||
var heavy_smoke = [61,62,63,65,92,96,97,100];
|
||||
|
||||
var k = keys(warheads);
|
||||
@ -340,10 +340,7 @@ var DamageRecipient =
|
||||
} else {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~tacID~"|\n");
|
||||
#tacview.write("0,Event=Destroyed|"~tacID~"|\n");
|
||||
#tacview.write("-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
}
|
||||
@ -382,19 +379,19 @@ var DamageRecipient =
|
||||
if (tacview_supported and (getprop("sim/multiplay/txhost") != "mpserver.opredflag.com" or m28_auto)) {
|
||||
# Record armament flightpath in tacview
|
||||
if (tacview.starttime) {
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity),6);
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity~typ[4]),6);
|
||||
var elapsed = getprop("sim/time/elapsed-sec");
|
||||
lastSeenTacObject[tacID] = elapsed;
|
||||
if (notification.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = typ[4]=="pilot"?"Parachutist":typ[4];
|
||||
var extra = typp=="Parachutist"?"|0|0|0":"";
|
||||
var extra2 = typ[2]==0?",Type=Weapon+Missile":",Type=Weapon+Bomb";
|
||||
extra2 = typ[4]=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Parachutist"?"":extra2;
|
||||
var color = radarOn or CWIOn?",Color=Red":",Color=Yellow";
|
||||
thread.lock(tacview.mutexWrite);
|
||||
@ -1068,7 +1065,7 @@ var recordOwnFlare = func (msg) {
|
||||
if (msg.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = "Flare";
|
||||
@ -1447,8 +1444,7 @@ var processCallsigns = func () {
|
||||
if (elapsed - lastSeenTacObject[key] > 30) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(key ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~key~"|\n");
|
||||
tacview.write("-"~key~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
new_lastSeenTacObject[key] = lastSeenTacObject[key];
|
||||
|
@ -212,7 +212,7 @@ var radar_signatures = {
|
||||
var id2warhead = [];
|
||||
var launched = {};# callsign: elapsed-sec
|
||||
var approached = {};# callsign: uniqueID
|
||||
var lastSeenTacObject = {};# tacID: last time seen
|
||||
var lastSeenTacObject = {};# tacID: last time seen weapon/flare
|
||||
var heavy_smoke = [61,62,63,65,92,96,97,100];
|
||||
|
||||
var k = keys(warheads);
|
||||
@ -340,10 +340,7 @@ var DamageRecipient =
|
||||
} else {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~tacID~"|\n");
|
||||
#tacview.write("0,Event=Destroyed|"~tacID~"|\n");
|
||||
#tacview.write("-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
}
|
||||
@ -382,19 +379,19 @@ var DamageRecipient =
|
||||
if (tacview_supported and (getprop("sim/multiplay/txhost") != "mpserver.opredflag.com" or m28_auto)) {
|
||||
# Record armament flightpath in tacview
|
||||
if (tacview.starttime) {
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity),6);
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity~typ[4]),6);
|
||||
var elapsed = getprop("sim/time/elapsed-sec");
|
||||
lastSeenTacObject[tacID] = elapsed;
|
||||
if (notification.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = typ[4]=="pilot"?"Parachutist":typ[4];
|
||||
var extra = typp=="Parachutist"?"|0|0|0":"";
|
||||
var extra2 = typ[2]==0?",Type=Weapon+Missile":",Type=Weapon+Bomb";
|
||||
extra2 = typ[4]=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Parachutist"?"":extra2;
|
||||
var color = radarOn or CWIOn?",Color=Red":",Color=Yellow";
|
||||
thread.lock(tacview.mutexWrite);
|
||||
@ -1068,7 +1065,7 @@ var recordOwnFlare = func (msg) {
|
||||
if (msg.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = "Flare";
|
||||
@ -1447,8 +1444,7 @@ var processCallsigns = func () {
|
||||
if (elapsed - lastSeenTacObject[key] > 30) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(key ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~key~"|\n");
|
||||
tacview.write("-"~key~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
new_lastSeenTacObject[key] = lastSeenTacObject[key];
|
||||
|
@ -945,7 +945,6 @@ var AIM = {
|
||||
if (tacview.starttime) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write("0,Event=Destroyed|"~me.tacviewID~"\n");
|
||||
tacview.write("-"~me.tacviewID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
|
@ -212,7 +212,7 @@ var radar_signatures = {
|
||||
var id2warhead = [];
|
||||
var launched = {};# callsign: elapsed-sec
|
||||
var approached = {};# callsign: uniqueID
|
||||
var lastSeenTacObject = {};# tacID: last time seen
|
||||
var lastSeenTacObject = {};# tacID: last time seen weapon/flare
|
||||
var heavy_smoke = [61,62,63,65,92,96,97,100];
|
||||
|
||||
var k = keys(warheads);
|
||||
@ -340,10 +340,7 @@ var DamageRecipient =
|
||||
} else {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~tacID~"|\n");
|
||||
#tacview.write("0,Event=Destroyed|"~tacID~"|\n");
|
||||
#tacview.write("-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
}
|
||||
@ -382,19 +379,19 @@ var DamageRecipient =
|
||||
if (tacview_supported and (getprop("sim/multiplay/txhost") != "mpserver.opredflag.com" or m28_auto)) {
|
||||
# Record armament flightpath in tacview
|
||||
if (tacview.starttime) {
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity),6);
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity~typ[4]),6);
|
||||
var elapsed = getprop("sim/time/elapsed-sec");
|
||||
lastSeenTacObject[tacID] = elapsed;
|
||||
if (notification.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = typ[4]=="pilot"?"Parachutist":typ[4];
|
||||
var extra = typp=="Parachutist"?"|0|0|0":"";
|
||||
var extra2 = typ[2]==0?",Type=Weapon+Missile":",Type=Weapon+Bomb";
|
||||
extra2 = typ[4]=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Parachutist"?"":extra2;
|
||||
var color = radarOn or CWIOn?",Color=Red":",Color=Yellow";
|
||||
thread.lock(tacview.mutexWrite);
|
||||
@ -1068,7 +1065,7 @@ var recordOwnFlare = func (msg) {
|
||||
if (msg.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = "Flare";
|
||||
@ -1447,8 +1444,7 @@ var processCallsigns = func () {
|
||||
if (elapsed - lastSeenTacObject[key] > 30) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(key ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~key~"|\n");
|
||||
tacview.write("-"~key~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
new_lastSeenTacObject[key] = lastSeenTacObject[key];
|
||||
|
@ -212,7 +212,7 @@ var radar_signatures = {
|
||||
var id2warhead = [];
|
||||
var launched = {};# callsign: elapsed-sec
|
||||
var approached = {};# callsign: uniqueID
|
||||
var lastSeenTacObject = {};# tacID: last time seen
|
||||
var lastSeenTacObject = {};# tacID: last time seen weapon/flare
|
||||
var heavy_smoke = [61,62,63,65,92,96,97,100];
|
||||
|
||||
var k = keys(warheads);
|
||||
@ -340,10 +340,7 @@ var DamageRecipient =
|
||||
} else {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~tacID~"|\n");
|
||||
#tacview.write("0,Event=Destroyed|"~tacID~"|\n");
|
||||
#tacview.write("-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
}
|
||||
@ -382,19 +379,19 @@ var DamageRecipient =
|
||||
if (tacview_supported and (getprop("sim/multiplay/txhost") != "mpserver.opredflag.com" or m28_auto)) {
|
||||
# Record armament flightpath in tacview
|
||||
if (tacview.starttime) {
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity),6);
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity~typ[4]),6);
|
||||
var elapsed = getprop("sim/time/elapsed-sec");
|
||||
lastSeenTacObject[tacID] = elapsed;
|
||||
if (notification.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = typ[4]=="pilot"?"Parachutist":typ[4];
|
||||
var extra = typp=="Parachutist"?"|0|0|0":"";
|
||||
var extra2 = typ[2]==0?",Type=Weapon+Missile":",Type=Weapon+Bomb";
|
||||
extra2 = typ[4]=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Parachutist"?"":extra2;
|
||||
var color = radarOn or CWIOn?",Color=Red":",Color=Yellow";
|
||||
thread.lock(tacview.mutexWrite);
|
||||
@ -1068,7 +1065,7 @@ var recordOwnFlare = func (msg) {
|
||||
if (msg.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = "Flare";
|
||||
@ -1447,8 +1444,7 @@ var processCallsigns = func () {
|
||||
if (elapsed - lastSeenTacObject[key] > 30) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(key ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~key~"|\n");
|
||||
tacview.write("-"~key~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
new_lastSeenTacObject[key] = lastSeenTacObject[key];
|
||||
|
@ -212,7 +212,7 @@ var radar_signatures = {
|
||||
var id2warhead = [];
|
||||
var launched = {};# callsign: elapsed-sec
|
||||
var approached = {};# callsign: uniqueID
|
||||
var lastSeenTacObject = {};# tacID: last time seen
|
||||
var lastSeenTacObject = {};# tacID: last time seen weapon/flare
|
||||
var heavy_smoke = [61,62,63,65,92,96,97,100];
|
||||
|
||||
var k = keys(warheads);
|
||||
@ -340,10 +340,7 @@ var DamageRecipient =
|
||||
} else {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~tacID~"|\n");
|
||||
#tacview.write("0,Event=Destroyed|"~tacID~"|\n");
|
||||
#tacview.write("-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
}
|
||||
@ -382,19 +379,19 @@ var DamageRecipient =
|
||||
if (tacview_supported and (getprop("sim/multiplay/txhost") != "mpserver.opredflag.com" or m28_auto)) {
|
||||
# Record armament flightpath in tacview
|
||||
if (tacview.starttime) {
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity),6);
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity~typ[4]),6);
|
||||
var elapsed = getprop("sim/time/elapsed-sec");
|
||||
lastSeenTacObject[tacID] = elapsed;
|
||||
if (notification.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = typ[4]=="pilot"?"Parachutist":typ[4];
|
||||
var extra = typp=="Parachutist"?"|0|0|0":"";
|
||||
var extra2 = typ[2]==0?",Type=Weapon+Missile":",Type=Weapon+Bomb";
|
||||
extra2 = typ[4]=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Parachutist"?"":extra2;
|
||||
var color = radarOn or CWIOn?",Color=Red":",Color=Yellow";
|
||||
thread.lock(tacview.mutexWrite);
|
||||
@ -1068,7 +1065,7 @@ var recordOwnFlare = func (msg) {
|
||||
if (msg.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = "Flare";
|
||||
@ -1447,8 +1444,7 @@ var processCallsigns = func () {
|
||||
if (elapsed - lastSeenTacObject[key] > 30) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(key ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~key~"|\n");
|
||||
tacview.write("-"~key~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
new_lastSeenTacObject[key] = lastSeenTacObject[key];
|
||||
|
@ -945,7 +945,6 @@ var AIM = {
|
||||
if (tacview.starttime) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write("0,Event=Destroyed|"~me.tacviewID~"\n");
|
||||
tacview.write("-"~me.tacviewID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
|
@ -212,7 +212,7 @@ var radar_signatures = {
|
||||
var id2warhead = [];
|
||||
var launched = {};# callsign: elapsed-sec
|
||||
var approached = {};# callsign: uniqueID
|
||||
var lastSeenTacObject = {};# tacID: last time seen
|
||||
var lastSeenTacObject = {};# tacID: last time seen weapon/flare
|
||||
var heavy_smoke = [61,62,63,65,92,96,97,100];
|
||||
|
||||
var k = keys(warheads);
|
||||
@ -340,10 +340,7 @@ var DamageRecipient =
|
||||
} else {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~tacID~"|\n");
|
||||
#tacview.write("0,Event=Destroyed|"~tacID~"|\n");
|
||||
#tacview.write("-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
}
|
||||
@ -382,19 +379,19 @@ var DamageRecipient =
|
||||
if (tacview_supported and (getprop("sim/multiplay/txhost") != "mpserver.opredflag.com" or m28_auto)) {
|
||||
# Record armament flightpath in tacview
|
||||
if (tacview.starttime) {
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity),6);
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity~typ[4]),6);
|
||||
var elapsed = getprop("sim/time/elapsed-sec");
|
||||
lastSeenTacObject[tacID] = elapsed;
|
||||
if (notification.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = typ[4]=="pilot"?"Parachutist":typ[4];
|
||||
var extra = typp=="Parachutist"?"|0|0|0":"";
|
||||
var extra2 = typ[2]==0?",Type=Weapon+Missile":",Type=Weapon+Bomb";
|
||||
extra2 = typ[4]=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Parachutist"?"":extra2;
|
||||
var color = radarOn or CWIOn?",Color=Red":",Color=Yellow";
|
||||
thread.lock(tacview.mutexWrite);
|
||||
@ -1068,7 +1065,7 @@ var recordOwnFlare = func (msg) {
|
||||
if (msg.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = "Flare";
|
||||
@ -1447,8 +1444,7 @@ var processCallsigns = func () {
|
||||
if (elapsed - lastSeenTacObject[key] > 30) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(key ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~key~"|\n");
|
||||
tacview.write("-"~key~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
new_lastSeenTacObject[key] = lastSeenTacObject[key];
|
||||
|
@ -945,7 +945,6 @@ var AIM = {
|
||||
if (tacview.starttime) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write("0,Event=Destroyed|"~me.tacviewID~"\n");
|
||||
tacview.write("-"~me.tacviewID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
|
@ -212,7 +212,7 @@ var radar_signatures = {
|
||||
var id2warhead = [];
|
||||
var launched = {};# callsign: elapsed-sec
|
||||
var approached = {};# callsign: uniqueID
|
||||
var lastSeenTacObject = {};# tacID: last time seen
|
||||
var lastSeenTacObject = {};# tacID: last time seen weapon/flare
|
||||
var heavy_smoke = [61,62,63,65,92,96,97,100];
|
||||
|
||||
var k = keys(warheads);
|
||||
@ -340,10 +340,7 @@ var DamageRecipient =
|
||||
} else {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~tacID~"|\n");
|
||||
#tacview.write("0,Event=Destroyed|"~tacID~"|\n");
|
||||
#tacview.write("-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
}
|
||||
@ -382,19 +379,19 @@ var DamageRecipient =
|
||||
if (tacview_supported and (getprop("sim/multiplay/txhost") != "mpserver.opredflag.com" or m28_auto)) {
|
||||
# Record armament flightpath in tacview
|
||||
if (tacview.starttime) {
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity),6);
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity~typ[4]),6);
|
||||
var elapsed = getprop("sim/time/elapsed-sec");
|
||||
lastSeenTacObject[tacID] = elapsed;
|
||||
if (notification.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = typ[4]=="pilot"?"Parachutist":typ[4];
|
||||
var extra = typp=="Parachutist"?"|0|0|0":"";
|
||||
var extra2 = typ[2]==0?",Type=Weapon+Missile":",Type=Weapon+Bomb";
|
||||
extra2 = typ[4]=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Parachutist"?"":extra2;
|
||||
var color = radarOn or CWIOn?",Color=Red":",Color=Yellow";
|
||||
thread.lock(tacview.mutexWrite);
|
||||
@ -1068,7 +1065,7 @@ var recordOwnFlare = func (msg) {
|
||||
if (msg.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = "Flare";
|
||||
@ -1447,8 +1444,7 @@ var processCallsigns = func () {
|
||||
if (elapsed - lastSeenTacObject[key] > 30) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(key ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~key~"|\n");
|
||||
tacview.write("-"~key~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
new_lastSeenTacObject[key] = lastSeenTacObject[key];
|
||||
|
@ -945,7 +945,6 @@ var AIM = {
|
||||
if (tacview.starttime) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write("0,Event=Destroyed|"~me.tacviewID~"\n");
|
||||
tacview.write("-"~me.tacviewID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
|
@ -212,7 +212,7 @@ var radar_signatures = {
|
||||
var id2warhead = [];
|
||||
var launched = {};# callsign: elapsed-sec
|
||||
var approached = {};# callsign: uniqueID
|
||||
var lastSeenTacObject = {};# tacID: last time seen
|
||||
var lastSeenTacObject = {};# tacID: last time seen weapon/flare
|
||||
var heavy_smoke = [61,62,63,65,92,96,97,100];
|
||||
|
||||
var k = keys(warheads);
|
||||
@ -340,10 +340,7 @@ var DamageRecipient =
|
||||
} else {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~tacID~"|\n");
|
||||
#tacview.write("0,Event=Destroyed|"~tacID~"|\n");
|
||||
#tacview.write("-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
}
|
||||
@ -382,19 +379,19 @@ var DamageRecipient =
|
||||
if (tacview_supported and (getprop("sim/multiplay/txhost") != "mpserver.opredflag.com" or m28_auto)) {
|
||||
# Record armament flightpath in tacview
|
||||
if (tacview.starttime) {
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity),6);
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity~typ[4]),6);
|
||||
var elapsed = getprop("sim/time/elapsed-sec");
|
||||
lastSeenTacObject[tacID] = elapsed;
|
||||
if (notification.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = typ[4]=="pilot"?"Parachutist":typ[4];
|
||||
var extra = typp=="Parachutist"?"|0|0|0":"";
|
||||
var extra2 = typ[2]==0?",Type=Weapon+Missile":",Type=Weapon+Bomb";
|
||||
extra2 = typ[4]=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Parachutist"?"":extra2;
|
||||
var color = radarOn or CWIOn?",Color=Red":",Color=Yellow";
|
||||
thread.lock(tacview.mutexWrite);
|
||||
@ -1068,7 +1065,7 @@ var recordOwnFlare = func (msg) {
|
||||
if (msg.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = "Flare";
|
||||
@ -1447,8 +1444,7 @@ var processCallsigns = func () {
|
||||
if (elapsed - lastSeenTacObject[key] > 30) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(key ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~key~"|\n");
|
||||
tacview.write("-"~key~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
new_lastSeenTacObject[key] = lastSeenTacObject[key];
|
||||
|
@ -212,7 +212,7 @@ var radar_signatures = {
|
||||
var id2warhead = [];
|
||||
var launched = {};# callsign: elapsed-sec
|
||||
var approached = {};# callsign: uniqueID
|
||||
var lastSeenTacObject = {};# tacID: last time seen
|
||||
var lastSeenTacObject = {};# tacID: last time seen weapon/flare
|
||||
var heavy_smoke = [61,62,63,65,92,96,97,100];
|
||||
|
||||
var k = keys(warheads);
|
||||
@ -340,10 +340,7 @@ var DamageRecipient =
|
||||
} else {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~tacID~"|\n");
|
||||
#tacview.write("0,Event=Destroyed|"~tacID~"|\n");
|
||||
#tacview.write("-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
}
|
||||
@ -382,19 +379,19 @@ var DamageRecipient =
|
||||
if (tacview_supported and (getprop("sim/multiplay/txhost") != "mpserver.opredflag.com" or m28_auto)) {
|
||||
# Record armament flightpath in tacview
|
||||
if (tacview.starttime) {
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity),6);
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity~typ[4]),6);
|
||||
var elapsed = getprop("sim/time/elapsed-sec");
|
||||
lastSeenTacObject[tacID] = elapsed;
|
||||
if (notification.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = typ[4]=="pilot"?"Parachutist":typ[4];
|
||||
var extra = typp=="Parachutist"?"|0|0|0":"";
|
||||
var extra2 = typ[2]==0?",Type=Weapon+Missile":",Type=Weapon+Bomb";
|
||||
extra2 = typ[4]=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Parachutist"?"":extra2;
|
||||
var color = radarOn or CWIOn?",Color=Red":",Color=Yellow";
|
||||
thread.lock(tacview.mutexWrite);
|
||||
@ -1068,7 +1065,7 @@ var recordOwnFlare = func (msg) {
|
||||
if (msg.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = "Flare";
|
||||
@ -1447,8 +1444,7 @@ var processCallsigns = func () {
|
||||
if (elapsed - lastSeenTacObject[key] > 30) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(key ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~key~"|\n");
|
||||
tacview.write("-"~key~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
new_lastSeenTacObject[key] = lastSeenTacObject[key];
|
||||
|
@ -212,7 +212,7 @@ var radar_signatures = {
|
||||
var id2warhead = [];
|
||||
var launched = {};# callsign: elapsed-sec
|
||||
var approached = {};# callsign: uniqueID
|
||||
var lastSeenTacObject = {};# tacID: last time seen
|
||||
var lastSeenTacObject = {};# tacID: last time seen weapon/flare
|
||||
var heavy_smoke = [61,62,63,65,92,96,97,100];
|
||||
|
||||
var k = keys(warheads);
|
||||
@ -340,10 +340,7 @@ var DamageRecipient =
|
||||
} else {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~tacID~"|\n");
|
||||
#tacview.write("0,Event=Destroyed|"~tacID~"|\n");
|
||||
#tacview.write("-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
}
|
||||
@ -382,19 +379,19 @@ var DamageRecipient =
|
||||
if (tacview_supported and (getprop("sim/multiplay/txhost") != "mpserver.opredflag.com" or m28_auto)) {
|
||||
# Record armament flightpath in tacview
|
||||
if (tacview.starttime) {
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity),6);
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity~typ[4]),6);
|
||||
var elapsed = getprop("sim/time/elapsed-sec");
|
||||
lastSeenTacObject[tacID] = elapsed;
|
||||
if (notification.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = typ[4]=="pilot"?"Parachutist":typ[4];
|
||||
var extra = typp=="Parachutist"?"|0|0|0":"";
|
||||
var extra2 = typ[2]==0?",Type=Weapon+Missile":",Type=Weapon+Bomb";
|
||||
extra2 = typ[4]=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Parachutist"?"":extra2;
|
||||
var color = radarOn or CWIOn?",Color=Red":",Color=Yellow";
|
||||
thread.lock(tacview.mutexWrite);
|
||||
@ -1068,7 +1065,7 @@ var recordOwnFlare = func (msg) {
|
||||
if (msg.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = "Flare";
|
||||
@ -1447,8 +1444,7 @@ var processCallsigns = func () {
|
||||
if (elapsed - lastSeenTacObject[key] > 30) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(key ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~key~"|\n");
|
||||
tacview.write("-"~key~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
new_lastSeenTacObject[key] = lastSeenTacObject[key];
|
||||
|
@ -212,7 +212,7 @@ var radar_signatures = {
|
||||
var id2warhead = [];
|
||||
var launched = {};# callsign: elapsed-sec
|
||||
var approached = {};# callsign: uniqueID
|
||||
var lastSeenTacObject = {};# tacID: last time seen
|
||||
var lastSeenTacObject = {};# tacID: last time seen weapon/flare
|
||||
var heavy_smoke = [61,62,63,65,92,96,97,100];
|
||||
|
||||
var k = keys(warheads);
|
||||
@ -340,10 +340,7 @@ var DamageRecipient =
|
||||
} else {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~tacID~"|\n");
|
||||
#tacview.write("0,Event=Destroyed|"~tacID~"|\n");
|
||||
#tacview.write("-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
}
|
||||
@ -382,19 +379,19 @@ var DamageRecipient =
|
||||
if (tacview_supported and (getprop("sim/multiplay/txhost") != "mpserver.opredflag.com" or m28_auto)) {
|
||||
# Record armament flightpath in tacview
|
||||
if (tacview.starttime) {
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity),6);
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity~typ[4]),6);
|
||||
var elapsed = getprop("sim/time/elapsed-sec");
|
||||
lastSeenTacObject[tacID] = elapsed;
|
||||
if (notification.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = typ[4]=="pilot"?"Parachutist":typ[4];
|
||||
var extra = typp=="Parachutist"?"|0|0|0":"";
|
||||
var extra2 = typ[2]==0?",Type=Weapon+Missile":",Type=Weapon+Bomb";
|
||||
extra2 = typ[4]=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Parachutist"?"":extra2;
|
||||
var color = radarOn or CWIOn?",Color=Red":",Color=Yellow";
|
||||
thread.lock(tacview.mutexWrite);
|
||||
@ -1068,7 +1065,7 @@ var recordOwnFlare = func (msg) {
|
||||
if (msg.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = "Flare";
|
||||
@ -1447,8 +1444,7 @@ var processCallsigns = func () {
|
||||
if (elapsed - lastSeenTacObject[key] > 30) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(key ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~key~"|\n");
|
||||
tacview.write("-"~key~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
new_lastSeenTacObject[key] = lastSeenTacObject[key];
|
||||
|
@ -212,7 +212,7 @@ var radar_signatures = {
|
||||
var id2warhead = [];
|
||||
var launched = {};# callsign: elapsed-sec
|
||||
var approached = {};# callsign: uniqueID
|
||||
var lastSeenTacObject = {};# tacID: last time seen
|
||||
var lastSeenTacObject = {};# tacID: last time seen weapon/flare
|
||||
var heavy_smoke = [61,62,63,65,92,96,97,100];
|
||||
|
||||
var k = keys(warheads);
|
||||
@ -340,10 +340,7 @@ var DamageRecipient =
|
||||
} else {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~tacID~"|\n");
|
||||
#tacview.write("0,Event=Destroyed|"~tacID~"|\n");
|
||||
#tacview.write("-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
}
|
||||
@ -382,19 +379,19 @@ var DamageRecipient =
|
||||
if (tacview_supported and (getprop("sim/multiplay/txhost") != "mpserver.opredflag.com" or m28_auto)) {
|
||||
# Record armament flightpath in tacview
|
||||
if (tacview.starttime) {
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity),6);
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity~typ[4]),6);
|
||||
var elapsed = getprop("sim/time/elapsed-sec");
|
||||
lastSeenTacObject[tacID] = elapsed;
|
||||
if (notification.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = typ[4]=="pilot"?"Parachutist":typ[4];
|
||||
var extra = typp=="Parachutist"?"|0|0|0":"";
|
||||
var extra2 = typ[2]==0?",Type=Weapon+Missile":",Type=Weapon+Bomb";
|
||||
extra2 = typ[4]=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Parachutist"?"":extra2;
|
||||
var color = radarOn or CWIOn?",Color=Red":",Color=Yellow";
|
||||
thread.lock(tacview.mutexWrite);
|
||||
@ -1068,7 +1065,7 @@ var recordOwnFlare = func (msg) {
|
||||
if (msg.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = "Flare";
|
||||
@ -1447,8 +1444,7 @@ var processCallsigns = func () {
|
||||
if (elapsed - lastSeenTacObject[key] > 30) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(key ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~key~"|\n");
|
||||
tacview.write("-"~key~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
new_lastSeenTacObject[key] = lastSeenTacObject[key];
|
||||
|
@ -212,7 +212,7 @@ var radar_signatures = {
|
||||
var id2warhead = [];
|
||||
var launched = {};# callsign: elapsed-sec
|
||||
var approached = {};# callsign: uniqueID
|
||||
var lastSeenTacObject = {};# tacID: last time seen
|
||||
var lastSeenTacObject = {};# tacID: last time seen weapon/flare
|
||||
var heavy_smoke = [61,62,63,65,92,96,97,100];
|
||||
|
||||
var k = keys(warheads);
|
||||
@ -340,10 +340,7 @@ var DamageRecipient =
|
||||
} else {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~tacID~"|\n");
|
||||
#tacview.write("0,Event=Destroyed|"~tacID~"|\n");
|
||||
#tacview.write("-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
}
|
||||
}
|
||||
@ -382,19 +379,19 @@ var DamageRecipient =
|
||||
if (tacview_supported and (getprop("sim/multiplay/txhost") != "mpserver.opredflag.com" or m28_auto)) {
|
||||
# Record armament flightpath in tacview
|
||||
if (tacview.starttime) {
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity),6);
|
||||
var tacID = left(md5(notification.Callsign~notification.UniqueIdentity~typ[4]),6);
|
||||
var elapsed = getprop("sim/time/elapsed-sec");
|
||||
lastSeenTacObject[tacID] = elapsed;
|
||||
if (notification.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = typ[4]=="pilot"?"Parachutist":typ[4];
|
||||
var extra = typp=="Parachutist"?"|0|0|0":"";
|
||||
var extra2 = typ[2]==0?",Type=Weapon+Missile":",Type=Weapon+Bomb";
|
||||
extra2 = typ[4]=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Flare"?",Type=Flare":extra2;
|
||||
extra2 = typp=="Parachutist"?"":extra2;
|
||||
var color = radarOn or CWIOn?",Color=Red":",Color=Yellow";
|
||||
thread.lock(tacview.mutexWrite);
|
||||
@ -1068,7 +1065,7 @@ var recordOwnFlare = func (msg) {
|
||||
if (msg.Kind == DESTROY) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(tacID~",Visible=0\n-"~tacID~"\n");
|
||||
tacview.write("-"~tacID~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
var typp = "Flare";
|
||||
@ -1447,8 +1444,7 @@ var processCallsigns = func () {
|
||||
if (elapsed - lastSeenTacObject[key] > 30) {
|
||||
thread.lock(tacview.mutexWrite);
|
||||
tacview.write("#" ~ (systime() - tacview.starttime)~"\n");
|
||||
tacview.write(key ~ ",Visible=0"~"\n");
|
||||
tacview.write("0,Event=LeftArea|"~key~"|\n");
|
||||
tacview.write("-"~key~"\n");
|
||||
thread.unlock(tacview.mutexWrite);
|
||||
} else {
|
||||
new_lastSeenTacObject[key] = lastSeenTacObject[key];
|
||||
|
@ -59,81 +59,81 @@
|
||||
],
|
||||
"missile-code": [
|
||||
{
|
||||
"version": "1.1.5",
|
||||
"version": "1.1.6",
|
||||
"path": "BUK-M2/Nasal/guided-missiles.nas"
|
||||
},
|
||||
{
|
||||
"version": "1.1.5",
|
||||
"version": "1.1.6",
|
||||
"path": "MIM-104D/Nasal/guided-missiles.nas"
|
||||
},
|
||||
{
|
||||
"version": "1.1.5",
|
||||
"version": "1.1.6",
|
||||
"path": "S-75/Nasal/guided-missiles.nas"
|
||||
},
|
||||
{
|
||||
"version": "1.1.5",
|
||||
"version": "1.1.6",
|
||||
"path": "SA-3/Nasal/guided-missiles.nas"
|
||||
},
|
||||
{
|
||||
"version": "1.1.5",
|
||||
"version": "1.1.6",
|
||||
"path": "SA-6/Nasal/guided-missiles.nas"
|
||||
}
|
||||
],
|
||||
"damage": [
|
||||
{
|
||||
"version": "1.4.8",
|
||||
"version": "1.4.10",
|
||||
"path": "BUK-M2/Nasal/damage.nas"
|
||||
},
|
||||
{
|
||||
"version": "1.4.8",
|
||||
"version": "1.4.10",
|
||||
"path": "depot/Nasal/damage.nas"
|
||||
},
|
||||
{
|
||||
"version": "1.4.8",
|
||||
"version": "1.4.10",
|
||||
"path": "fleet/Nasal/damage.nas"
|
||||
},
|
||||
{
|
||||
"version": "1.4.8",
|
||||
"version": "1.4.10",
|
||||
"path": "Frigate/Nasal/damage.nas"
|
||||
},
|
||||
{
|
||||
"version": "1.4.8",
|
||||
"version": "1.4.10",
|
||||
"path": "gci-radar/Nasal/damage.nas"
|
||||
},
|
||||
{
|
||||
"version": "1.4.8",
|
||||
"version": "1.4.10",
|
||||
"path": "groundtarget/Nasal/damage.nas"
|
||||
},
|
||||
{
|
||||
"version": "1.4.8",
|
||||
"version": "1.4.10",
|
||||
"path": "MIM-104D/Nasal/damage.nas"
|
||||
},
|
||||
{
|
||||
"version": "1.4.8",
|
||||
"version": "1.4.10",
|
||||
"path": "missile-frigate/Nasal/damage.nas"
|
||||
},
|
||||
{
|
||||
"version": "1.4.8",
|
||||
"version": "1.4.10",
|
||||
"path": "S-200/Nasal/damage.nas"
|
||||
},
|
||||
{
|
||||
"version": "1.4.8",
|
||||
"version": "1.4.10",
|
||||
"path": "S-300/Nasal/damage.nas"
|
||||
},
|
||||
{
|
||||
"version": "1.4.8",
|
||||
"version": "1.4.10",
|
||||
"path": "S-75/Nasal/damage.nas"
|
||||
},
|
||||
{
|
||||
"version": "1.4.8",
|
||||
"version": "1.4.10",
|
||||
"path": "SA-3/Nasal/damage.nas"
|
||||
},
|
||||
{
|
||||
"version": "1.4.8",
|
||||
"version": "1.4.10",
|
||||
"path": "SA-6/Nasal/damage.nas"
|
||||
},
|
||||
{
|
||||
"version": "1.4.8",
|
||||
"version": "1.4.10",
|
||||
"path": "ZSU-23/Nasal/damage.nas"
|
||||
}
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user