Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Outerra Tech Demo download. Help with graphics driver issues

Author Topic: work on bk117 helicopter  (Read 326 times)

fly77

  • Sr. Member
  • ****
  • Posts: 359
work on bk117 helicopter
« on: June 09, 2019, 02:37:50 pm »

Finally I have learned to fly the bk117 helicopter by using a lot the trim and setting joystick sensivity to high and a deadzone to narrow.
Then I made some modification to the javascript to set up zoom (see code below for the core of it). Then as I pressed +/- keys on numpad to zoom keys while flying the bk117 heli up came this screen while zoom does not work..
the +/- keys seem associated to something different for the bk117..
What is its purpose ? Could I program similar nice sliders and buttons on my own ..look like java buttons?



Code: [Select]

function update_frame(dt){

  fov_cockpit_zoom = 81.8;
  this.register_axis("air/sensor/fov_zoom", {minval:0, maxval:1, vel:1, center:0}, function(v){
    var dec2int = v*48;
    var integer = Math.floor(dec2int);
    var string = 81.8 - integer.toString();
    fov_cockpit_zoom = string;
  });
 
   if (this.get_camera_mode() == 0){
    ot_world.set_camera_fov(fov_cockpit_zoom);
  }


« Last Edit: June 09, 2019, 02:57:15 pm by fly77 »
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6603
  • Pegs is clever, but tae hain’t a touch sentimental
    • outerra.com
Re: work on bk117 helicopter
« Reply #1 on: June 09, 2019, 03:03:58 pm »

It's an old window used for initial setup. Otherwise it's a normal html window.

What you can do is make such an html, set the path in config (see T817 script, property config returned from init_chassis).
The window will open when pressing the key bound to the ot/player/open_config action.

$object in the html corresponds to the vehicle interface there, but you should see it in the example.
Logged

fly77

  • Sr. Member
  • ****
  • Posts: 359
Re: work on bk117 helicopter
« Reply #2 on: June 09, 2019, 03:22:53 pm »

Thanks a lot ! Interesting. Will try it.
By the way I found the reason why it came up. I put the register axis command in update frame instead of initialize_reload.
Logged

Revolver

  • Hero Member
  • *****
  • Posts: 566
  • Adlerhorst-Hangar Design Group ©
Re: work on bk117 helicopter
« Reply #3 on: June 09, 2019, 05:13:56 pm »

Hi Marco!

It becomes very interesting and of all worthwhile, if there can save under each flight object its own settings.
If you understand what I mean ... ;)

Gruß,
Stefan
Logged
"Es gibt nur eine Sünde, die gegen die ganze Menschheit mit allen ihren Geschlechtern begangen
werden kann, und dies ist die Verfälschung der Geschichte."(F.Hebbel)

i7(960)4x4.0GHz,16Gb-RAM,GTX980Ti(6Gb),Xonar-Phoebus-7.1,2x500Gb/SSD,Hotas-Warthog

fly77

  • Sr. Member
  • ****
  • Posts: 359
Re: work on bk117 helicopter
« Reply #4 on: June 10, 2019, 01:37:25 pm »

yes I understand well what you mean. Will try if I can get it to work to make something useful
Logged

fly77

  • Sr. Member
  • ****
  • Posts: 359
Re: work on bk117 helicopter
« Reply #5 on: June 10, 2019, 03:04:18 pm »

It's an old window used for initial setup. Otherwise it's a normal html window.

What you can do is make such an html, set the path in config (see T817 script, property config returned from init_chassis).
The window will open when pressing the key bound to the ot/player/open_config action.

$object in the html corresponds to the vehicle interface there, but you should see it in the example.

Sorry how to bring up the config window for the t817 ? which key ?
Logged

KW71

  • Outerra Developer
  • Hero Member
  • *****
  • Posts: 695
  • Love OT!
Re: work on bk117 helicopter
« Reply #6 on: June 10, 2019, 07:21:31 pm »

"t" (to config the suspension parameters).
Logged
"A man who is contented with what he has done, will never become famous for what he will do".

fly77

  • Sr. Member
  • ****
  • Posts: 359
Re: work on bk117 helicopter
« Reply #7 on: June 15, 2019, 12:21:11 pm »

Showing off my fleshly acquired Heli-flying skills doing an aircraft carrier landing. Joystick set to sensitive and low deadzone in outerra + using a lot of trim.
Aircraft carrier and bk117 heli mod are work in progress.

« Last Edit: June 15, 2019, 12:36:40 pm by fly77 »
Logged

aWac9

  • Hero Member
  • *****
  • Posts: 1189
  • newbie
Re: work on bk117 helicopter
« Reply #8 on: June 15, 2019, 05:44:30 pm »

great, fantastic .. great contribution.
waiting for publication .. :)
Logged

Revolver

  • Hero Member
  • *****
  • Posts: 566
  • Adlerhorst-Hangar Design Group ©
Re: work on bk117 helicopter
« Reply #9 on: June 16, 2019, 11:34:22 pm »

oha! :o  cool! Sehr gut gemacht, Marco! :)
Logged
"Es gibt nur eine Sünde, die gegen die ganze Menschheit mit allen ihren Geschlechtern begangen
werden kann, und dies ist die Verfälschung der Geschichte."(F.Hebbel)

i7(960)4x4.0GHz,16Gb-RAM,GTX980Ti(6Gb),Xonar-Phoebus-7.1,2x500Gb/SSD,Hotas-Warthog

fly77

  • Sr. Member
  • ****
  • Posts: 359
Re: work on bk117 helicopter
« Reply #10 on: June 17, 2019, 04:39:10 am »

danke Stefan ! Will publish something in july
Logged