Skip to content

Commit

Permalink
Sim: Add crash and stress to auto updater
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaiVChr committed Sep 21, 2023
1 parent a90c2dd commit 6f83e0c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 22 deletions.
22 changes: 22 additions & 0 deletions Nasal/crash-and-stress-custom.nas
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# use:
var crashCode = nil;
var crash_start = func {
removelistener(lsnr);
crashCode = CrashAndStress.new([0,1,2]);
crashCode.start();
}

var lsnr = setlistener("sim/signals/fdm-initialized", crash_start);

# test:
var repair = func {
crashCode.repair();
};

var exp = func {
crashCode.abandon();
};

var eject = func {
crashCode.eject();
};
22 changes: 0 additions & 22 deletions Nasal/crash-and-stress.nas
Original file line number Diff line number Diff line change
Expand Up @@ -576,25 +576,3 @@ var yaSimProp = {
# Remember to add sounds and to add the sound properties as custom signals to the replay recorder.


# use:
var crashCode = nil;
var crash_start = func {
removelistener(lsnr);
crashCode = CrashAndStress.new([0,1,2]);
crashCode.start();
}

var lsnr = setlistener("sim/signals/fdm-initialized", crash_start);

# test:
var repair = func {
crashCode.repair();
};

var exp = func {
crashCode.abandon();
};

var eject = func {
crashCode.eject();
};
1 change: 1 addition & 0 deletions f16-base.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1630,6 +1630,7 @@
</pylons>
<crash>
<file>Aircraft/f16/Nasal/crash-and-stress.nas</file>
<file>Aircraft/f16/Nasal/crash-and-stress-custom.nas</file>
</crash>
<mig28>
<file>Aircraft/f16/Nasal/mig28.nas</file>
Expand Down
4 changes: 4 additions & 0 deletions oprf-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,9 @@
"hack-canvas": {
"version": null,
"path": "Nasal/hackCanvas.nas"
},
"crash-and-stress": {
"version": null,
"path": "Nasal/crash-and-stress.nas"
}
}

0 comments on commit 6f83e0c

Please sign in to comment.