From 0d5bc2650ed6425a237d8d4acdad315aaddbae7b Mon Sep 17 00:00:00 2001 From: x87 Date: Tue, 29 Oct 2024 14:01:15 +0000 Subject: [PATCH] deploy: 4d279ae748b7cce1883312a29237d172ac37e07e --- assets/gta_iv/gta_iv.json | 51 +++++++++++++++++++++++++++++-------- assets/gta_iv/snippets.json | 3 +++ ngsw.json | 2 +- 3 files changed, 44 insertions(+), 12 deletions(-) diff --git a/assets/gta_iv/gta_iv.json b/assets/gta_iv/gta_iv.json index 75be98b57..673093082 100644 --- a/assets/gta_iv/gta_iv.json +++ b/assets/gta_iv/gta_iv.json @@ -1,7 +1,7 @@ { "meta": { - "last_update": 1727874566192, - "version": "0.85", + "last_update": 1730202946490, + "version": "0.86", "url": "https://library.sannybuilder.com/#/gta_iv" }, "extensions": [ @@ -229,7 +229,12 @@ ], "name": "ACTIVATE_SCRIPTED_CAMS", "num_params": 2, - "short_desc": "Activates the scripted camera" + "short_desc": "Activates the scripted cameras", + "class": "Camera", + "member": "ActivateScripted", + "attrs": { + "is_static": true + } }, { "name": "ACTIVATE_VECTOR_MAP", @@ -4686,7 +4691,13 @@ } ], "name": "CLEAR_NAMED_CUTSCENE", - "num_params": 1 + "num_params": 1, + "class": "Cutscene", + "member": "ClearNamed", + "short_desc": "Ends the specified cutscene, freeing game memory", + "attrs": { + "is_static": true + } }, { "name": "CLEAR_NETWORK_RESTART_NODE_GROUP_LIST", @@ -13108,8 +13119,8 @@ { "output": [ { - "name": "_p1", - "type": "int", + "name": "languageId", + "type": "Language", "source": "var_any" } ], @@ -13117,7 +13128,7 @@ "num_params": 1, "class": "Game", "member": "GetCurrentLanguage", - "short_desc": "Returns the current language set in the menu language settings", + "short_desc": "Returns the current language", "attrs": { "is_static": true } @@ -20822,7 +20833,12 @@ ], "name": "INIT_CUTSCENE", "num_params": 1, - "short_desc": "Loads a cutscene with the name" + "short_desc": "Loads a cutscene with the name", + "class": "Cutscene", + "member": "Init", + "attrs": { + "is_static": true + } }, { "name": "INIT_DEBUG_WIDGETS", @@ -36537,7 +36553,8 @@ "member": "SetHeading", "attrs": { "is_static": true - } + }, + "short_desc": "Sets the game camera heading" }, { "input": [ @@ -36547,7 +36564,13 @@ } ], "name": "SET_GAME_CAM_PITCH", - "num_params": 1 + "num_params": 1, + "class": "Camera", + "member": "SetPitch", + "short_desc": "Sets the game camera pitch", + "attrs": { + "is_static": true + } }, { "name": "SET_GAME_CAMERA_CONTROLS_ACTIVE", @@ -42532,7 +42555,13 @@ } ], "name": "START_CUTSCENE_NOW", - "num_params": 1 + "num_params": 1, + "class": "Cutscene", + "member": "StartNow", + "attrs": { + "is_static": true + }, + "short_desc": "Loads and then starts the cutscene" }, { "name": "START_END_CREDITS_MUSIC", diff --git a/assets/gta_iv/snippets.json b/assets/gta_iv/snippets.json index 9475e7397..3aaa6419c 100644 --- a/assets/gta_iv/snippets.json +++ b/assets/gta_iv/snippets.json @@ -4,6 +4,7 @@ }, "default": { "ABORT_SCRIPTED_CONVERSATION": "Conversation.AbortScripted(false);", + "ACTIVATE_SCRIPTED_CAMS": "Camera.ActivateScripted(true, true);", "ADD_LINE_TO_CONVERSATION": "Conversation.NewScripted();\nConversation.AddNewSpeaker(0, ExamplePed1, \"ROMAN\");\nConversation.AddNewSpeaker(1, ExamplePed2, \"NIKO\");\nConversation.AddNewSpeaker(2, ExamplePed3, \"JACOB\");\nConversation.AddLine(0, \"R1_AA\", \"PDB_ADDR_3\", 0, 0);\nConversation.AddLine(1, \"R1_BA\", \"SG_TIT\", 0, 0);\nConversation.AddLine(2, \"R6_AA\", \"MO_ANISO\", 0, 0);\nConversation.StartScript(true, true);\nwhile (Conversation.IsScriptedOngoing()) {\n wait(0);\n}\nText.ClearPrints();", "ADD_LINE_TO_MOBILE_PHONE_CALL": "Conversation.NewScripted();\nConversation.AddNewSpeaker(0, ExamplePed1, \"ROMAN\");\nConversation.AddNewSpeaker(1, ExamplePed2, \"NIKO\");\nConversation.AddNewSpeaker(2, ExamplePed3, \"JACOB\");\nConversation.AddLineToMobilePhoneCall(0, \"R1_AA\", \"PDB_ADDR_3\");\nConversation.AddLineToMobilePhoneCall(1, \"R1_BA\", \"SG_TIT\");\nConversation.AddLineToMobilePhoneCall(2, \"R6_AA\", \"MO_ANISO\");\nConversation.StartScript(true, true);\nwhile (Conversation.IsScriptedOngoing()) {\n wait(0);\n}\nText.ClearPrints();", "ADD_NEW_CONVERSATION_SPEAKER": "Conversation.NewScripted();\nConversation.AddNewSpeaker(0, ExamplePed1, \"ROMAN\");\nConversation.AddNewSpeaker(1, ExamplePed2, \"NIKO\");\nConversation.AddNewSpeaker(2, ExamplePed3, \"JACOB\");\nConversation.AddLine(0, \"R1_AA\", \"PDB_ADDR_3\", 0, 0);\nConversation.AddLine(1, \"R1_BA\", \"SG_TIT\", 0, 0);\nConversation.AddLine(2, \"R6_AA\", \"MO_ANISO\", 0, 0);\nConversation.StartScript(true, true);\nwhile (Conversation.IsScriptedOngoing()) {\n wait(0);\n}\nText.ClearPrints();", @@ -18,6 +19,8 @@ "PRELOAD_STREAM_WITH_START_OFFSET": "while (!Audio.PreloadStreamWithStartOffset(\"QUB3D_MUSIC\", 20000)) {\n wait(0);\n}\nAudio.PlayStreamFrontend();", "PRINT_STRING_WITH_LITERAL_STRING": "Text.PrintStringWithLiteralString(\"string\", \"MyText\", 5000, true);", "PRINT_STRING_WITH_LITERAL_STRING_NOW": "Text.PrintStringWithLiteralStringNow(\"string\", \"MyText\", 5000, true);", + "SET_GAME_CAM_HEADING": "Camera.SetHeading(0.0);", + "SET_GAME_CAM_PITCH": "Camera.SetGamePitch(0.0);", "START_SCRIPT_CONVERSATION": "Conversation.NewScripted();\nConversation.AddNewSpeaker(0, ExamplePed1, \"ROMAN\");\nConversation.AddNewSpeaker(1, ExamplePed2, \"NIKO\");\nConversation.AddNewSpeaker(2, ExamplePed3, \"JACOB\");\nConversation.AddLine(0, \"R1_AA\", \"PDB_ADDR_3\", 0, 0);\nConversation.AddLine(1, \"R1_BA\", \"SG_TIT\", 0, 0);\nConversation.AddLine(2, \"R6_AA\", \"MO_ANISO\", 0, 0);\nConversation.StartScript(true, true);\nwhile (Conversation.IsScriptedOngoing()) {\n wait(0);\n}\nText.ClearPrints();", "STOP_STREAM": "while (!Audio.PreloadStream(\"QUB3D_MUSIC\")) {\n wait(0);\n}\nAudio.PlayStreamFrontend();\nwait(5000);\nAudio.StopStream();", "TASK_PLAY_ANIM_FACIAL": "Task.PlayAnimFacial(ped, \"shocked\", \"facials@m_hi\", 1.0f, 0, 0, -1);" diff --git a/ngsw.json b/ngsw.json index bc475ffb5..744a57abc 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1730136556319, + "timestamp": 1730210458742, "index": "/index.html", "assetGroups": [ {