@infernus/core 0.8.7 → 0.9.0
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/bundle.js +1 -1
- package/dist/bundle.mjs +1 -0
- package/package.json +10 -3
- package/rollup.config.mjs +5 -2
- package/.eslintrc +0 -3
- package/src/controllers/command/index.ts +0 -57
- package/src/controllers/filterscript/index.ts +0 -69
- package/src/controllers/gamemode/index.ts +0 -277
- package/src/controllers/gamemode/settings.ts +0 -3
- package/src/controllers/gametext/index.ts +0 -61
- package/src/controllers/gangzone/baseGangZone.ts +0 -284
- package/src/controllers/gangzone/gangZoneBus.ts +0 -8
- package/src/controllers/gangzone/gangZoneEvent.ts +0 -91
- package/src/controllers/gangzone/index.ts +0 -2
- package/src/controllers/i18n/index.ts +0 -81
- package/src/controllers/index.ts +0 -12
- package/src/controllers/menu/baseMenu.ts +0 -203
- package/src/controllers/menu/index.ts +0 -2
- package/src/controllers/menu/menuBus.ts +0 -8
- package/src/controllers/menu/menuEvent.ts +0 -76
- package/src/controllers/netstats/index.ts +0 -43
- package/src/controllers/npc/index.ts +0 -2
- package/src/controllers/npc/npcEvent.ts +0 -26
- package/src/controllers/npc/npcFunc.ts +0 -64
- package/src/controllers/player/basePlayer.ts +0 -980
- package/src/controllers/player/index.ts +0 -3
- package/src/controllers/player/pauseChecker.ts +0 -39
- package/src/controllers/player/playerBus.ts +0 -9
- package/src/controllers/player/playerEvent.ts +0 -468
- package/src/controllers/promise/client/index.ts +0 -31
- package/src/controllers/promise/dialog/index.ts +0 -143
- package/src/controllers/textdraw/baseTextDraw.ts +0 -416
- package/src/controllers/textdraw/index.ts +0 -2
- package/src/controllers/textdraw/textdrawBus.ts +0 -8
- package/src/controllers/textdraw/textdrawEvent.ts +0 -61
- package/src/controllers/vehicle/baseVehicle.ts +0 -503
- package/src/controllers/vehicle/index.ts +0 -2
- package/src/controllers/vehicle/vehicleBus.ts +0 -8
- package/src/controllers/vehicle/vehicleEvent.ts +0 -201
- package/src/enums/artwork.ts +0 -5
- package/src/enums/clickSources.ts +0 -3
- package/src/enums/dialogStyles.ts +0 -8
- package/src/enums/editResponseTypes.ts +0 -5
- package/src/enums/index.ts +0 -18
- package/src/enums/invalid.ts +0 -13
- package/src/enums/keys.ts +0 -25
- package/src/enums/limits.ts +0 -18
- package/src/enums/marker.ts +0 -5
- package/src/enums/netstat.ts +0 -11
- package/src/enums/npc.ts +0 -11
- package/src/enums/object.ts +0 -25
- package/src/enums/player.ts +0 -92
- package/src/enums/record.ts +0 -5
- package/src/enums/specialActions.ts +0 -22
- package/src/enums/streamer.ts +0 -10
- package/src/enums/textdrawFonts.ts +0 -23
- package/src/enums/vehicle.ts +0 -32
- package/src/enums/weapon.ts +0 -82
- package/src/interfaces/index.ts +0 -233
- package/src/logger/index.ts +0 -24
- package/src/main.ts +0 -6
- package/src/types/index.ts +0 -48
- package/src/utils/EventBus.ts +0 -60
- package/src/utils/animateUtils.ts +0 -2504
- package/src/utils/colorUtils.ts +0 -43
- package/src/utils/helperUtils.ts +0 -403
- package/src/utils/vehicleUtils.ts +0 -321
- package/src/wrapper/native/callbacks/index.ts +0 -395
- package/src/wrapper/native/functions/index.ts +0 -3131
- package/src/wrapper/streamer/3dtext/3dTextBus.ts +0 -8
- package/src/wrapper/streamer/3dtext/3dTextEvent.ts +0 -70
- package/src/wrapper/streamer/3dtext/base3DText.ts +0 -184
- package/src/wrapper/streamer/3dtext/index.ts +0 -2
- package/src/wrapper/streamer/actor/actorBus.ts +0 -8
- package/src/wrapper/streamer/actor/actorEvent.ts +0 -95
- package/src/wrapper/streamer/actor/baseActor.ts +0 -278
- package/src/wrapper/streamer/actor/index.ts +0 -2
- package/src/wrapper/streamer/area/areaBus.ts +0 -8
- package/src/wrapper/streamer/area/areaEvent.ts +0 -99
- package/src/wrapper/streamer/area/baseArea.ts +0 -450
- package/src/wrapper/streamer/area/index.ts +0 -2
- package/src/wrapper/streamer/checkpoint/baseCheckpoint.ts +0 -136
- package/src/wrapper/streamer/checkpoint/checkPointBus.ts +0 -8
- package/src/wrapper/streamer/checkpoint/checkPointEvent.ts +0 -100
- package/src/wrapper/streamer/checkpoint/index.ts +0 -2
- package/src/wrapper/streamer/common/index.ts +0 -318
- package/src/wrapper/streamer/index.ts +0 -9
- package/src/wrapper/streamer/mapIcon/baseMapIcon.ts +0 -128
- package/src/wrapper/streamer/mapIcon/index.ts +0 -2
- package/src/wrapper/streamer/mapIcon/mapIconBus.ts +0 -8
- package/src/wrapper/streamer/mapIcon/mapIconEvent.ts +0 -67
- package/src/wrapper/streamer/object/baseObject.ts +0 -415
- package/src/wrapper/streamer/object/index.ts +0 -2
- package/src/wrapper/streamer/object/objectBus.ts +0 -8
- package/src/wrapper/streamer/object/objectEvent.ts +0 -177
- package/src/wrapper/streamer/pickup/basePickup.ts +0 -114
- package/src/wrapper/streamer/pickup/index.ts +0 -2
- package/src/wrapper/streamer/pickup/pickupBus.ts +0 -8
- package/src/wrapper/streamer/pickup/pickupEvent.ts +0 -84
- package/src/wrapper/streamer/raceCP/baseRaceCP.ts +0 -151
- package/src/wrapper/streamer/raceCP/index.ts +0 -2
- package/src/wrapper/streamer/raceCP/raceCPBus.ts +0 -8
- package/src/wrapper/streamer/raceCP/raceCPEvent.ts +0 -100
- package/tsconfig.json +0 -16
- /package/{LICENSE → LICENSE.md} +0 -0
package/src/enums/artwork.ts
DELETED
package/src/enums/index.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export * from "./artwork";
|
|
2
|
-
export * from "./clickSources";
|
|
3
|
-
export * from "./dialogStyles";
|
|
4
|
-
export * from "./editResponseTypes";
|
|
5
|
-
export * from "./netstat";
|
|
6
|
-
export * from "./invalid";
|
|
7
|
-
export * from "./keys";
|
|
8
|
-
export * from "./limits";
|
|
9
|
-
export * from "./marker";
|
|
10
|
-
export * from "./npc";
|
|
11
|
-
export * from "./object";
|
|
12
|
-
export * from "./player";
|
|
13
|
-
export * from "./specialActions";
|
|
14
|
-
export * from "./textdrawFonts";
|
|
15
|
-
export * from "./vehicle";
|
|
16
|
-
export * from "./weapon";
|
|
17
|
-
export * from "./record";
|
|
18
|
-
export * from "./streamer";
|
package/src/enums/invalid.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export enum InvalidEnum {
|
|
2
|
-
NO_TEAM = 255,
|
|
3
|
-
PLAYER_ID = 0xffff,
|
|
4
|
-
VEHICLE_ID = 0xffff,
|
|
5
|
-
ACTOR_ID = 0xffff,
|
|
6
|
-
OBJECT_ID = 0xffff,
|
|
7
|
-
MENU = 0xff,
|
|
8
|
-
TEXT_DRAW = 0xffff,
|
|
9
|
-
PLAYER_TEXT_DRAW = 0xffff,
|
|
10
|
-
GANG_ZONE = -1,
|
|
11
|
-
_3DTEXT_ID = 0xffff,
|
|
12
|
-
PLAYER_3DTEXT_ID = 0xffff,
|
|
13
|
-
}
|
package/src/enums/keys.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export enum KeysEnum {
|
|
2
|
-
ACTION = 1,
|
|
3
|
-
CROUCH = 2,
|
|
4
|
-
FIRE = 4,
|
|
5
|
-
SPRINT = 8,
|
|
6
|
-
SECONDARY_ATTACK = 16,
|
|
7
|
-
JUMP = 32,
|
|
8
|
-
LOOK_RIGHT = 64,
|
|
9
|
-
HANDBRAKE = 128,
|
|
10
|
-
LOOK_LEFT = 256,
|
|
11
|
-
SUBMISSION = 512,
|
|
12
|
-
LOOK_BEHIND = 512,
|
|
13
|
-
WALK = 1024,
|
|
14
|
-
ANALOG_UP = 2048,
|
|
15
|
-
ANALOG_DOWN = 4096,
|
|
16
|
-
ANALOG_LEFT = 8192,
|
|
17
|
-
ANALOG_RIGHT = 16384,
|
|
18
|
-
YES = 65536,
|
|
19
|
-
NO = 131072,
|
|
20
|
-
CTRL_BACK = 262144,
|
|
21
|
-
KEY_UP = -128,
|
|
22
|
-
KEY_DOWN = 128,
|
|
23
|
-
KEY_LEFT = -128,
|
|
24
|
-
KEY_RIGHT = 128,
|
|
25
|
-
}
|
package/src/enums/limits.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export enum LimitsEnum {
|
|
2
|
-
MAX_PLAYER_NAME = 24,
|
|
3
|
-
MAX_PLAYERS = 1000,
|
|
4
|
-
MAX_VEHICLES = 2000,
|
|
5
|
-
MAX_ACTORS = 1000,
|
|
6
|
-
MAX_OBJECTS = 1000,
|
|
7
|
-
MAX_GANG_ZONES = 1024,
|
|
8
|
-
MAX_TEXT_DRAWS = 2048,
|
|
9
|
-
MAX_PLAYER_TEXT_DRAWS = 256,
|
|
10
|
-
MAX_MENUS = 128,
|
|
11
|
-
MAX_MENU_ROW = 12,
|
|
12
|
-
MAX_MENU_COL = 2,
|
|
13
|
-
MAX_3DTEXT_GLOBAL = 1024,
|
|
14
|
-
MAX_3DTEXT_PLAYER = 1024,
|
|
15
|
-
MAX_PICKUPS = 4096,
|
|
16
|
-
MAX_PLAYER_ATTACHED_OBJECTS = 10,
|
|
17
|
-
MAX_CHATBUBBLE_LENGTH = 144,
|
|
18
|
-
}
|
package/src/enums/marker.ts
DELETED
package/src/enums/netstat.ts
DELETED
package/src/enums/npc.ts
DELETED
package/src/enums/object.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export enum ObjectMaterialTextSizeEnum {
|
|
2
|
-
_32x32 = 10,
|
|
3
|
-
_64x32 = 20,
|
|
4
|
-
_64x64 = 30,
|
|
5
|
-
_128x32 = 40,
|
|
6
|
-
_128x64 = 50,
|
|
7
|
-
_128x128 = 60,
|
|
8
|
-
_256x32 = 70,
|
|
9
|
-
_256x64 = 80,
|
|
10
|
-
_256x128 = 90,
|
|
11
|
-
_256x256 = 100,
|
|
12
|
-
_512x64 = 110,
|
|
13
|
-
_512x128 = 120,
|
|
14
|
-
_512x256 = 130,
|
|
15
|
-
_512x512 = 140,
|
|
16
|
-
}
|
|
17
|
-
export enum ObjectMaterialAlignmmentEnum {
|
|
18
|
-
LEFT,
|
|
19
|
-
CENTER,
|
|
20
|
-
RIGHT,
|
|
21
|
-
}
|
|
22
|
-
export enum SelectObjectTypesEnum {
|
|
23
|
-
GLOBAL_OBJECT = 1,
|
|
24
|
-
PLAYER_OBJECT,
|
|
25
|
-
}
|
package/src/enums/player.ts
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
export enum FightingStylesEnum {
|
|
2
|
-
NORMAL,
|
|
3
|
-
BOXING,
|
|
4
|
-
KUNGFU,
|
|
5
|
-
KNEEHEAD,
|
|
6
|
-
GRABKICK,
|
|
7
|
-
ELBOW,
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export enum MapIconStylesEnum {
|
|
11
|
-
LOCAL,
|
|
12
|
-
GLOBAL,
|
|
13
|
-
LOCAL_CHECKPOINT,
|
|
14
|
-
GLOBAL_CHECKPOINT,
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export enum CameraCutStylesEnum {
|
|
18
|
-
MOVE = 1,
|
|
19
|
-
CUT,
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export enum CameraModesEnum {
|
|
23
|
-
BEHINDCAR = 3,
|
|
24
|
-
FOLLOWPED = 4,
|
|
25
|
-
SNIPER = 7,
|
|
26
|
-
ROCKETLAUNCHER = 8,
|
|
27
|
-
FIXED = 15,
|
|
28
|
-
_1STPERSON = 16,
|
|
29
|
-
CAM_ON_A_STRING = 18,
|
|
30
|
-
BEHINDBOAT = 22,
|
|
31
|
-
CAMERA = 46,
|
|
32
|
-
ROCKETLAUNCHER_HS = 51,
|
|
33
|
-
AIMWEAPON = 53,
|
|
34
|
-
AIMWEAPON_FROMCAR = 55,
|
|
35
|
-
DW_HELI_CHASE = 56,
|
|
36
|
-
DW_CAM_MAN = 57,
|
|
37
|
-
DW_BIRDY = 58,
|
|
38
|
-
DW_PLANE_SPOTTER = 59,
|
|
39
|
-
DW_PLANECAM1 = 62,
|
|
40
|
-
DW_PLANECAM2 = 63,
|
|
41
|
-
DW_PLANECAM3 = 64,
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export enum SpectateModesEnum {
|
|
45
|
-
NORMAL = 1,
|
|
46
|
-
FIXED,
|
|
47
|
-
SIDE,
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export enum PlayerStateEnum {
|
|
51
|
-
NONE,
|
|
52
|
-
ONFOOT,
|
|
53
|
-
DRIVER,
|
|
54
|
-
PASSENGER,
|
|
55
|
-
EXIT_VEHICLE,
|
|
56
|
-
ENTER_VEHICLE_DRIVER,
|
|
57
|
-
ENTER_VEHICLE_PASSENGER,
|
|
58
|
-
WASTED,
|
|
59
|
-
SPAWNED,
|
|
60
|
-
SPECTATING,
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export enum BodyPartsEnum {
|
|
64
|
-
TORSO = 3,
|
|
65
|
-
GROIN,
|
|
66
|
-
LEFT_ARM,
|
|
67
|
-
RIGHT_ARM,
|
|
68
|
-
LEFT_LEG,
|
|
69
|
-
RIGHT_LEG,
|
|
70
|
-
HEAD,
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export enum BoneIdsEnum {
|
|
74
|
-
Spine = 1,
|
|
75
|
-
Head,
|
|
76
|
-
LeftUpperArm,
|
|
77
|
-
RightUpperArm,
|
|
78
|
-
LeftHand,
|
|
79
|
-
RightHand,
|
|
80
|
-
LeftThigh,
|
|
81
|
-
RightThigh,
|
|
82
|
-
LeftFoot,
|
|
83
|
-
RightFoot,
|
|
84
|
-
RightCalf,
|
|
85
|
-
LeftCalf,
|
|
86
|
-
LeftForearm,
|
|
87
|
-
RightForearm,
|
|
88
|
-
LeftClavicle,
|
|
89
|
-
RightClavicle,
|
|
90
|
-
Neck,
|
|
91
|
-
Jaw,
|
|
92
|
-
}
|
package/src/enums/record.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export enum SpecialActionsEnum {
|
|
2
|
-
NONE = 0,
|
|
3
|
-
DUCK = 1,
|
|
4
|
-
USEJETPACK = 2,
|
|
5
|
-
ENTER_VEHICLE = 3,
|
|
6
|
-
EXIT_VEHICLE = 4,
|
|
7
|
-
DANCE1 = 5,
|
|
8
|
-
DANCE2 = 6,
|
|
9
|
-
DANCE3 = 7,
|
|
10
|
-
DANCE4 = 8,
|
|
11
|
-
HANDSUP = 10,
|
|
12
|
-
USECELLPHONE = 11,
|
|
13
|
-
SITTING = 12,
|
|
14
|
-
STOPUSECELLPHONE = 13,
|
|
15
|
-
DRINK_BEER = 20,
|
|
16
|
-
SMOKE_CIGGY = 21,
|
|
17
|
-
DRINK_WINE = 22,
|
|
18
|
-
DRINK_SPRUNK = 23,
|
|
19
|
-
CUFFED = 24,
|
|
20
|
-
CARRY = 25,
|
|
21
|
-
PISSING = 68,
|
|
22
|
-
}
|
package/src/enums/streamer.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export enum TextDrawFontsEnum {
|
|
2
|
-
FONT_0 = 0,
|
|
3
|
-
FONT_1,
|
|
4
|
-
FONT_2,
|
|
5
|
-
FONT_3,
|
|
6
|
-
SPRITE_DRAW,
|
|
7
|
-
MODEL_PREVIEW,
|
|
8
|
-
BANK = 0,
|
|
9
|
-
STANDARD,
|
|
10
|
-
SPACEAGE,
|
|
11
|
-
HEADING,
|
|
12
|
-
BECKETT_REGULAR = 0,
|
|
13
|
-
AHARONI_BOLD,
|
|
14
|
-
BANK_GOTHIC,
|
|
15
|
-
PRICEDOWN,
|
|
16
|
-
SPRITE,
|
|
17
|
-
PREVIEW,
|
|
18
|
-
}
|
|
19
|
-
export enum TextDrawAlignEnum {
|
|
20
|
-
LEFT = 1,
|
|
21
|
-
CENTER,
|
|
22
|
-
RIGHT,
|
|
23
|
-
}
|
package/src/enums/vehicle.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export enum CarModTypeEnum {
|
|
2
|
-
SPOILER,
|
|
3
|
-
HOOD,
|
|
4
|
-
ROOF,
|
|
5
|
-
SIDESKIRT,
|
|
6
|
-
LAMPS,
|
|
7
|
-
NITRO,
|
|
8
|
-
EXHAUST,
|
|
9
|
-
WHEELS,
|
|
10
|
-
STEREO,
|
|
11
|
-
HYDRAULICS,
|
|
12
|
-
FRONT_BUMPER,
|
|
13
|
-
REAR_BUMPER,
|
|
14
|
-
VENT_RIGHT,
|
|
15
|
-
VENT_LEFT,
|
|
16
|
-
}
|
|
17
|
-
export enum VehicleParamsEnum {
|
|
18
|
-
UNSET,
|
|
19
|
-
OFF,
|
|
20
|
-
ON,
|
|
21
|
-
}
|
|
22
|
-
export enum VehicleModelInfoEnum {
|
|
23
|
-
SIZE = 1,
|
|
24
|
-
FRONTSEAT,
|
|
25
|
-
REARSEAT,
|
|
26
|
-
PETROLCAP,
|
|
27
|
-
WHEELSFRONT,
|
|
28
|
-
WHEELSREAR,
|
|
29
|
-
WHEELSMID,
|
|
30
|
-
FRONT_BUMPER_Z,
|
|
31
|
-
REAR_BUMPER_Z,
|
|
32
|
-
}
|
package/src/enums/weapon.ts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
export enum WeaponEnum {
|
|
2
|
-
BRASSKNUCKLE = 1,
|
|
3
|
-
GOLFCLUB = 2,
|
|
4
|
-
NITESTICK = 3,
|
|
5
|
-
KNIFE = 4,
|
|
6
|
-
BAT = 5,
|
|
7
|
-
SHOVEL = 6,
|
|
8
|
-
POOLSTICK = 7,
|
|
9
|
-
KATANA = 8,
|
|
10
|
-
CHAINSAW = 9,
|
|
11
|
-
DILDO = 10,
|
|
12
|
-
DILDO2 = 11,
|
|
13
|
-
VIBRATOR = 12,
|
|
14
|
-
VIBRATOR2 = 13,
|
|
15
|
-
FLOWER = 14,
|
|
16
|
-
CANE = 15,
|
|
17
|
-
GRENADE = 16,
|
|
18
|
-
TEARGAS = 17,
|
|
19
|
-
MOLTOV = 18,
|
|
20
|
-
COLT45 = 22,
|
|
21
|
-
SILENCED = 23,
|
|
22
|
-
DEAGLE = 24,
|
|
23
|
-
SHOTGUN = 25,
|
|
24
|
-
SAWEDOFF = 26,
|
|
25
|
-
SHOTGSPA = 27,
|
|
26
|
-
UZI = 28,
|
|
27
|
-
MP5 = 29,
|
|
28
|
-
AK47 = 30,
|
|
29
|
-
M4 = 31,
|
|
30
|
-
TEC9 = 32,
|
|
31
|
-
RIFLE = 33,
|
|
32
|
-
SNIPER = 34,
|
|
33
|
-
ROCKETLAUNCHER = 35,
|
|
34
|
-
HEATSEEKER = 36,
|
|
35
|
-
FLAMETHROWER = 37,
|
|
36
|
-
MINIGUN = 38,
|
|
37
|
-
SATCHEL = 39,
|
|
38
|
-
BOMB = 40,
|
|
39
|
-
SPRAYCAN = 41,
|
|
40
|
-
FIREEXTINGUISHER = 42,
|
|
41
|
-
CAMERA = 43,
|
|
42
|
-
PARACHUTE = 46,
|
|
43
|
-
}
|
|
44
|
-
export enum WeaponSkillsEnum {
|
|
45
|
-
PISTOL,
|
|
46
|
-
PISTOL_SILENCED,
|
|
47
|
-
DESERT_EAGLE,
|
|
48
|
-
SHOTGUN,
|
|
49
|
-
SAWNOFF_SHOTGUN,
|
|
50
|
-
SPAS12_SHOTGUN,
|
|
51
|
-
MICRO_UZI,
|
|
52
|
-
MP5,
|
|
53
|
-
AK47,
|
|
54
|
-
M4,
|
|
55
|
-
SNIPERRIFLE,
|
|
56
|
-
}
|
|
57
|
-
export enum BulletHitTypesEnum {
|
|
58
|
-
NONE,
|
|
59
|
-
PLAYER,
|
|
60
|
-
VEHICLE,
|
|
61
|
-
OBJECT,
|
|
62
|
-
PLAYER_OBJECT,
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export enum WeaponStatesEnum {
|
|
66
|
-
UNKNOWN = -1,
|
|
67
|
-
NO_BULLETS,
|
|
68
|
-
LAST_BULLET,
|
|
69
|
-
MORE_BULLETS,
|
|
70
|
-
RELOADING,
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export enum DamageDeathReasonEnum {
|
|
74
|
-
VEHICLE = 49,
|
|
75
|
-
HELICOPTERBLADES = 50,
|
|
76
|
-
EXPLOSION = 51,
|
|
77
|
-
DROWN = 53,
|
|
78
|
-
COLLISION = 54,
|
|
79
|
-
CONNECT = 200,
|
|
80
|
-
DISCONNECT = 201,
|
|
81
|
-
SUICIDE = 255,
|
|
82
|
-
}
|
package/src/interfaces/index.ts
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import type { Player } from "@/controllers/player";
|
|
2
|
-
import type { MapIconStyles } from "@infernus/streamer";
|
|
3
|
-
import type { DialogStylesEnum } from "../enums";
|
|
4
|
-
import type { TDynamicAreaTypes, TStreamerExtendable } from "../types";
|
|
5
|
-
|
|
6
|
-
export interface IDialog {
|
|
7
|
-
style?: DialogStylesEnum;
|
|
8
|
-
caption?: string;
|
|
9
|
-
info?: string;
|
|
10
|
-
button1?: string;
|
|
11
|
-
button2?: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface IDialogResCommon {
|
|
15
|
-
response: number;
|
|
16
|
-
listitem: number;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface IDialogResRaw extends IDialogResCommon {
|
|
20
|
-
inputbuf: number[];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface IDialogResResult extends IDialogResCommon {
|
|
24
|
-
inputtext: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface ICmdErr {
|
|
28
|
-
code: number;
|
|
29
|
-
msg: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface IVehicle {
|
|
33
|
-
modelid: number;
|
|
34
|
-
x: number;
|
|
35
|
-
y: number;
|
|
36
|
-
z: number;
|
|
37
|
-
z_angle: number;
|
|
38
|
-
colour1: string | number;
|
|
39
|
-
colour2: string | number;
|
|
40
|
-
respawn_delay?: number;
|
|
41
|
-
addsiren?: boolean;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface IAnimateInfo {
|
|
45
|
-
n: string;
|
|
46
|
-
d: number;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface IGangZone<P extends Player> {
|
|
50
|
-
player?: P;
|
|
51
|
-
minx: number;
|
|
52
|
-
miny: number;
|
|
53
|
-
maxx: number;
|
|
54
|
-
maxy: number;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface ICommonTextDrawKey {
|
|
58
|
-
id: number;
|
|
59
|
-
global: boolean;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface ITextDraw<P extends Player> {
|
|
63
|
-
player?: P;
|
|
64
|
-
x: number;
|
|
65
|
-
y: number;
|
|
66
|
-
text: string;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface IDialogFuncQueue {
|
|
70
|
-
resolve: (value: IDialogResRaw | PromiseLike<IDialogResRaw>) => void;
|
|
71
|
-
reject: (reason: string) => void;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface IDynamic {
|
|
75
|
-
worldid?: TStreamerExtendable;
|
|
76
|
-
interiorid?: TStreamerExtendable;
|
|
77
|
-
playerid?: TStreamerExtendable;
|
|
78
|
-
extended?: boolean;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface IDynamicCommon extends IDynamic {
|
|
82
|
-
x: number;
|
|
83
|
-
y: number;
|
|
84
|
-
z: number;
|
|
85
|
-
areaid?: TStreamerExtendable;
|
|
86
|
-
streamdistance?: number;
|
|
87
|
-
priority?: number;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export interface IDynamicMapIcon extends IDynamicCommon {
|
|
91
|
-
type: number;
|
|
92
|
-
colour: string | number;
|
|
93
|
-
style?: MapIconStyles;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export interface IDynamicPickup extends IDynamicCommon {
|
|
97
|
-
type: number;
|
|
98
|
-
modelid: number;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export interface IDynamicCheckPoint extends IDynamicCommon {
|
|
102
|
-
size: number;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface IDynamicRaceCp extends IDynamicCheckPoint {
|
|
106
|
-
type: number;
|
|
107
|
-
nextx: number;
|
|
108
|
-
nexty: number;
|
|
109
|
-
nextz: number;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export interface IDynamicActor extends IDynamicCommon {
|
|
113
|
-
r: number;
|
|
114
|
-
modelid: number;
|
|
115
|
-
invulnerable: boolean;
|
|
116
|
-
health: number;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export interface IDynamic3DTextLabel extends IDynamicCommon {
|
|
120
|
-
charset?: string;
|
|
121
|
-
text: string;
|
|
122
|
-
colour: string | number;
|
|
123
|
-
attachedplayer?: number;
|
|
124
|
-
attachedvehicle?: number;
|
|
125
|
-
testlos?: boolean;
|
|
126
|
-
drawdistance: number;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export interface IDynamicObject extends IDynamicCommon {
|
|
130
|
-
charset?: string;
|
|
131
|
-
modelid: number;
|
|
132
|
-
rx: number;
|
|
133
|
-
ry: number;
|
|
134
|
-
rz: number;
|
|
135
|
-
drawdistance?: number;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export interface IClientResRaw {
|
|
139
|
-
actionid: number;
|
|
140
|
-
memaddr: number;
|
|
141
|
-
retndata: number;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export interface IClientFuncQueue {
|
|
145
|
-
resolve: (value: IClientResRaw | PromiseLike<IClientResRaw>) => void;
|
|
146
|
-
reject: (reason: string) => void;
|
|
147
|
-
timeout: NodeJS.Timeout;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export interface ICommonGangZoneKey {
|
|
151
|
-
id: number;
|
|
152
|
-
global: boolean;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export interface IDynamicCircleCommon extends IDynamic {
|
|
156
|
-
x: number;
|
|
157
|
-
y: number;
|
|
158
|
-
size: number;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export interface IDynamicCircle extends IDynamicCircleCommon {
|
|
162
|
-
type: "circle";
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export interface IDynamicCylinder extends IDynamicCircleCommon {
|
|
166
|
-
type: "cylinder";
|
|
167
|
-
minz: number;
|
|
168
|
-
maxz: number;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export interface IDynamicSphere extends IDynamicCircleCommon {
|
|
172
|
-
type: "sphere";
|
|
173
|
-
z: number;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export interface IDynamicRectangleCommon extends IDynamic {
|
|
177
|
-
minx: number;
|
|
178
|
-
miny: number;
|
|
179
|
-
maxx: number;
|
|
180
|
-
maxy: number;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export interface IDynamicRectangle extends IDynamicRectangleCommon {
|
|
184
|
-
type: "rectangle";
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export interface IDynamicCuboid extends IDynamicRectangleCommon {
|
|
188
|
-
type: "cuboid";
|
|
189
|
-
minz: number;
|
|
190
|
-
maxz: number;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export interface IDynamicPolygon extends IDynamic {
|
|
194
|
-
type: "polygon";
|
|
195
|
-
points: number[];
|
|
196
|
-
minz: number;
|
|
197
|
-
maxz: number;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
export interface IDynamicAreaKey {
|
|
201
|
-
id: number;
|
|
202
|
-
type: TDynamicAreaTypes;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export {
|
|
206
|
-
IObjectPos,
|
|
207
|
-
IObjectRotPos,
|
|
208
|
-
IAttachedObject,
|
|
209
|
-
IMaterial,
|
|
210
|
-
IMaterialText,
|
|
211
|
-
IAttachedData,
|
|
212
|
-
IActorSpawn,
|
|
213
|
-
IActorAnimation,
|
|
214
|
-
IPlayerClass,
|
|
215
|
-
GangZonePos,
|
|
216
|
-
IBounds,
|
|
217
|
-
ICheckPoint,
|
|
218
|
-
IRaceCheckPoint,
|
|
219
|
-
IOffsets,
|
|
220
|
-
IQuat,
|
|
221
|
-
ITextDrawCommonSize,
|
|
222
|
-
ITextDrawRot,
|
|
223
|
-
IVehColor,
|
|
224
|
-
IVehSpawnInfo,
|
|
225
|
-
IVehMatrix,
|
|
226
|
-
} from "@infernus/wrapper";
|
|
227
|
-
|
|
228
|
-
export interface IFilterScript {
|
|
229
|
-
name: string;
|
|
230
|
-
load: (...args: Array<any>) => any;
|
|
231
|
-
unload: () => any;
|
|
232
|
-
[propName: string | number | symbol]: any;
|
|
233
|
-
}
|
package/src/logger/index.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import pino from "pino";
|
|
2
|
-
|
|
3
|
-
export const logger = pino({
|
|
4
|
-
transport: {
|
|
5
|
-
target: "pino-pretty",
|
|
6
|
-
options: {
|
|
7
|
-
translateTime: "SYS:standard",
|
|
8
|
-
ignore: "pid,hostname",
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
process.on("uncaughtException", (err) => {
|
|
14
|
-
logger.error(err);
|
|
15
|
-
process.exit(1);
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
process.on("unhandledRejection", (err) => {
|
|
19
|
-
if (err instanceof Error) {
|
|
20
|
-
logger.warn(err);
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
logger.warn(new Error(JSON.stringify(err)));
|
|
24
|
-
});
|