@nativewrappers/redm-codegen 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/classes/AnimScene.d.ts +82 -82
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +124 -124
  4. package/dist/classes/BaseModel.d.ts +29 -29
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +43 -43
  7. package/dist/classes/BaseTask.d.ts +43 -43
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +53 -53
  10. package/dist/classes/Cam.d.ts +82 -82
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +115 -115
  13. package/dist/classes/Entity.d.ts +250 -250
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +350 -350
  16. package/dist/classes/Interior.d.ts +27 -27
  17. package/dist/classes/Interior.d.ts.map +1 -1
  18. package/dist/classes/Interior.js +42 -42
  19. package/dist/classes/Ped.d.ts +55 -55
  20. package/dist/classes/Ped.d.ts.map +1 -1
  21. package/dist/classes/Ped.js +76 -76
  22. package/dist/classes/PedTask.d.ts +797 -797
  23. package/dist/classes/PedTask.d.ts.map +1 -1
  24. package/dist/classes/PedTask.js +1023 -1023
  25. package/dist/classes/PersChar.d.ts +13 -13
  26. package/dist/classes/PersChar.d.ts.map +1 -1
  27. package/dist/classes/PersChar.js +27 -27
  28. package/dist/classes/Pickup.d.ts +8 -8
  29. package/dist/classes/Pickup.d.ts.map +1 -1
  30. package/dist/classes/Pickup.js +15 -15
  31. package/dist/classes/Player.d.ts +185 -185
  32. package/dist/classes/Player.d.ts.map +1 -1
  33. package/dist/classes/Player.js +251 -251
  34. package/dist/classes/Prop.d.ts +130 -130
  35. package/dist/classes/Prop.d.ts.map +1 -1
  36. package/dist/classes/Prop.js +188 -188
  37. package/dist/classes/PropSet.d.ts +17 -17
  38. package/dist/classes/PropSet.d.ts.map +1 -1
  39. package/dist/classes/PropSet.js +25 -25
  40. package/dist/classes/VehicleTask.d.ts +23 -23
  41. package/dist/classes/VehicleTask.d.ts.map +1 -1
  42. package/dist/classes/VehicleTask.js +30 -30
  43. package/dist/classes/Volume.d.ts +39 -39
  44. package/dist/classes/Volume.d.ts.map +1 -1
  45. package/dist/classes/Volume.js +54 -54
  46. package/dist/classes/Weapon.d.ts +291 -291
  47. package/dist/classes/Weapon.d.ts.map +1 -1
  48. package/dist/classes/Weapon.js +414 -414
  49. package/dist/namespaces/Animscene.d.ts +63 -63
  50. package/dist/namespaces/Animscene.d.ts.map +1 -1
  51. package/dist/namespaces/Animscene.js +83 -83
  52. package/dist/namespaces/Audio.d.ts +464 -464
  53. package/dist/namespaces/Audio.d.ts.map +1 -1
  54. package/dist/namespaces/Audio.js +650 -650
  55. package/dist/namespaces/Bounty.d.ts +57 -57
  56. package/dist/namespaces/Bounty.d.ts.map +1 -1
  57. package/dist/namespaces/Bounty.js +90 -90
  58. package/dist/namespaces/CamStatics.d.ts +426 -426
  59. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  60. package/dist/namespaces/CamStatics.js +609 -609
  61. package/dist/namespaces/Collection.d.ts +81 -81
  62. package/dist/namespaces/Collection.d.ts.map +1 -1
  63. package/dist/namespaces/Collection.js +113 -113
  64. package/dist/namespaces/Compendium.d.ts +38 -38
  65. package/dist/namespaces/Compendium.d.ts.map +1 -1
  66. package/dist/namespaces/Compendium.js +52 -52
  67. package/dist/namespaces/Crashlog.d.ts +10 -10
  68. package/dist/namespaces/Crashlog.d.ts.map +1 -1
  69. package/dist/namespaces/Crashlog.js +14 -14
  70. package/dist/namespaces/Databinding.d.ts +174 -174
  71. package/dist/namespaces/Databinding.d.ts.map +1 -1
  72. package/dist/namespaces/Databinding.js +266 -266
  73. package/dist/namespaces/EntityStatics.d.ts +110 -110
  74. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  75. package/dist/namespaces/EntityStatics.js +146 -146
  76. package/dist/namespaces/Graphics.d.ts +547 -547
  77. package/dist/namespaces/Graphics.d.ts.map +1 -1
  78. package/dist/namespaces/Graphics.js +731 -731
  79. package/dist/namespaces/Hud.d.ts +395 -395
  80. package/dist/namespaces/Hud.d.ts.map +1 -1
  81. package/dist/namespaces/Hud.js +564 -564
  82. package/dist/namespaces/InteriorStatics.d.ts +40 -40
  83. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  84. package/dist/namespaces/InteriorStatics.js +56 -56
  85. package/dist/namespaces/Inventory.d.ts +107 -107
  86. package/dist/namespaces/Inventory.d.ts.map +1 -1
  87. package/dist/namespaces/Inventory.js +149 -149
  88. package/dist/namespaces/Itemdatabase.d.ts +5 -5
  89. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  90. package/dist/namespaces/Itemdatabase.js +7 -7
  91. package/dist/namespaces/Map.d.ts +173 -173
  92. package/dist/namespaces/Map.d.ts.map +1 -1
  93. package/dist/namespaces/Map.js +240 -240
  94. package/dist/namespaces/Minigame.d.ts +56 -56
  95. package/dist/namespaces/Minigame.d.ts.map +1 -1
  96. package/dist/namespaces/Minigame.js +80 -80
  97. package/dist/namespaces/Network.d.ts +964 -964
  98. package/dist/namespaces/Network.d.ts.map +1 -1
  99. package/dist/namespaces/Network.js +1333 -1333
  100. package/dist/namespaces/Object.d.ts +240 -240
  101. package/dist/namespaces/Object.d.ts.map +1 -1
  102. package/dist/namespaces/Object.js +337 -337
  103. package/dist/namespaces/Pad.d.ts +95 -95
  104. package/dist/namespaces/Pad.d.ts.map +1 -1
  105. package/dist/namespaces/Pad.js +127 -127
  106. package/dist/namespaces/PedStatics.d.ts +18 -18
  107. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  108. package/dist/namespaces/PedStatics.js +26 -26
  109. package/dist/namespaces/Perschar.d.ts +46 -46
  110. package/dist/namespaces/Perschar.d.ts.map +1 -1
  111. package/dist/namespaces/Perschar.js +66 -66
  112. package/dist/namespaces/Physics.d.ts +207 -207
  113. package/dist/namespaces/Physics.d.ts.map +1 -1
  114. package/dist/namespaces/Physics.js +315 -315
  115. package/dist/namespaces/PlayerStatics.d.ts +68 -68
  116. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  117. package/dist/namespaces/PlayerStatics.js +95 -95
  118. package/dist/namespaces/Population.d.ts +86 -86
  119. package/dist/namespaces/Population.d.ts.map +1 -1
  120. package/dist/namespaces/Population.js +116 -116
  121. package/dist/namespaces/Posse.d.ts +43 -43
  122. package/dist/namespaces/Posse.d.ts.map +1 -1
  123. package/dist/namespaces/Posse.js +67 -67
  124. package/dist/namespaces/Propset.d.ts +59 -59
  125. package/dist/namespaces/Propset.d.ts.map +1 -1
  126. package/dist/namespaces/Propset.js +81 -81
  127. package/dist/namespaces/Shapetest.d.ts +11 -11
  128. package/dist/namespaces/Shapetest.d.ts.map +1 -1
  129. package/dist/namespaces/Shapetest.js +13 -13
  130. package/dist/namespaces/Stats.d.ts +90 -90
  131. package/dist/namespaces/Stats.d.ts.map +1 -1
  132. package/dist/namespaces/Stats.js +127 -127
  133. package/dist/namespaces/Streaming.d.ts +127 -127
  134. package/dist/namespaces/Streaming.d.ts.map +1 -1
  135. package/dist/namespaces/Streaming.js +193 -193
  136. package/dist/namespaces/Task.d.ts +346 -346
  137. package/dist/namespaces/Task.d.ts.map +1 -1
  138. package/dist/namespaces/Task.js +525 -525
  139. package/dist/namespaces/Telemetry.d.ts +176 -176
  140. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  141. package/dist/namespaces/Telemetry.js +255 -255
  142. package/dist/namespaces/VolumeStatics.d.ts +64 -64
  143. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  144. package/dist/namespaces/VolumeStatics.js +85 -85
  145. package/dist/namespaces/Water.d.ts +27 -27
  146. package/dist/namespaces/Water.d.ts.map +1 -1
  147. package/dist/namespaces/Water.js +41 -41
  148. package/dist/namespaces/WeaponStatics.d.ts +234 -234
  149. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  150. package/dist/namespaces/WeaponStatics.js +320 -320
  151. package/dist/namespaces/Zone.d.ts +7 -7
  152. package/dist/namespaces/Zone.d.ts.map +1 -1
  153. package/dist/namespaces/Zone.js +9 -9
  154. package/package.json +1 -1
  155. package/src/classes/AnimScene.ts +133 -133
  156. package/src/classes/BaseModel.ts +50 -50
  157. package/src/classes/BaseTask.ts +55 -55
  158. package/src/classes/Cam.ts +126 -126
  159. package/src/classes/Entity.ts +365 -365
  160. package/src/classes/Interior.ts +43 -43
  161. package/src/classes/Ped.ts +86 -86
  162. package/src/classes/PedTask.ts +2067 -2067
  163. package/src/classes/PersChar.ts +34 -34
  164. package/src/classes/Pickup.ts +16 -16
  165. package/src/classes/Player.ts +296 -296
  166. package/src/classes/Prop.ts +203 -203
  167. package/src/classes/PropSet.ts +29 -29
  168. package/src/classes/VehicleTask.ts +32 -32
  169. package/src/classes/Volume.ts +61 -61
  170. package/src/classes/Weapon.ts +427 -427
  171. package/src/namespaces/Animscene.ts +86 -86
  172. package/src/namespaces/Audio.ts +760 -760
  173. package/src/namespaces/Bounty.ts +102 -102
  174. package/src/namespaces/CamStatics.ts +631 -631
  175. package/src/namespaces/Collection.ts +114 -114
  176. package/src/namespaces/Compendium.ts +59 -59
  177. package/src/namespaces/Crashlog.ts +16 -16
  178. package/src/namespaces/Databinding.ts +282 -282
  179. package/src/namespaces/EntityStatics.ts +158 -158
  180. package/src/namespaces/Graphics.ts +1140 -1140
  181. package/src/namespaces/Hud.ts +592 -592
  182. package/src/namespaces/InteriorStatics.ts +64 -64
  183. package/src/namespaces/Inventory.ts +165 -165
  184. package/src/namespaces/Itemdatabase.ts +8 -8
  185. package/src/namespaces/Map.ts +256 -256
  186. package/src/namespaces/Minigame.ts +92 -92
  187. package/src/namespaces/Network.ts +1392 -1392
  188. package/src/namespaces/Object.ts +350 -350
  189. package/src/namespaces/Pad.ts +127 -127
  190. package/src/namespaces/PedStatics.ts +30 -30
  191. package/src/namespaces/Perschar.ts +76 -76
  192. package/src/namespaces/Physics.ts +327 -327
  193. package/src/namespaces/PlayerStatics.ts +103 -103
  194. package/src/namespaces/Population.ts +131 -131
  195. package/src/namespaces/Posse.ts +67 -67
  196. package/src/namespaces/Propset.ts +92 -92
  197. package/src/namespaces/Shapetest.ts +14 -14
  198. package/src/namespaces/Stats.ts +143 -143
  199. package/src/namespaces/Streaming.ts +226 -226
  200. package/src/namespaces/Task.ts +498 -498
  201. package/src/namespaces/Telemetry.ts +261 -261
  202. package/src/namespaces/VolumeStatics.ts +87 -87
  203. package/src/namespaces/Water.ts +47 -47
  204. package/src/namespaces/WeaponStatics.ts +325 -325
  205. package/src/namespaces/Zone.ts +10 -10
@@ -15,42 +15,57 @@ export class BaseTask {
15
15
  }
16
16
 
17
17
  /**
18
- * @returns args
18
+ * Returns m_eContainerState
19
+ *
20
+ * @returns
19
21
  */
20
- playEntityScriptedAnim(): number {
21
- const result = inv<number>('0x77A1EEC547E7FCF1', this.entity.handle, pvi());
22
- return result;
22
+ getScenarioContainerOpeningState(): any {
23
+ return inv<number>('0xB219612B5568E9EC', this.entity.handle);
23
24
  }
24
25
 
25
26
  /**
26
- * carriableSlot:
27
- * 7 > Back of a horse
28
- * 6 > Right side of a horse
29
- * 5 > Left side of a horse
30
- * flags:
31
- * 512: enables the prompt being the name of the item when using a generic item
27
+ * Returns scenario
32
28
  *
33
- * @param carryConfig
34
- * @param carrier
35
- * @param carriableSlot
36
- * @param flags
29
+ * @param scenarioHash
30
+ * @param pos
31
+ * @param heading
32
+ * @param p6
33
+ * @param p7
34
+ * @param p8
35
+ * @returns
37
36
  */
38
- carriable(carryConfig: string | number, carrier: Ped, carriableSlot: number, flags: number): void {
39
- inv<void>('0xF0B4F759F35CC7F5', this.entity.handle, _h(carryConfig), carrier.handle, carriableSlot, flags);
37
+ createScenarioPointHashAttachedToEntity(scenarioHash: string | number, pos: Vector3, heading: number, p6: any, p7: any, p8: boolean): number {
38
+ return inv<number>('0x794AB1379A74064D', this.entity.handle, _h(scenarioHash), f(pos.x), f(pos.y), f(pos.z), f(heading), p6, p7, p8, rai());
40
39
  }
41
40
 
42
41
  /**
43
- * @param p1
42
+ * @returns
44
43
  */
45
- N_0xF3C3503276F4A034(p1: any): void {
46
- inv<void>('0xF3C3503276F4A034', this.entity.handle, p1);
44
+ getIsCarriableEntity(): any {
45
+ return inv<number>('0x0CCFE72B43C9CF96', this.entity.handle);
47
46
  }
48
47
 
49
48
  /**
49
+ * Returns the entity coverpoint with offset.
50
+ *
51
+ * @param offset
52
+ * @param heading
53
+ * @param p5
54
+ * @param p6
55
+ * @param p7
56
+ * @param p8
50
57
  * @returns
51
58
  */
52
- getIsCarriableEntity(): any {
53
- return inv<number>('0x0CCFE72B43C9CF96', this.entity.handle);
59
+ getCoverpointFromEntityWithOffset(offset: Vector3, heading: number, p5: number, p6: number, p7: number, p8: number): any {
60
+ return inv<number>('0x59872EA4CBD11C56', this.entity.handle, f(offset.x), f(offset.y), f(offset.z), f(heading), p5, p6, p7, p8);
61
+ }
62
+
63
+ /**
64
+ * @returns args
65
+ */
66
+ playEntityScriptedAnim(): number {
67
+ const result = inv<number>('0x77A1EEC547E7FCF1', this.entity.handle, pvi());
68
+ return result;
54
69
  }
55
70
 
56
71
  /**
@@ -67,6 +82,13 @@ export class BaseTask {
67
82
  return inv<number>('0x640A602946A8C972', this.entity.handle, rai());
68
83
  }
69
84
 
85
+ /**
86
+ * @param p1
87
+ */
88
+ N_0xF3C3503276F4A034(p1: any): void {
89
+ inv<void>('0xF3C3503276F4A034', this.entity.handle, p1);
90
+ }
91
+
70
92
  /**
71
93
  * @param targetEntity
72
94
  * @param duration
@@ -113,42 +135,20 @@ export class BaseTask {
113
135
  }
114
136
 
115
137
  /**
116
- * Returns m_eContainerState
117
- *
118
- * @returns
119
- */
120
- getScenarioContainerOpeningState(): any {
121
- return inv<number>('0xB219612B5568E9EC', this.entity.handle);
122
- }
123
-
124
- /**
125
- * Returns scenario
126
- *
127
- * @param scenarioHash
128
- * @param pos
129
- * @param heading
130
- * @param p6
131
- * @param p7
132
- * @param p8
133
- * @returns
134
- */
135
- createScenarioPointHashAttachedToEntity(scenarioHash: string | number, pos: Vector3, heading: number, p6: any, p7: any, p8: boolean): number {
136
- return inv<number>('0x794AB1379A74064D', this.entity.handle, _h(scenarioHash), f(pos.x), f(pos.y), f(pos.z), f(heading), p6, p7, p8, rai());
137
- }
138
-
139
- /**
140
- * Returns the entity coverpoint with offset.
138
+ * carriableSlot:
139
+ * 7 > Back of a horse
140
+ * 6 > Right side of a horse
141
+ * 5 > Left side of a horse
142
+ * flags:
143
+ * 512: enables the prompt being the name of the item when using a generic item
141
144
  *
142
- * @param offset
143
- * @param heading
144
- * @param p5
145
- * @param p6
146
- * @param p7
147
- * @param p8
148
- * @returns
145
+ * @param carryConfig
146
+ * @param carrier
147
+ * @param carriableSlot
148
+ * @param flags
149
149
  */
150
- getCoverpointFromEntityWithOffset(offset: Vector3, heading: number, p5: number, p6: number, p7: number, p8: number): any {
151
- return inv<number>('0x59872EA4CBD11C56', this.entity.handle, f(offset.x), f(offset.y), f(offset.z), f(heading), p5, p6, p7, p8);
150
+ carriable(carryConfig: string | number, carrier: Ped, carriableSlot: number, flags: number): void {
151
+ inv<void>('0xF0B4F759F35CC7F5', this.entity.handle, _h(carryConfig), carrier.handle, carriableSlot, flags);
152
152
  }
153
153
 
154
154
  }
@@ -48,6 +48,33 @@ export class Cam implements IHandle {
48
48
  inv<void>('0x42ED56B02E05D109', this.handle, p1);
49
49
  }
50
50
 
51
+ /**
52
+ * @param rotationOrder Refer to [enum: eEulerRotationOrder]
53
+ * @returns
54
+ */
55
+ getRot(rotationOrder: eEulerRotationOrder): Vector3 {
56
+ return Vector3.fromArray(inv<number[]>('0x9BF96B57254E7889', this.handle, rotationOrder, rav()));
57
+ }
58
+
59
+ /**
60
+ * Allows you to aim and shoot at the direction the camera is facing.
61
+ *
62
+ * @param toggle
63
+ */
64
+ setAffectsAiming(toggle: boolean): void {
65
+ inv<void>('0x3CB9E8BDE5E76F33', this.handle, toggle);
66
+ }
67
+
68
+ /**
69
+ * Set cam DOF and focal settings. TODO: Support structs
70
+ *
71
+ * @returns p
72
+ */
73
+ setDofParams(): number {
74
+ const result = inv<number>('0xE4B7945EF4F1BFB2', this.handle, pvi());
75
+ return result;
76
+ }
77
+
51
78
  /**
52
79
  * Sets the field of view of the cam. Min: 1.0f
53
80
  * Max: 130.0f
@@ -62,13 +89,6 @@ export class Cam implements IHandle {
62
89
  inv<void>('0xCA1B30A3357C71F1', this.handle);
63
90
  }
64
91
 
65
- /**
66
- * @param p1
67
- */
68
- setSplinePhase(p1: number): void {
69
- inv<void>('0xF1898A68E7C15636', this.handle, f(p1));
70
- }
71
-
72
92
  /**
73
93
  * @param distance
74
94
  */
@@ -100,101 +120,153 @@ export class Cam implements IHandle {
100
120
  }
101
121
 
102
122
  /**
103
- * @param strength
123
+ * @param p1
104
124
  */
105
- setMotionBlurStrength(strength: number): void {
106
- inv<void>('0x45FD891364181F9E', this.handle, f(strength));
125
+ setControlsMiniMapHeading(p1: boolean): void {
126
+ inv<void>('0x1B8F3CE5A6001298', this.handle, p1);
107
127
  }
108
128
 
109
129
  /**
110
- * @param animName
111
- * @param animDictionary
112
- * @param pos
113
- * @param rot
114
- * @param animFlags
115
- * @param rotOrder
130
+ * Can use this with SET_CAM_SPLINE_PHASE to set the float it this native returns. (returns 1.0f when no nodes has been added, reached end of non existing spline)
131
+ *
116
132
  * @returns
117
133
  */
118
- playAnim(animName: string | null, animDictionary: string | null, pos: Vector3, rot: Vector3, animFlags: number, rotOrder: number): boolean {
119
- return inv<boolean>('0xA263DDF694D563F6', this.handle, animName, animDictionary, f(pos.x), f(pos.y), f(pos.z), f(rot.x), f(rot.y), f(rot.z), animFlags, rotOrder, rai());
134
+ getSplinePhase(): number {
135
+ return inv<number>('0x095EDCD24D90033A', this.handle, raf());
120
136
  }
121
137
 
122
138
  /**
123
- * Returns whether or not the passed camera handle exists.
124
- *
125
139
  * @returns
126
140
  */
127
- doesExist(): boolean {
128
- return inv<boolean>('0x153AD457764FD704', this.handle, rai());
141
+ isShaking(): boolean {
142
+ return inv<boolean>('0x2EEB402BD7320159', this.handle, rai());
129
143
  }
130
144
 
131
145
  /**
132
- * p7 (length) determines the length of the spline, affects camera path and duration of transition between previous node and this one p8 big values ~100 will slow down the camera movement before reaching this node p9 != 0 seems to override the rotation/pitch (bool?)
146
+ * @returns
147
+ */
148
+ getFov(): number {
149
+ return inv<number>('0x8101D32A0A6B0F60', this.handle, raf());
150
+ }
151
+
152
+ /**
153
+ * @param type
154
+ * @param amplitude
155
+ */
156
+ shakeCam(type: string | null, amplitude: number): void {
157
+ inv<void>('0xF9A7BCF5D050D4E7', this.handle, type, f(amplitude));
158
+ }
159
+
160
+ /**
161
+ * @returns
162
+ */
163
+ isInterpolating(): boolean {
164
+ return inv<boolean>('0x578F8F1CAA17BD2B', this.handle, rai());
165
+ }
166
+
167
+ /**
168
+ * Set camera as active/inactive.
133
169
  *
170
+ * @param active
171
+ */
172
+ setActive(active: boolean): void {
173
+ inv<void>('0x87295BCA613800C8', this.handle, active);
174
+ }
175
+
176
+ /**
134
177
  * @param pos
135
178
  * @param rot
136
- * @param length
179
+ * @param fieldOfView
137
180
  * @param p8
138
181
  * @param p9
182
+ * @param p10
183
+ * @param p11
184
+ * @param p12
185
+ * @param p13
139
186
  */
140
- addSplineNode(pos: Vector3, rot: Vector3, length: number, p8: number, p9: number): void {
141
- inv<void>('0xF1F57F9D230F9CD1', this.handle, f(pos.x), f(pos.y), f(pos.z), f(rot.x), f(rot.y), f(rot.z), length, p8, p9);
187
+ setParams(pos: Vector3, rot: Vector3, fieldOfView: number, p8: any, p9: number, p10: number, p11: number, p12: any, p13: any): void {
188
+ inv<void>('0xA47BBFFFB83D4D0A', this.handle, f(pos.x), f(pos.y), f(pos.z), f(rot.x), f(rot.y), f(rot.z), f(fieldOfView), p8, p9, p10, p11, p12, p13);
142
189
  }
143
190
 
144
191
  /**
145
- * Last param determines if its relative to the Entity
192
+ * Sets the rotation of the cam.
146
193
  *
147
- * @param entity
148
- * @param offset
149
- * @param isRelative
194
+ * @param rot
195
+ * @param rotationOrder
150
196
  */
151
- attachToEntity(entity: Entity, offset: Vector3, isRelative: boolean): void {
152
- inv<void>('0xFDC0DF7F6FB0A592', this.handle, entity.handle, f(offset.x), f(offset.y), f(offset.z), isRelative);
197
+ setRot(rot: Vector3, rotationOrder: number): void {
198
+ inv<void>('0x63DFA6810AD78719', this.handle, f(rot.x), f(rot.y), f(rot.z), rotationOrder);
153
199
  }
154
200
 
155
201
  /**
156
- * @param p1
202
+ * @returns
157
203
  */
158
- setControlsMiniMapHeading(p1: boolean): void {
159
- inv<void>('0x1B8F3CE5A6001298', this.handle, p1);
204
+ getCoord(): Vector3 {
205
+ return Vector3.fromArray(inv<number[]>('0x6B12F11C2A9F0344', this.handle, rav()));
206
+ }
207
+
208
+ detachCam(): void {
209
+ inv<void>('0x05B41DDBEB559556', this.handle);
160
210
  }
161
211
 
162
212
  /**
163
- * Can use this with SET_CAM_SPLINE_PHASE to set the float it this native returns. (returns 1.0f when no nodes has been added, reached end of non existing spline)
164
- *
165
- * @returns
213
+ * @param timeDuration
166
214
  */
167
- getSplinePhase(): number {
168
- return inv<number>('0x095EDCD24D90033A', this.handle, raf());
215
+ setSplineDuration(timeDuration: number): void {
216
+ inv<void>('0xFF6311652CA91015', this.handle, timeDuration);
217
+ }
218
+
219
+ /**
220
+ * @param p1
221
+ */
222
+ setSplinePhase(p1: number): void {
223
+ inv<void>('0xF1898A68E7C15636', this.handle, f(p1));
169
224
  }
170
225
 
171
226
  /**
227
+ * @param animName
228
+ * @param animDictionary
229
+ * @param pos
230
+ * @param rot
231
+ * @param animFlags
232
+ * @param rotOrder
172
233
  * @returns
173
234
  */
174
- isShaking(): boolean {
175
- return inv<boolean>('0x2EEB402BD7320159', this.handle, rai());
235
+ playAnim(animName: string | null, animDictionary: string | null, pos: Vector3, rot: Vector3, animFlags: number, rotOrder: number): boolean {
236
+ return inv<boolean>('0xA263DDF694D563F6', this.handle, animName, animDictionary, f(pos.x), f(pos.y), f(pos.z), f(rot.x), f(rot.y), f(rot.z), animFlags, rotOrder, rai());
176
237
  }
177
238
 
178
239
  /**
240
+ * Returns whether or not the passed camera handle exists.
241
+ *
179
242
  * @returns
180
243
  */
181
- getFov(): number {
182
- return inv<number>('0x8101D32A0A6B0F60', this.handle, raf());
244
+ doesExist(): boolean {
245
+ return inv<boolean>('0x153AD457764FD704', this.handle, rai());
183
246
  }
184
247
 
185
248
  /**
186
- * @param type
187
- * @param amplitude
249
+ * p7 (length) determines the length of the spline, affects camera path and duration of transition between previous node and this one p8 big values ~100 will slow down the camera movement before reaching this node p9 != 0 seems to override the rotation/pitch (bool?)
250
+ *
251
+ * @param pos
252
+ * @param rot
253
+ * @param length
254
+ * @param p8
255
+ * @param p9
188
256
  */
189
- shakeCam(type: string | null, amplitude: number): void {
190
- inv<void>('0xF9A7BCF5D050D4E7', this.handle, type, f(amplitude));
257
+ addSplineNode(pos: Vector3, rot: Vector3, length: number, p8: number, p9: number): void {
258
+ inv<void>('0xF1F57F9D230F9CD1', this.handle, f(pos.x), f(pos.y), f(pos.z), f(rot.x), f(rot.y), f(rot.z), length, p8, p9);
191
259
  }
192
260
 
193
261
  /**
194
- * @returns
262
+ * Last param determines if its relative to the Entity
263
+ *
264
+ * @param entity
265
+ * @param offset
266
+ * @param isRelative
195
267
  */
196
- isInterpolating(): boolean {
197
- return inv<boolean>('0x578F8F1CAA17BD2B', this.handle, rai());
268
+ attachToEntity(entity: Entity, offset: Vector3, isRelative: boolean): void {
269
+ inv<void>('0xFDC0DF7F6FB0A592', this.handle, entity.handle, f(offset.x), f(offset.y), f(offset.z), isRelative);
198
270
  }
199
271
 
200
272
  /**
@@ -236,40 +308,6 @@ export class Cam implements IHandle {
236
308
  inv<void>('0x9F97E85EC142255E', this.handle, pause);
237
309
  }
238
310
 
239
- /**
240
- * Set camera as active/inactive.
241
- *
242
- * @param active
243
- */
244
- setActive(active: boolean): void {
245
- inv<void>('0x87295BCA613800C8', this.handle, active);
246
- }
247
-
248
- /**
249
- * @param pos
250
- * @param rot
251
- * @param fieldOfView
252
- * @param p8
253
- * @param p9
254
- * @param p10
255
- * @param p11
256
- * @param p12
257
- * @param p13
258
- */
259
- setParams(pos: Vector3, rot: Vector3, fieldOfView: number, p8: any, p9: number, p10: number, p11: number, p12: any, p13: any): void {
260
- inv<void>('0xA47BBFFFB83D4D0A', this.handle, f(pos.x), f(pos.y), f(pos.z), f(rot.x), f(rot.y), f(rot.z), f(fieldOfView), p8, p9, p10, p11, p12, p13);
261
- }
262
-
263
- /**
264
- * Sets the rotation of the cam.
265
- *
266
- * @param rot
267
- * @param rotationOrder
268
- */
269
- setRot(rot: Vector3, rotationOrder: number): void {
270
- inv<void>('0x63DFA6810AD78719', this.handle, f(rot.x), f(rot.y), f(rot.z), rotationOrder);
271
- }
272
-
273
311
  /**
274
312
  * boneIndex: https://github.com/femga/rdr3_discoveries/tree/master/boneNames
275
313
  *
@@ -293,48 +331,10 @@ export class Cam implements IHandle {
293
331
  }
294
332
 
295
333
  /**
296
- * @returns
297
- */
298
- getCoord(): Vector3 {
299
- return Vector3.fromArray(inv<number[]>('0x6B12F11C2A9F0344', this.handle, rav()));
300
- }
301
-
302
- detachCam(): void {
303
- inv<void>('0x05B41DDBEB559556', this.handle);
304
- }
305
-
306
- /**
307
- * @param timeDuration
308
- */
309
- setSplineDuration(timeDuration: number): void {
310
- inv<void>('0xFF6311652CA91015', this.handle, timeDuration);
311
- }
312
-
313
- /**
314
- * @param rotationOrder Refer to [enum: eEulerRotationOrder]
315
- * @returns
316
- */
317
- getRot(rotationOrder: eEulerRotationOrder): Vector3 {
318
- return Vector3.fromArray(inv<number[]>('0x9BF96B57254E7889', this.handle, rotationOrder, rav()));
319
- }
320
-
321
- /**
322
- * Allows you to aim and shoot at the direction the camera is facing.
323
- *
324
- * @param toggle
325
- */
326
- setAffectsAiming(toggle: boolean): void {
327
- inv<void>('0x3CB9E8BDE5E76F33', this.handle, toggle);
328
- }
329
-
330
- /**
331
- * Set cam DOF and focal settings. TODO: Support structs
332
- *
333
- * @returns p
334
+ * @param strength
334
335
  */
335
- setDofParams(): number {
336
- const result = inv<number>('0xE4B7945EF4F1BFB2', this.handle, pvi());
337
- return result;
336
+ setMotionBlurStrength(strength: number): void {
337
+ inv<void>('0x45FD891364181F9E', this.handle, f(strength));
338
338
  }
339
339
 
340
340
  }