@nativewrappers/redm-codegen 0.0.4 → 0.0.5
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.
- package/dist/classes/AnimScene.d.ts +96 -96
- package/dist/classes/AnimScene.d.ts.map +1 -1
- package/dist/classes/AnimScene.js +137 -137
- package/dist/classes/BaseModel.d.ts +19 -19
- package/dist/classes/BaseModel.d.ts.map +1 -1
- package/dist/classes/BaseModel.js +33 -33
- package/dist/classes/BaseTask.d.ts +33 -33
- package/dist/classes/BaseTask.d.ts.map +1 -1
- package/dist/classes/BaseTask.js +40 -40
- package/dist/classes/Cam.d.ts +85 -85
- package/dist/classes/Cam.d.ts.map +1 -1
- package/dist/classes/Cam.js +108 -108
- package/dist/classes/Entity.d.ts +288 -283
- package/dist/classes/Entity.d.ts.map +1 -1
- package/dist/classes/Entity.js +410 -401
- package/dist/classes/Interior.d.ts +27 -27
- package/dist/classes/Interior.d.ts.map +1 -1
- package/dist/classes/Interior.js +42 -42
- package/dist/classes/ItemSet.d.ts +2 -2
- package/dist/classes/ItemSet.d.ts.map +1 -1
- package/dist/classes/ItemSet.js +3 -3
- package/dist/classes/Ped.d.ts +286 -286
- package/dist/classes/Ped.d.ts.map +1 -1
- package/dist/classes/Ped.js +425 -425
- package/dist/classes/PedModel.d.ts +1 -1
- package/dist/classes/PedModel.d.ts.map +1 -1
- package/dist/classes/PedModel.js +2 -2
- package/dist/classes/PedTask.d.ts +729 -729
- package/dist/classes/PedTask.d.ts.map +1 -1
- package/dist/classes/PedTask.js +935 -935
- package/dist/classes/PersChar.d.ts +13 -13
- package/dist/classes/PersChar.d.ts.map +1 -1
- package/dist/classes/PersChar.js +19 -19
- package/dist/classes/Pickup.d.ts +6 -6
- package/dist/classes/Pickup.d.ts.map +1 -1
- package/dist/classes/Pickup.js +13 -13
- package/dist/classes/Player.d.ts +343 -339
- package/dist/classes/Player.d.ts.map +1 -1
- package/dist/classes/Player.js +495 -489
- package/dist/classes/Prop.d.ts +64 -64
- package/dist/classes/Prop.d.ts.map +1 -1
- package/dist/classes/Prop.js +94 -94
- package/dist/classes/PropSet.d.ts +18 -18
- package/dist/classes/PropSet.d.ts.map +1 -1
- package/dist/classes/PropSet.js +27 -27
- package/dist/classes/Vehicle.d.ts +122 -122
- package/dist/classes/Vehicle.d.ts.map +1 -1
- package/dist/classes/Vehicle.js +147 -147
- package/dist/classes/VehicleModel.d.ts +1 -1
- package/dist/classes/VehicleModel.d.ts.map +1 -1
- package/dist/classes/VehicleModel.js +2 -2
- package/dist/classes/VehicleTask.d.ts +24 -24
- package/dist/classes/VehicleTask.d.ts.map +1 -1
- package/dist/classes/VehicleTask.js +30 -30
- package/dist/classes/Volume.d.ts +44 -44
- package/dist/classes/Volume.d.ts.map +1 -1
- package/dist/classes/Volume.js +58 -58
- package/dist/classes/Weapon.d.ts +351 -351
- package/dist/classes/Weapon.d.ts.map +1 -1
- package/dist/classes/Weapon.js +486 -486
- package/dist/namespaces/Aicoverpoint.d.ts +23 -23
- package/dist/namespaces/Aicoverpoint.d.ts.map +1 -1
- package/dist/namespaces/Aicoverpoint.js +35 -35
- package/dist/namespaces/Aitransport.d.ts +78 -78
- package/dist/namespaces/Aitransport.d.ts.map +1 -1
- package/dist/namespaces/Aitransport.js +95 -95
- package/dist/namespaces/Animscene.d.ts +48 -48
- package/dist/namespaces/Animscene.d.ts.map +1 -1
- package/dist/namespaces/Animscene.js +65 -65
- package/dist/namespaces/Audio.d.ts +476 -476
- package/dist/namespaces/Audio.d.ts.map +1 -1
- package/dist/namespaces/Audio.js +692 -692
- package/dist/namespaces/Bounty.d.ts +57 -57
- package/dist/namespaces/Bounty.d.ts.map +1 -1
- package/dist/namespaces/Bounty.js +90 -90
- package/dist/namespaces/CamStatics.d.ts +432 -432
- package/dist/namespaces/CamStatics.d.ts.map +1 -1
- package/dist/namespaces/CamStatics.js +606 -606
- package/dist/namespaces/Collection.d.ts +78 -78
- package/dist/namespaces/Collection.d.ts.map +1 -1
- package/dist/namespaces/Collection.js +111 -111
- package/dist/namespaces/Companion.d.ts +22 -22
- package/dist/namespaces/Companion.d.ts.map +1 -1
- package/dist/namespaces/Companion.js +30 -30
- package/dist/namespaces/Compapp.js +1 -1
- package/dist/namespaces/Compendium.d.ts +58 -58
- package/dist/namespaces/Compendium.d.ts.map +1 -1
- package/dist/namespaces/Compendium.js +83 -83
- package/dist/namespaces/Crashlog.d.ts +10 -10
- package/dist/namespaces/Crashlog.d.ts.map +1 -1
- package/dist/namespaces/Crashlog.js +21 -21
- package/dist/namespaces/Crew.js +4 -4
- package/dist/namespaces/Databinding.d.ts +154 -154
- package/dist/namespaces/Databinding.d.ts.map +1 -1
- package/dist/namespaces/Databinding.js +222 -222
- package/dist/namespaces/Datafile.js +4 -4
- package/dist/namespaces/Decorator.d.ts +19 -19
- package/dist/namespaces/Decorator.d.ts.map +1 -1
- package/dist/namespaces/Decorator.js +34 -34
- package/dist/namespaces/Dlc.d.ts +5 -5
- package/dist/namespaces/Dlc.d.ts.map +1 -1
- package/dist/namespaces/Dlc.js +9 -9
- package/dist/namespaces/EntityStatics.d.ts +80 -80
- package/dist/namespaces/EntityStatics.d.ts.map +1 -1
- package/dist/namespaces/EntityStatics.js +113 -113
- package/dist/namespaces/Event.js +4 -4
- package/dist/namespaces/Fire.d.ts +89 -89
- package/dist/namespaces/Fire.d.ts.map +1 -1
- package/dist/namespaces/Fire.js +115 -115
- package/dist/namespaces/Flock.js +2 -2
- package/dist/namespaces/Gang.js +2 -2
- package/dist/namespaces/GoogleAnalytics.js +2 -2
- package/dist/namespaces/Graphics.d.ts +781 -781
- package/dist/namespaces/Graphics.d.ts.map +1 -1
- package/dist/namespaces/Graphics.js +1207 -1207
- package/dist/namespaces/Hud.d.ts +483 -483
- package/dist/namespaces/Hud.d.ts.map +1 -1
- package/dist/namespaces/Hud.js +678 -678
- package/dist/namespaces/Ik.js +1 -1
- package/dist/namespaces/Interaction.js +3 -3
- package/dist/namespaces/InteriorStatics.d.ts +40 -40
- package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
- package/dist/namespaces/InteriorStatics.js +57 -57
- package/dist/namespaces/Inventory.d.ts +211 -211
- package/dist/namespaces/Inventory.d.ts.map +1 -1
- package/dist/namespaces/Inventory.js +291 -291
- package/dist/namespaces/Itemdatabase.js +3 -3
- package/dist/namespaces/Itemset.js +2 -2
- package/dist/namespaces/Law.d.ts +1 -1
- package/dist/namespaces/Law.d.ts.map +1 -1
- package/dist/namespaces/Law.js +19 -19
- package/dist/namespaces/Localization.js +1 -1
- package/dist/namespaces/Map.js +3 -3
- package/dist/namespaces/Minigame.d.ts +65 -65
- package/dist/namespaces/Minigame.d.ts.map +1 -1
- package/dist/namespaces/Minigame.js +105 -105
- package/dist/namespaces/Misc.d.ts +3 -3
- package/dist/namespaces/Misc.d.ts.map +1 -1
- package/dist/namespaces/Misc.js +35 -35
- package/dist/namespaces/Missiondata.d.ts +15 -15
- package/dist/namespaces/Missiondata.d.ts.map +1 -1
- package/dist/namespaces/Missiondata.js +24 -24
- package/dist/namespaces/Money.js +3 -3
- package/dist/namespaces/Netshopping.d.ts +58 -58
- package/dist/namespaces/Netshopping.d.ts.map +1 -1
- package/dist/namespaces/Netshopping.js +89 -89
- package/dist/namespaces/Network.d.ts +1067 -1067
- package/dist/namespaces/Network.d.ts.map +1 -1
- package/dist/namespaces/Network.js +1586 -1586
- package/dist/namespaces/Object.d.ts +231 -231
- package/dist/namespaces/Object.d.ts.map +1 -1
- package/dist/namespaces/Object.js +337 -337
- package/dist/namespaces/Pad.d.ts +42 -42
- package/dist/namespaces/Pad.d.ts.map +1 -1
- package/dist/namespaces/Pad.js +68 -68
- package/dist/namespaces/Pathfind.js +10 -10
- package/dist/namespaces/PedStatics.d.ts +2 -2
- package/dist/namespaces/PedStatics.d.ts.map +1 -1
- package/dist/namespaces/PedStatics.js +10 -10
- package/dist/namespaces/Perschar.d.ts +54 -54
- package/dist/namespaces/Perschar.d.ts.map +1 -1
- package/dist/namespaces/Perschar.js +84 -84
- package/dist/namespaces/Physics.d.ts +121 -121
- package/dist/namespaces/Physics.d.ts.map +1 -1
- package/dist/namespaces/Physics.js +155 -155
- package/dist/namespaces/PlayerStatics.d.ts +97 -97
- package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
- package/dist/namespaces/PlayerStatics.js +142 -142
- package/dist/namespaces/Population.d.ts +11 -11
- package/dist/namespaces/Population.d.ts.map +1 -1
- package/dist/namespaces/Population.js +15 -15
- package/dist/namespaces/Posse.d.ts +33 -33
- package/dist/namespaces/Posse.d.ts.map +1 -1
- package/dist/namespaces/Posse.js +51 -51
- package/dist/namespaces/Propset.d.ts +59 -59
- package/dist/namespaces/Propset.d.ts.map +1 -1
- package/dist/namespaces/Propset.js +81 -81
- package/dist/namespaces/Replay.d.ts +1 -1
- package/dist/namespaces/Replay.d.ts.map +1 -1
- package/dist/namespaces/Replay.js +2 -2
- package/dist/namespaces/Scripts.d.ts +1 -1
- package/dist/namespaces/Scripts.d.ts.map +1 -1
- package/dist/namespaces/Scripts.js +12 -12
- package/dist/namespaces/Shapetest.d.ts +11 -11
- package/dist/namespaces/Shapetest.d.ts.map +1 -1
- package/dist/namespaces/Shapetest.js +13 -13
- package/dist/namespaces/Socialclub.js +8 -8
- package/dist/namespaces/Socialclubfeed.js +1 -1
- package/dist/namespaces/Spactionproxy.js +4 -4
- package/dist/namespaces/Stats.d.ts +191 -191
- package/dist/namespaces/Stats.d.ts.map +1 -1
- package/dist/namespaces/Stats.js +281 -281
- package/dist/namespaces/Streaming.d.ts +84 -84
- package/dist/namespaces/Streaming.d.ts.map +1 -1
- package/dist/namespaces/Streaming.js +137 -137
- package/dist/namespaces/Task.d.ts +347 -347
- package/dist/namespaces/Task.d.ts.map +1 -1
- package/dist/namespaces/Task.js +488 -488
- package/dist/namespaces/Telemetry.d.ts +151 -151
- package/dist/namespaces/Telemetry.d.ts.map +1 -1
- package/dist/namespaces/Telemetry.js +206 -206
- package/dist/namespaces/Txd.js +1 -1
- package/dist/namespaces/Uiapps.d.ts +25 -25
- package/dist/namespaces/Uiapps.d.ts.map +1 -1
- package/dist/namespaces/Uiapps.js +36 -36
- package/dist/namespaces/Uievents.js +1 -1
- package/dist/namespaces/Uifeed.d.ts +15 -15
- package/dist/namespaces/Uifeed.d.ts.map +1 -1
- package/dist/namespaces/Uifeed.js +25 -25
- package/dist/namespaces/Uistickyfeed.d.ts +16 -16
- package/dist/namespaces/Uistickyfeed.d.ts.map +1 -1
- package/dist/namespaces/Uistickyfeed.js +21 -21
- package/dist/namespaces/Unlock.js +5 -5
- package/dist/namespaces/VehicleStatics.js +12 -12
- package/dist/namespaces/Voice.d.ts +38 -38
- package/dist/namespaces/Voice.d.ts.map +1 -1
- package/dist/namespaces/Voice.js +61 -61
- package/dist/namespaces/VolumeStatics.d.ts +99 -99
- package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
- package/dist/namespaces/VolumeStatics.js +137 -137
- package/dist/namespaces/WeaponStatics.d.ts +276 -276
- package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
- package/dist/namespaces/WeaponStatics.js +371 -371
- package/dist/types/NativeAliases.d.ts +3 -1
- package/dist/types/NativeAliases.d.ts.map +1 -1
- package/dist/types/NativeAliases.js +3 -1
- package/package.json +1 -1
- package/src/classes/AnimScene.ts +159 -159
- package/src/classes/BaseModel.ts +37 -37
- package/src/classes/BaseTask.ts +41 -41
- package/src/classes/Cam.ts +111 -111
- package/src/classes/Entity.ts +422 -411
- package/src/classes/Interior.ts +43 -43
- package/src/classes/ItemSet.ts +3 -3
- package/src/classes/Ped.ts +432 -432
- package/src/classes/PedModel.ts +2 -2
- package/src/classes/PedTask.ts +957 -957
- package/src/classes/PersChar.ts +22 -22
- package/src/classes/Pickup.ts +14 -14
- package/src/classes/Player.ts +994 -987
- package/src/classes/Prop.ts +106 -106
- package/src/classes/PropSet.ts +29 -29
- package/src/classes/Vehicle.ts +147 -147
- package/src/classes/VehicleModel.ts +2 -2
- package/src/classes/VehicleTask.ts +31 -31
- package/src/classes/Volume.ts +62 -62
- package/src/classes/Weapon.ts +511 -511
- package/src/namespaces/Aicoverpoint.ts +40 -40
- package/src/namespaces/Aitransport.ts +104 -104
- package/src/namespaces/Animscene.ts +71 -71
- package/src/namespaces/Audio.ts +725 -725
- package/src/namespaces/Bounty.ts +102 -102
- package/src/namespaces/CamStatics.ts +700 -700
- package/src/namespaces/Collection.ts +113 -113
- package/src/namespaces/Companion.ts +34 -34
- package/src/namespaces/Compapp.ts +1 -1
- package/src/namespaces/Compendium.ts +94 -94
- package/src/namespaces/Crashlog.ts +23 -23
- package/src/namespaces/Crew.ts +4 -4
- package/src/namespaces/Databinding.ts +237 -237
- package/src/namespaces/Datafile.ts +4 -4
- package/src/namespaces/Decorator.ts +37 -37
- package/src/namespaces/Dlc.ts +9 -9
- package/src/namespaces/EntityStatics.ts +117 -117
- package/src/namespaces/Event.ts +4 -4
- package/src/namespaces/Fire.ts +127 -127
- package/src/namespaces/Flock.ts +2 -2
- package/src/namespaces/Gang.ts +2 -2
- package/src/namespaces/GoogleAnalytics.ts +2 -2
- package/src/namespaces/Graphics.ts +1218 -1218
- package/src/namespaces/Hud.ts +696 -696
- package/src/namespaces/Ik.ts +1 -1
- package/src/namespaces/Interaction.ts +3 -3
- package/src/namespaces/InteriorStatics.ts +65 -65
- package/src/namespaces/Inventory.ts +294 -294
- package/src/namespaces/Itemdatabase.ts +3 -3
- package/src/namespaces/Itemset.ts +2 -2
- package/src/namespaces/Law.ts +20 -20
- package/src/namespaces/Localization.ts +1 -1
- package/src/namespaces/Map.ts +3 -3
- package/src/namespaces/Minigame.ts +109 -109
- package/src/namespaces/Misc.ts +38 -38
- package/src/namespaces/Missiondata.ts +28 -28
- package/src/namespaces/Money.ts +3 -3
- package/src/namespaces/Netshopping.ts +99 -99
- package/src/namespaces/Network.ts +1616 -1616
- package/src/namespaces/Object.ts +344 -344
- package/src/namespaces/Pad.ts +76 -76
- package/src/namespaces/Pathfind.ts +10 -10
- package/src/namespaces/PedStatics.ts +12 -12
- package/src/namespaces/Perschar.ts +86 -86
- package/src/namespaces/Physics.ts +171 -171
- package/src/namespaces/PlayerStatics.ts +162 -162
- package/src/namespaces/Population.ts +17 -17
- package/src/namespaces/Posse.ts +54 -54
- package/src/namespaces/Propset.ts +92 -92
- package/src/namespaces/Replay.ts +3 -3
- package/src/namespaces/Scripts.ts +13 -13
- package/src/namespaces/Shapetest.ts +14 -14
- package/src/namespaces/Socialclub.ts +8 -8
- package/src/namespaces/Socialclubfeed.ts +1 -1
- package/src/namespaces/Spactionproxy.ts +4 -4
- package/src/namespaces/Stats.ts +287 -287
- package/src/namespaces/Streaming.ts +159 -159
- package/src/namespaces/Task.ts +517 -517
- package/src/namespaces/Telemetry.ts +224 -224
- package/src/namespaces/Txd.ts +1 -1
- package/src/namespaces/Uiapps.ts +43 -43
- package/src/namespaces/Uievents.ts +1 -1
- package/src/namespaces/Uifeed.ts +28 -28
- package/src/namespaces/Uistickyfeed.ts +23 -23
- package/src/namespaces/Unlock.ts +5 -5
- package/src/namespaces/VehicleStatics.ts +12 -12
- package/src/namespaces/Voice.ts +70 -70
- package/src/namespaces/VolumeStatics.ts +143 -143
- package/src/namespaces/WeaponStatics.ts +383 -383
- package/src/types/NativeAliases.ts +6 -1
|
@@ -4,6 +4,127 @@ import type { Player } from '../classes/Player';
|
|
|
4
4
|
import type { Prop } from '../classes/Prop';
|
|
5
5
|
import { Vector3 } from '../types/Vector3';
|
|
6
6
|
export declare class Physics {
|
|
7
|
+
/**
|
|
8
|
+
* @param ropeId
|
|
9
|
+
* @param entity
|
|
10
|
+
*/
|
|
11
|
+
static detachRopeFromEntity(ropeId: number, entity: Entity): void;
|
|
12
|
+
/**
|
|
13
|
+
* @param ropeId
|
|
14
|
+
* @param p1
|
|
15
|
+
*/
|
|
16
|
+
static N_0xDEDE679ED29DD4E7(ropeId: number, p1: boolean): void;
|
|
17
|
+
/**
|
|
18
|
+
* @param ropeId
|
|
19
|
+
*/
|
|
20
|
+
static stopRopeUnwindingBack(ropeId: number): void;
|
|
21
|
+
/**
|
|
22
|
+
* @param p0
|
|
23
|
+
* @param p1
|
|
24
|
+
*/
|
|
25
|
+
static N_0x483D4E917B0D35A9(p0: any, p1: any): void;
|
|
26
|
+
/**
|
|
27
|
+
* @param p0
|
|
28
|
+
* @param p1
|
|
29
|
+
* @param p2
|
|
30
|
+
*/
|
|
31
|
+
static N_0x32F4DBFDFCCCC735(p0: any, p1: any, p2: any): void;
|
|
32
|
+
/**
|
|
33
|
+
* Attaches a rope to two entities: binds two bones from two entities; one entity can be an object, i.e. a suspension point, the other an NPC bone
|
|
34
|
+
*
|
|
35
|
+
* @param ropeId
|
|
36
|
+
* @param entity1
|
|
37
|
+
* @param entity2
|
|
38
|
+
* @param ent1X
|
|
39
|
+
* @param ent1Y
|
|
40
|
+
* @param ent1Z
|
|
41
|
+
* @param ent2X
|
|
42
|
+
* @param ent2Y
|
|
43
|
+
* @param ent2Z
|
|
44
|
+
* @param boneName1
|
|
45
|
+
* @param boneName2
|
|
46
|
+
*/
|
|
47
|
+
static attachEntitiesToRope2(ropeId: number, entity1: Entity, entity2: Entity, ent1X: number, ent1Y: number, ent1Z: number, ent2X: number, ent2Y: number, ent2Z: number, boneName1: string | null, boneName2: string | null): void;
|
|
48
|
+
/**
|
|
49
|
+
* @param horse
|
|
50
|
+
*/
|
|
51
|
+
static unhitchHorse(horse: Ped): void;
|
|
52
|
+
/**
|
|
53
|
+
* @param ropeId
|
|
54
|
+
* @param entity1
|
|
55
|
+
* @param entity2
|
|
56
|
+
* @param p3
|
|
57
|
+
* @param p4
|
|
58
|
+
* @param p5
|
|
59
|
+
* @param p6
|
|
60
|
+
* @param p7
|
|
61
|
+
* @param p8
|
|
62
|
+
* @param p9
|
|
63
|
+
* @param p10
|
|
64
|
+
*/
|
|
65
|
+
static attachEntitesToRope3(ropeId: number, entity1: Entity, entity2: Entity, p3: number, p4: number, p5: number, p6: number, p7: number, p8: number, p9: any, p10: any): void;
|
|
66
|
+
/**
|
|
67
|
+
* @param ropeId
|
|
68
|
+
* @returns
|
|
69
|
+
*/
|
|
70
|
+
static getRopeVertexCount(ropeId: number): number;
|
|
71
|
+
/**
|
|
72
|
+
* @param horse
|
|
73
|
+
* @param pos
|
|
74
|
+
*/
|
|
75
|
+
static hitchHorse(horse: Ped, pos: Vector3): void;
|
|
76
|
+
/**
|
|
77
|
+
* @param ropeId
|
|
78
|
+
* @returns
|
|
79
|
+
*/
|
|
80
|
+
static ropeGetBreakerOfRope(ropeId: number): Player | null;
|
|
81
|
+
/**
|
|
82
|
+
* *ROPE_SET**
|
|
83
|
+
*
|
|
84
|
+
* @param ropeId
|
|
85
|
+
* @param p1
|
|
86
|
+
*/
|
|
87
|
+
static N_0x8D59079C37C21D78(ropeId: number, p1: number): void;
|
|
88
|
+
/**
|
|
89
|
+
* @param ropeId
|
|
90
|
+
*/
|
|
91
|
+
static startRopeUnwindingBack(ropeId: number): void;
|
|
92
|
+
/**
|
|
93
|
+
* Attaches entity 1 to entity 2.
|
|
94
|
+
* If you use a boneName (p12/p13) make sure boneId (p15/p16) is set to -1.
|
|
95
|
+
*
|
|
96
|
+
* @param ropeId
|
|
97
|
+
* @param entity1
|
|
98
|
+
* @param entity2
|
|
99
|
+
* @param ent1X
|
|
100
|
+
* @param ent1Y
|
|
101
|
+
* @param ent1Z
|
|
102
|
+
* @param ent2X
|
|
103
|
+
* @param ent2Y
|
|
104
|
+
* @param ent2Z
|
|
105
|
+
* @param length
|
|
106
|
+
* @param alwaysZero1
|
|
107
|
+
* @param alwaysZero2
|
|
108
|
+
* @param boneName1
|
|
109
|
+
* @param boneName2
|
|
110
|
+
* @param p14
|
|
111
|
+
* @param boneId1
|
|
112
|
+
* @param boneId2
|
|
113
|
+
* @param alwaysZero3
|
|
114
|
+
* @param alwaysZero4
|
|
115
|
+
* @param p19
|
|
116
|
+
* @param p20
|
|
117
|
+
*/
|
|
118
|
+
static attachEntitiesToRope(ropeId: number, entity1: Entity, entity2: Entity, ent1X: number, ent1Y: number, ent1Z: number, ent2X: number, ent2Y: number, ent2Z: number, length: number, alwaysZero1: number, alwaysZero2: number, boneName1: string | null, boneName2: string | null, p14: boolean, boneId1: number, boneId2: number, alwaysZero3: number, alwaysZero4: number, p19: boolean, p20: boolean): void;
|
|
119
|
+
/**
|
|
120
|
+
* @param visible
|
|
121
|
+
* @returns ropeId
|
|
122
|
+
*/
|
|
123
|
+
static ropeChangeVisibility(visible: boolean): number;
|
|
124
|
+
/**
|
|
125
|
+
* @param ropeId
|
|
126
|
+
*/
|
|
127
|
+
static deleteChildRope(ropeId: number): void;
|
|
7
128
|
/**
|
|
8
129
|
* @param ropeId
|
|
9
130
|
* @param p1
|
|
@@ -240,127 +361,6 @@ export declare class Physics {
|
|
|
240
361
|
* @param p1
|
|
241
362
|
*/
|
|
242
363
|
static N_0x423C6B1F3786D28B(p0: any, p1: any): void;
|
|
243
|
-
/**
|
|
244
|
-
* @param ropeId
|
|
245
|
-
* @param entity
|
|
246
|
-
*/
|
|
247
|
-
static detachRopeFromEntity(ropeId: number, entity: Entity): void;
|
|
248
|
-
/**
|
|
249
|
-
* @param ropeId
|
|
250
|
-
* @param p1
|
|
251
|
-
*/
|
|
252
|
-
static N_0xDEDE679ED29DD4E7(ropeId: number, p1: boolean): void;
|
|
253
|
-
/**
|
|
254
|
-
* @param ropeId
|
|
255
|
-
*/
|
|
256
|
-
static stopRopeUnwindingBack(ropeId: number): void;
|
|
257
|
-
/**
|
|
258
|
-
* @param p0
|
|
259
|
-
* @param p1
|
|
260
|
-
*/
|
|
261
|
-
static N_0x483D4E917B0D35A9(p0: any, p1: any): void;
|
|
262
|
-
/**
|
|
263
|
-
* @param p0
|
|
264
|
-
* @param p1
|
|
265
|
-
* @param p2
|
|
266
|
-
*/
|
|
267
|
-
static N_0x32F4DBFDFCCCC735(p0: any, p1: any, p2: any): void;
|
|
268
|
-
/**
|
|
269
|
-
* Attaches a rope to two entities: binds two bones from two entities; one entity can be an object, i.e. a suspension point, the other an NPC bone
|
|
270
|
-
*
|
|
271
|
-
* @param ropeId
|
|
272
|
-
* @param entity1
|
|
273
|
-
* @param entity2
|
|
274
|
-
* @param ent1X
|
|
275
|
-
* @param ent1Y
|
|
276
|
-
* @param ent1Z
|
|
277
|
-
* @param ent2X
|
|
278
|
-
* @param ent2Y
|
|
279
|
-
* @param ent2Z
|
|
280
|
-
* @param boneName1
|
|
281
|
-
* @param boneName2
|
|
282
|
-
*/
|
|
283
|
-
static attachEntitiesToRope2(ropeId: number, entity1: Entity, entity2: Entity, ent1X: number, ent1Y: number, ent1Z: number, ent2X: number, ent2Y: number, ent2Z: number, boneName1: string | null, boneName2: string | null): void;
|
|
284
|
-
/**
|
|
285
|
-
* @param horse
|
|
286
|
-
*/
|
|
287
|
-
static unhitchHorse(horse: Ped): void;
|
|
288
|
-
/**
|
|
289
|
-
* @param ropeId
|
|
290
|
-
* @param entity1
|
|
291
|
-
* @param entity2
|
|
292
|
-
* @param p3
|
|
293
|
-
* @param p4
|
|
294
|
-
* @param p5
|
|
295
|
-
* @param p6
|
|
296
|
-
* @param p7
|
|
297
|
-
* @param p8
|
|
298
|
-
* @param p9
|
|
299
|
-
* @param p10
|
|
300
|
-
*/
|
|
301
|
-
static attachEntitesToRope3(ropeId: number, entity1: Entity, entity2: Entity, p3: number, p4: number, p5: number, p6: number, p7: number, p8: number, p9: any, p10: any): void;
|
|
302
|
-
/**
|
|
303
|
-
* @param ropeId
|
|
304
|
-
* @returns
|
|
305
|
-
*/
|
|
306
|
-
static getRopeVertexCount(ropeId: number): number;
|
|
307
|
-
/**
|
|
308
|
-
* @param horse
|
|
309
|
-
* @param pos
|
|
310
|
-
*/
|
|
311
|
-
static hitchHorse(horse: Ped, pos: Vector3): void;
|
|
312
|
-
/**
|
|
313
|
-
* @param ropeId
|
|
314
|
-
* @returns
|
|
315
|
-
*/
|
|
316
|
-
static ropeGetBreakerOfRope(ropeId: number): Player | null;
|
|
317
|
-
/**
|
|
318
|
-
* *ROPE_SET**
|
|
319
|
-
*
|
|
320
|
-
* @param ropeId
|
|
321
|
-
* @param p1
|
|
322
|
-
*/
|
|
323
|
-
static N_0x8D59079C37C21D78(ropeId: number, p1: number): void;
|
|
324
|
-
/**
|
|
325
|
-
* @param ropeId
|
|
326
|
-
*/
|
|
327
|
-
static startRopeUnwindingBack(ropeId: number): void;
|
|
328
|
-
/**
|
|
329
|
-
* Attaches entity 1 to entity 2.
|
|
330
|
-
* If you use a boneName (p12/p13) make sure boneId (p15/p16) is set to -1.
|
|
331
|
-
*
|
|
332
|
-
* @param ropeId
|
|
333
|
-
* @param entity1
|
|
334
|
-
* @param entity2
|
|
335
|
-
* @param ent1X
|
|
336
|
-
* @param ent1Y
|
|
337
|
-
* @param ent1Z
|
|
338
|
-
* @param ent2X
|
|
339
|
-
* @param ent2Y
|
|
340
|
-
* @param ent2Z
|
|
341
|
-
* @param length
|
|
342
|
-
* @param alwaysZero1
|
|
343
|
-
* @param alwaysZero2
|
|
344
|
-
* @param boneName1
|
|
345
|
-
* @param boneName2
|
|
346
|
-
* @param p14
|
|
347
|
-
* @param boneId1
|
|
348
|
-
* @param boneId2
|
|
349
|
-
* @param alwaysZero3
|
|
350
|
-
* @param alwaysZero4
|
|
351
|
-
* @param p19
|
|
352
|
-
* @param p20
|
|
353
|
-
*/
|
|
354
|
-
static attachEntitiesToRope(ropeId: number, entity1: Entity, entity2: Entity, ent1X: number, ent1Y: number, ent1Z: number, ent2X: number, ent2Y: number, ent2Z: number, length: number, alwaysZero1: number, alwaysZero2: number, boneName1: string | null, boneName2: string | null, p14: boolean, boneId1: number, boneId2: number, alwaysZero3: number, alwaysZero4: number, p19: boolean, p20: boolean): void;
|
|
355
|
-
/**
|
|
356
|
-
* @param visible
|
|
357
|
-
* @returns ropeId
|
|
358
|
-
*/
|
|
359
|
-
static ropeChangeVisibility(visible: boolean): number;
|
|
360
|
-
/**
|
|
361
|
-
* @param ropeId
|
|
362
|
-
*/
|
|
363
|
-
static deleteChildRope(ropeId: number): void;
|
|
364
364
|
/**
|
|
365
365
|
* ropeTop returns top half of rope, ropeBottom returns bottom half of rope
|
|
366
366
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Physics.d.ts","sourceRoot":"","sources":["../../src/namespaces/Physics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAM3C,qBAAa,OAAO;IAClB;;;OAGG;IACH,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"Physics.d.ts","sourceRoot":"","sources":["../../src/namespaces/Physics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAM3C,qBAAa,OAAO;IAClB;;;OAGG;IACH,MAAM,CAAC,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAIjE;;;OAGG;IACH,MAAM,CAAC,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,GAAG,IAAI;IAI9D;;OAEG;IACH,MAAM,CAAC,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAIlD;;;OAGG;IACH,MAAM,CAAC,oBAAoB,C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M,GAAG,IAAI;IAI7D;;;OAGG;IACH,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI;IAI9D;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAI5C;;OAEG;IACH,MAAM,CAAC,oBAAoB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAI1C;;;OAGG;IACH,MAAM,CAAC,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAItD;;OAEG;IACH,MAAM,CAAC,oBAAoB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAI1C;;;;OAIG;IACH,MAAM,CAAC,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,IAAI;IAI3E;;;OAGG;IACH,MAAM,CAAC,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,GAAG,IAAI;IAI9D;;OAEG;IACH,MAAM,CAAC,oBAAoB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;CAI3C"}
|
|
@@ -2,6 +2,160 @@ import { Vector3 } from '../types/Vector3';
|
|
|
2
2
|
import { createFromHandle } from '../types/HandleRegistry';
|
|
3
3
|
import { inv, rai, raf, rav, pvi, f } from '../types/NativeAliases';
|
|
4
4
|
export class Physics {
|
|
5
|
+
/**
|
|
6
|
+
* @param ropeId
|
|
7
|
+
* @param entity
|
|
8
|
+
*/
|
|
9
|
+
static detachRopeFromEntity(ropeId, entity) {
|
|
10
|
+
inv('0xBCF3026912A8647D', ropeId, entity.handle);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @param ropeId
|
|
14
|
+
* @param p1
|
|
15
|
+
*/
|
|
16
|
+
static N_0xDEDE679ED29DD4E7(ropeId, p1) {
|
|
17
|
+
inv('0xDEDE679ED29DD4E7', ropeId, p1);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @param ropeId
|
|
21
|
+
*/
|
|
22
|
+
static stopRopeUnwindingBack(ropeId) {
|
|
23
|
+
inv('0x10DAA76CB8A201A1', ropeId);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @param p0
|
|
27
|
+
* @param p1
|
|
28
|
+
*/
|
|
29
|
+
static N_0x483D4E917B0D35A9(p0, p1) {
|
|
30
|
+
inv('0x483D4E917B0D35A9', p0, p1);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @param p0
|
|
34
|
+
* @param p1
|
|
35
|
+
* @param p2
|
|
36
|
+
*/
|
|
37
|
+
static N_0x32F4DBFDFCCCC735(p0, p1, p2) {
|
|
38
|
+
inv('0x32F4DBFDFCCCC735', p0, p1, p2);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Attaches a rope to two entities: binds two bones from two entities; one entity can be an object, i.e. a suspension point, the other an NPC bone
|
|
42
|
+
*
|
|
43
|
+
* @param ropeId
|
|
44
|
+
* @param entity1
|
|
45
|
+
* @param entity2
|
|
46
|
+
* @param ent1X
|
|
47
|
+
* @param ent1Y
|
|
48
|
+
* @param ent1Z
|
|
49
|
+
* @param ent2X
|
|
50
|
+
* @param ent2Y
|
|
51
|
+
* @param ent2Z
|
|
52
|
+
* @param boneName1
|
|
53
|
+
* @param boneName2
|
|
54
|
+
*/
|
|
55
|
+
static attachEntitiesToRope2(ropeId, entity1, entity2, ent1X, ent1Y, ent1Z, ent2X, ent2Y, ent2Z, boneName1, boneName2) {
|
|
56
|
+
inv('0x462FF2A432733A44', ropeId, entity1.handle, entity2.handle, f(ent1X), f(ent1Y), f(ent1Z), f(ent2X), f(ent2Y), f(ent2Z), boneName1, boneName2);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @param horse
|
|
60
|
+
*/
|
|
61
|
+
static unhitchHorse(horse) {
|
|
62
|
+
inv('0x0348469DAA17576C', horse.handle);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @param ropeId
|
|
66
|
+
* @param entity1
|
|
67
|
+
* @param entity2
|
|
68
|
+
* @param p3
|
|
69
|
+
* @param p4
|
|
70
|
+
* @param p5
|
|
71
|
+
* @param p6
|
|
72
|
+
* @param p7
|
|
73
|
+
* @param p8
|
|
74
|
+
* @param p9
|
|
75
|
+
* @param p10
|
|
76
|
+
*/
|
|
77
|
+
static attachEntitesToRope3(ropeId, entity1, entity2, p3, p4, p5, p6, p7, p8, p9, p10) {
|
|
78
|
+
inv('0xE9CD9A67834985A7', ropeId, entity1.handle, entity2.handle, f(p3), f(p4), f(p5), f(p6), f(p7), f(p8), p9, p10);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @param ropeId
|
|
82
|
+
* @returns
|
|
83
|
+
*/
|
|
84
|
+
static getRopeVertexCount(ropeId) {
|
|
85
|
+
return inv('0x3655F544CD30F0B5', ropeId, rai());
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @param horse
|
|
89
|
+
* @param pos
|
|
90
|
+
*/
|
|
91
|
+
static hitchHorse(horse, pos) {
|
|
92
|
+
inv('0x06AADE17334F7A40', horse.handle, f(pos.x), f(pos.y), f(pos.z));
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @param ropeId
|
|
96
|
+
* @returns
|
|
97
|
+
*/
|
|
98
|
+
static ropeGetBreakerOfRope(ropeId) {
|
|
99
|
+
return createFromHandle('Player', inv('0xEE360CFC80C8B2BC', ropeId, rai()));
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* *ROPE_SET**
|
|
103
|
+
*
|
|
104
|
+
* @param ropeId
|
|
105
|
+
* @param p1
|
|
106
|
+
*/
|
|
107
|
+
static N_0x8D59079C37C21D78(ropeId, p1) {
|
|
108
|
+
inv('0x8D59079C37C21D78', ropeId, f(p1));
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* @param ropeId
|
|
112
|
+
*/
|
|
113
|
+
static startRopeUnwindingBack(ropeId) {
|
|
114
|
+
inv('0x00F611A794A3C36E', ropeId);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Attaches entity 1 to entity 2.
|
|
118
|
+
* If you use a boneName (p12/p13) make sure boneId (p15/p16) is set to -1.
|
|
119
|
+
*
|
|
120
|
+
* @param ropeId
|
|
121
|
+
* @param entity1
|
|
122
|
+
* @param entity2
|
|
123
|
+
* @param ent1X
|
|
124
|
+
* @param ent1Y
|
|
125
|
+
* @param ent1Z
|
|
126
|
+
* @param ent2X
|
|
127
|
+
* @param ent2Y
|
|
128
|
+
* @param ent2Z
|
|
129
|
+
* @param length
|
|
130
|
+
* @param alwaysZero1
|
|
131
|
+
* @param alwaysZero2
|
|
132
|
+
* @param boneName1
|
|
133
|
+
* @param boneName2
|
|
134
|
+
* @param p14
|
|
135
|
+
* @param boneId1
|
|
136
|
+
* @param boneId2
|
|
137
|
+
* @param alwaysZero3
|
|
138
|
+
* @param alwaysZero4
|
|
139
|
+
* @param p19
|
|
140
|
+
* @param p20
|
|
141
|
+
*/
|
|
142
|
+
static attachEntitiesToRope(ropeId, entity1, entity2, ent1X, ent1Y, ent1Z, ent2X, ent2Y, ent2Z, length, alwaysZero1, alwaysZero2, boneName1, boneName2, p14, boneId1, boneId2, alwaysZero3, alwaysZero4, p19, p20) {
|
|
143
|
+
inv('0x3D95EC8B6D940AC3', ropeId, entity1.handle, entity2.handle, f(ent1X), f(ent1Y), f(ent1Z), f(ent2X), f(ent2Y), f(ent2Z), f(length), alwaysZero1, alwaysZero2, boneName1, boneName2, p14, boneId1, boneId2, alwaysZero3, alwaysZero4, p19, p20);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* @param visible
|
|
147
|
+
* @returns ropeId
|
|
148
|
+
*/
|
|
149
|
+
static ropeChangeVisibility(visible) {
|
|
150
|
+
const result = inv('0x7A54D82227A139DB', pvi(), visible);
|
|
151
|
+
return result;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* @param ropeId
|
|
155
|
+
*/
|
|
156
|
+
static deleteChildRope(ropeId) {
|
|
157
|
+
inv('0xAA5D6B1888E4DB20', ropeId);
|
|
158
|
+
}
|
|
5
159
|
/**
|
|
6
160
|
* @param ropeId
|
|
7
161
|
* @param p1
|
|
@@ -192,7 +346,7 @@ export class Physics {
|
|
|
192
346
|
* @returns
|
|
193
347
|
*/
|
|
194
348
|
static doesRopeExist(ropeId) {
|
|
195
|
-
return inv('0xFD5448BE3111ED96', ropeId, rai());
|
|
349
|
+
return !!inv('0xFD5448BE3111ED96', ropeId, rai());
|
|
196
350
|
}
|
|
197
351
|
/**
|
|
198
352
|
* @param p0
|
|
@@ -303,160 +457,6 @@ export class Physics {
|
|
|
303
457
|
static N_0x423C6B1F3786D28B(p0, p1) {
|
|
304
458
|
inv('0x423C6B1F3786D28B', p0, p1);
|
|
305
459
|
}
|
|
306
|
-
/**
|
|
307
|
-
* @param ropeId
|
|
308
|
-
* @param entity
|
|
309
|
-
*/
|
|
310
|
-
static detachRopeFromEntity(ropeId, entity) {
|
|
311
|
-
inv('0xBCF3026912A8647D', ropeId, entity.handle);
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* @param ropeId
|
|
315
|
-
* @param p1
|
|
316
|
-
*/
|
|
317
|
-
static N_0xDEDE679ED29DD4E7(ropeId, p1) {
|
|
318
|
-
inv('0xDEDE679ED29DD4E7', ropeId, p1);
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* @param ropeId
|
|
322
|
-
*/
|
|
323
|
-
static stopRopeUnwindingBack(ropeId) {
|
|
324
|
-
inv('0x10DAA76CB8A201A1', ropeId);
|
|
325
|
-
}
|
|
326
|
-
/**
|
|
327
|
-
* @param p0
|
|
328
|
-
* @param p1
|
|
329
|
-
*/
|
|
330
|
-
static N_0x483D4E917B0D35A9(p0, p1) {
|
|
331
|
-
inv('0x483D4E917B0D35A9', p0, p1);
|
|
332
|
-
}
|
|
333
|
-
/**
|
|
334
|
-
* @param p0
|
|
335
|
-
* @param p1
|
|
336
|
-
* @param p2
|
|
337
|
-
*/
|
|
338
|
-
static N_0x32F4DBFDFCCCC735(p0, p1, p2) {
|
|
339
|
-
inv('0x32F4DBFDFCCCC735', p0, p1, p2);
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* Attaches a rope to two entities: binds two bones from two entities; one entity can be an object, i.e. a suspension point, the other an NPC bone
|
|
343
|
-
*
|
|
344
|
-
* @param ropeId
|
|
345
|
-
* @param entity1
|
|
346
|
-
* @param entity2
|
|
347
|
-
* @param ent1X
|
|
348
|
-
* @param ent1Y
|
|
349
|
-
* @param ent1Z
|
|
350
|
-
* @param ent2X
|
|
351
|
-
* @param ent2Y
|
|
352
|
-
* @param ent2Z
|
|
353
|
-
* @param boneName1
|
|
354
|
-
* @param boneName2
|
|
355
|
-
*/
|
|
356
|
-
static attachEntitiesToRope2(ropeId, entity1, entity2, ent1X, ent1Y, ent1Z, ent2X, ent2Y, ent2Z, boneName1, boneName2) {
|
|
357
|
-
inv('0x462FF2A432733A44', ropeId, entity1.handle, entity2.handle, f(ent1X), f(ent1Y), f(ent1Z), f(ent2X), f(ent2Y), f(ent2Z), boneName1, boneName2);
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* @param horse
|
|
361
|
-
*/
|
|
362
|
-
static unhitchHorse(horse) {
|
|
363
|
-
inv('0x0348469DAA17576C', horse.handle);
|
|
364
|
-
}
|
|
365
|
-
/**
|
|
366
|
-
* @param ropeId
|
|
367
|
-
* @param entity1
|
|
368
|
-
* @param entity2
|
|
369
|
-
* @param p3
|
|
370
|
-
* @param p4
|
|
371
|
-
* @param p5
|
|
372
|
-
* @param p6
|
|
373
|
-
* @param p7
|
|
374
|
-
* @param p8
|
|
375
|
-
* @param p9
|
|
376
|
-
* @param p10
|
|
377
|
-
*/
|
|
378
|
-
static attachEntitesToRope3(ropeId, entity1, entity2, p3, p4, p5, p6, p7, p8, p9, p10) {
|
|
379
|
-
inv('0xE9CD9A67834985A7', ropeId, entity1.handle, entity2.handle, f(p3), f(p4), f(p5), f(p6), f(p7), f(p8), p9, p10);
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* @param ropeId
|
|
383
|
-
* @returns
|
|
384
|
-
*/
|
|
385
|
-
static getRopeVertexCount(ropeId) {
|
|
386
|
-
return inv('0x3655F544CD30F0B5', ropeId, rai());
|
|
387
|
-
}
|
|
388
|
-
/**
|
|
389
|
-
* @param horse
|
|
390
|
-
* @param pos
|
|
391
|
-
*/
|
|
392
|
-
static hitchHorse(horse, pos) {
|
|
393
|
-
inv('0x06AADE17334F7A40', horse.handle, f(pos.x), f(pos.y), f(pos.z));
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* @param ropeId
|
|
397
|
-
* @returns
|
|
398
|
-
*/
|
|
399
|
-
static ropeGetBreakerOfRope(ropeId) {
|
|
400
|
-
return createFromHandle('Player', inv('0xEE360CFC80C8B2BC', ropeId, rai()));
|
|
401
|
-
}
|
|
402
|
-
/**
|
|
403
|
-
* *ROPE_SET**
|
|
404
|
-
*
|
|
405
|
-
* @param ropeId
|
|
406
|
-
* @param p1
|
|
407
|
-
*/
|
|
408
|
-
static N_0x8D59079C37C21D78(ropeId, p1) {
|
|
409
|
-
inv('0x8D59079C37C21D78', ropeId, f(p1));
|
|
410
|
-
}
|
|
411
|
-
/**
|
|
412
|
-
* @param ropeId
|
|
413
|
-
*/
|
|
414
|
-
static startRopeUnwindingBack(ropeId) {
|
|
415
|
-
inv('0x00F611A794A3C36E', ropeId);
|
|
416
|
-
}
|
|
417
|
-
/**
|
|
418
|
-
* Attaches entity 1 to entity 2.
|
|
419
|
-
* If you use a boneName (p12/p13) make sure boneId (p15/p16) is set to -1.
|
|
420
|
-
*
|
|
421
|
-
* @param ropeId
|
|
422
|
-
* @param entity1
|
|
423
|
-
* @param entity2
|
|
424
|
-
* @param ent1X
|
|
425
|
-
* @param ent1Y
|
|
426
|
-
* @param ent1Z
|
|
427
|
-
* @param ent2X
|
|
428
|
-
* @param ent2Y
|
|
429
|
-
* @param ent2Z
|
|
430
|
-
* @param length
|
|
431
|
-
* @param alwaysZero1
|
|
432
|
-
* @param alwaysZero2
|
|
433
|
-
* @param boneName1
|
|
434
|
-
* @param boneName2
|
|
435
|
-
* @param p14
|
|
436
|
-
* @param boneId1
|
|
437
|
-
* @param boneId2
|
|
438
|
-
* @param alwaysZero3
|
|
439
|
-
* @param alwaysZero4
|
|
440
|
-
* @param p19
|
|
441
|
-
* @param p20
|
|
442
|
-
*/
|
|
443
|
-
static attachEntitiesToRope(ropeId, entity1, entity2, ent1X, ent1Y, ent1Z, ent2X, ent2Y, ent2Z, length, alwaysZero1, alwaysZero2, boneName1, boneName2, p14, boneId1, boneId2, alwaysZero3, alwaysZero4, p19, p20) {
|
|
444
|
-
inv('0x3D95EC8B6D940AC3', ropeId, entity1.handle, entity2.handle, f(ent1X), f(ent1Y), f(ent1Z), f(ent2X), f(ent2Y), f(ent2Z), f(length), alwaysZero1, alwaysZero2, boneName1, boneName2, p14, boneId1, boneId2, alwaysZero3, alwaysZero4, p19, p20);
|
|
445
|
-
}
|
|
446
|
-
/**
|
|
447
|
-
* @param visible
|
|
448
|
-
* @returns ropeId
|
|
449
|
-
*/
|
|
450
|
-
static ropeChangeVisibility(visible) {
|
|
451
|
-
const result = inv('0x7A54D82227A139DB', pvi(), visible);
|
|
452
|
-
return result;
|
|
453
|
-
}
|
|
454
|
-
/**
|
|
455
|
-
* @param ropeId
|
|
456
|
-
*/
|
|
457
|
-
static deleteChildRope(ropeId) {
|
|
458
|
-
inv('0xAA5D6B1888E4DB20', ropeId);
|
|
459
|
-
}
|
|
460
460
|
/**
|
|
461
461
|
* ropeTop returns top half of rope, ropeBottom returns bottom half of rope
|
|
462
462
|
*
|