User mods, screenshots & videos > Aircraft

mig29 combat-ready upgrade (release)

<< < (2/2)

aWac9:
 :facepalm:
Ideally, a sudden movement of "g" or angle in pitch or roll, would automatically deactivate the autopilot, ...., not its explosion,
it's like someone pressing ctrl + D automatically and getting it disabled.
 ;)

fly77:

--- Quote ---Ideally, a sudden movement of "g" or angle in pitch or roll, would automatically deactivate the autopilot, ...., not its explosion,
it's like someone pressing ctrl + D automatically and getting it disabled.
 ;)

--- End quote ---
Good idea.
to achieve it you can add code two code lines:

--- Code: ---if (this.spawned && !this.exploded) {

if ( this.jsbsim['position/h-agl-ft']*0.3048 > 10  && gforce > 10){
this.pitch_hold_switch =0;
ap_wing_level_switch==0;
}

  if ( (this.jsbsim['position/h-agl-ft']*0.3048 > 10  && gforce > 30) || (this.jsbsim['position/h-agl-ft']*0.3048 < 10  && this.parking_break_switch ==0 && gforce > 8)){   
    var crashpos = this.geom.get_pos();
    explode(this.snd, this.explosions, this.geom.get_pos(), 3 ,"object bomb");
    this.exploded = true;

--- End code ---


fly77:
Important bug fix

After several complaints about plane exploding when flying "fast and furious" I decided to disable any plane explosions when airborne and added an "invulnerable mode" that
that you can activate by pressing CTRL+K in case you want to drive cross-country
(also the pitch-hold autopilot now disables automatically when a g threshold is exceeded)


So please redownload the mig29fly77-game-ready.otx  file from above.. No need to reinstall the plugin.[/size]


Navigation

[0] Message Index

[*] Previous page

Go to full version