From 66020c7fc92556b2b823d7c5b9cee8c1d5bfa423 Mon Sep 17 00:00:00 2001 From: RobinCode Date: Mon, 17 Jun 2024 17:50:25 +0800 Subject: [PATCH] Add CDOTA_Buff.IsNull and fix CreateItem --- build/vscripts/api/data/index.ts | 12 ++++++++++++ build/vscripts/api/data/moddota-dump.ts | 2 +- files/engine-enums.json | 16 ++++++++++++---- files/vscripts/api.json | 12 +++++++++++- 4 files changed, 36 insertions(+), 6 deletions(-) diff --git a/build/vscripts/api/data/index.ts b/build/vscripts/api/data/index.ts index 15a9e91..b4059a6 100644 --- a/build/vscripts/api/data/index.ts +++ b/build/vscripts/api/data/index.ts @@ -142,6 +142,18 @@ export const classExtensions: Record = { }, ], }, + CDOTA_Buff: { + members: [ + { + kind: 'function', + name: 'IsNull', + available: 'both', + description: 'Has underlying C++ entity object been deleted?', + returns: ['bool'], + args: [], + }, + ], + }, }; export const functionExtensions: Record = { diff --git a/build/vscripts/api/data/moddota-dump.ts b/build/vscripts/api/data/moddota-dump.ts index f5e9c21..437d3c4 100644 --- a/build/vscripts/api/data/moddota-dump.ts +++ b/build/vscripts/api/data/moddota-dump.ts @@ -575,7 +575,7 @@ export const moddotaDump: Record = { args: { '0': ['itemName'], '1': ['owner', ['CDOTAPlayerController', 'nil']], - '2': ['purchaser', ['CDOTAPlayerController', 'nil']], + '2': ['purchaser', ['CDOTA_BaseNPC_Hero', 'nil']], }, }, '_G.CreateItemOnPositionForLaunch': { diff --git a/files/engine-enums.json b/files/engine-enums.json index c7d8f63..ca09dc4 100644 --- a/files/engine-enums.json +++ b/files/engine-enums.json @@ -2639,6 +2639,10 @@ "name": "ACT_HL2MP_GESTURE_RELOAD_MELEE", "shortName": "HL2MP_GESTURE_RELOAD_MELEE" }, + { + "name": "ACT_HL2MP_IDLE_CROUCH_MELEE", + "shortName": "HL2MP_IDLE_CROUCH_MELEE" + }, { "name": "ACT_HL2MP_IDLE_MELEE", "shortName": "HL2MP_IDLE_MELEE" @@ -2675,10 +2679,6 @@ "name": "ACT_IDLE_AIM_AGITATED", "shortName": "IDLE_AIM_AGITATED" }, - { - "name": "ACT_IDLE_AIM_AUTOGUN", - "shortName": "IDLE_AIM_AUTOGUN" - }, { "name": "ACT_IDLE_AIM_DUAL", "shortName": "IDLE_AIM_DUAL" @@ -6530,6 +6530,10 @@ "name": "DOTA_ABILITY_BEHAVIOR_UNRESTRICTED", "shortName": "UNRESTRICTED" }, + { + "name": "DOTA_ABILITY_BEHAVIOR_UNSWAPPABLE", + "shortName": "UNSWAPPABLE" + }, { "name": "DOTA_ABILITY_BEHAVIOR_VECTOR_TARGETING", "shortName": "VECTOR_TARGETING" @@ -6717,6 +6721,10 @@ { "name": "UnitTargetFlags", "members": [ + { + "name": "DOTA_UNIT_TARGET_FLAG_CAN_BE_SEEN", + "shortName": "CAN_BE_SEEN" + }, { "name": "DOTA_UNIT_TARGET_FLAG_CHECK_DISABLE_HELP", "shortName": "CHECK_DISABLE_HELP" diff --git a/files/vscripts/api.json b/files/vscripts/api.json index 194cc90..e9067e6 100644 --- a/files/vscripts/api.json +++ b/files/vscripts/api.json @@ -12791,6 +12791,16 @@ ], "args": [] }, + { + "kind": "function", + "name": "IsNull", + "available": "both", + "description": "Has underlying C++ entity object been deleted?", + "returns": [ + "bool" + ], + "args": [] + }, { "kind": "function", "name": "IsStunDebuff", @@ -35712,7 +35722,7 @@ { "name": "purchaser", "types": [ - "CDOTAPlayerController", + "CDOTA_BaseNPC_Hero", "nil" ] }