Quantcast

Jump to content

» «
Photo

[V] Script/Native Documentation and Research

1,143 replies to this topic
unknown modder
  • unknown modder

    Bon Jon Bovi

  • Members
  • Joined: 04 Jul 2012
  • United-Kingdom

#1141

Posted 23 September 2017 - 04:28 PM

 

int _GET_AIRCRAFT_COUNTERMEASURE_COUNT(Vehicle aircraft); // 0xF846AA63DF56B804
void _SET_AIRCRAFT_COUNTERMEASURE_COUNT(Vehicle aircraft, int countermeasureCount); // 0x9BDA23BF666F0855
int _GET_AIRCRAFT_BOMB_COUNT(Vehicle aircraft); // 0xEA12BD130D7569A1
void _SET_AIRCRAFT_BOMB_COUNT(Vehicle aircraft, int bombCount); // 0xF4B2ED59DEB5D774
BOOL _ARE_BOMB_BAY_DOORS_OPEN(Vehicle aircraft); // 0xD0917A423314BBA8
float _GET_PLANE_HOVER_MODE_PERCENTAGE(Vehicle plane); // 0xDA62027C8BDB326E

You dont happen to know if there is one that checks if bomb bay doors are FULLY open?

 

I'm not sure, But I thought the _ARE_BOMB_BAY_DOORS_OPEN only returns true when they are fully open. Feel free to test it out yourself though


darkphoenixxx
  • darkphoenixxx

    Square Civilian

  • Members
  • Joined: 13 May 2015
  • None

#1142

Posted 24 September 2017 - 12:40 PM Edited by darkphoenixxx, 24 September 2017 - 12:43 PM.

I'm not sure, But I thought the _ARE_BOMB_BAY_DOORS_OPEN only returns true when they are fully open. Feel free to test it out yourself though

Returns TRUE if doors are open or opening, so immediately after the OPEN_BOMB_BAY_DOORS and until CLOSE_BOMB_BAY_DOORS is called.

Returns FALSE if doors are closed or closing, so immediately after CLOSE_BOMB_BAY_DOORS and until OPEN_BOMB_BAY_DOORS is called.

 

On the other hand, does anyone know the location and name of the file with sound for bomb bay doors opening/closing? Or a way to disable it through natives (AUDIO::STOP_SOUND maybe?).


kagikn
  • kagikn

    Ghillie

  • Members
  • Joined: 05 Jun 2014
  • Japan

#1143

Posted 11 hours ago Edited by kagikn, 11 hours ago.

I found a site containing natives that don't exist in the first version by accident.
There are way more extra natives than I thought.
https://macoonier.gi...NativeDatabase/
the repo https://github.com/M...-NativeDatabase
  • ikt likes this

sany1991
  • sany1991

    Player Hater

  • Members
  • Joined: 2 days ago
  • Russia

#1144

Posted 2 hours ago

Correct the error, update the scripthook Steam version of the game 1.0.1290.2 :bbq:





11 user(s) are reading this topic

0 members, 11 guests, 0 anonymous users