Virtual item control method, device and equipment, computer readable storage medium and computer program product
By displaying the placement location of virtual trap items in a virtual scene and entering remote control mode, the limitation of virtual trap item operation is solved, enabling players to flexibly control virtual trap items and improving operational freedom.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2026-03-13
AI Technical Summary
In multiplayer action role-playing games, virtual trap items have relatively limited operation methods and low degree of freedom of operation, and can only be activated after satisfactory activation conditions are met.
A method for controlling virtual props is provided, which allows players to display virtual trap props of target virtual objects in a virtual scene, display the placement position in response to the use operation, and place the prop at the target position to enter remote control mode, and players can remotely activate the trap function.
It increases the player's freedom of operation with virtual trap items, allowing players to activate trap functions at any time in remote control mode, thus enhancing operational flexibility.
Smart Images

Figure CN121648561A_ABST
Abstract
Description
Technical Field
[0001] This application relates to human-computer interaction technology, and more particularly to a method, device, equipment, storage medium, and program product for controlling virtual props. Background Technology
[0002] Display technologies based on graphics processing hardware have expanded the channels for perceiving the environment and acquiring information. In particular, virtual scene display technologies can realize diverse interactions between virtual objects controlled by users or artificial intelligence according to actual application needs, and have various typical application scenarios. For example, in the virtual scene of games, it can simulate the real battle process between virtual characters.
[0003] In multiplayer action role-playing games (ARPGs), players sometimes need to use virtual trap items to interact. However, virtual trap items in related technologies usually need to meet satisfactory activation conditions before they can be activated (such as the trap function can only be activated or triggered when the activation time is up). This passively triggered virtual trap results in relatively limited player operation methods and low degree of operational freedom. Summary of the Invention
[0004] This application provides a method, device, electronic device, computer-readable storage medium, and computer program product for controlling virtual items, which can improve the player's freedom of operation regarding virtual trap items.
[0005] The technical solution of this application embodiment is implemented as follows:
[0006] This application provides a method for controlling virtual props, including:
[0007] The virtual trap items owned by the target virtual object are displayed in the virtual scene's item interface.
[0008] In response to an operation involving the use of the virtual trap prop, the target location for placing the virtual trap prop is displayed in the interactive area of the virtual scene;
[0009] In response to the prop placement operation, the target virtual object is controlled to place the virtual trap prop at the target location, and the virtual trap prop is controlled to enter a remote control state;
[0010] In response to remote control operation of the prop, the target virtual object is controlled to remotely activate the trap function of the virtual trap prop in the remote control state.
[0011] This application provides a control device for virtual props, including:
[0012] The prop display module is used to display the virtual trap props possessed by the target virtual object in the prop interface of the virtual scene;
[0013] A location display module is used to display the target location for placing the virtual trap prop in the interactive area of the virtual scene in response to the operation of using the virtual trap prop;
[0014] A trap placement module is used to respond to an item placement operation, control the target virtual object to place the virtual trap item at the target location, and control the virtual trap item to enter a remote control state;
[0015] The trap activation module is used to respond to the remote control operation of the prop, and control the target virtual object to remotely activate the trap function of the virtual trap prop in the remote control state.
[0016] In the above scheme, the position display module is further configured to control the virtual trap prop to be in a placeable state in response to the operation of using the virtual trap prop; and to determine the pre-placement position based on the crosshair associated with the aiming operation and the pre-placement trajectory of the virtual trap prop in response to the aiming operation, and to display the pre-placement position as the target position for placing the virtual trap prop.
[0017] In the above scheme, the position display module is further configured to determine the pre-placement trajectory of the virtual trap prop based on the crosshair associated with the aiming operation and the prop attributes of the virtual trap prop; determine the pre-placement area of the virtual trap prop based on the trap function of the virtual trap prop and the environmental information of the virtual scene; perform collision detection on the pre-placement trajectory and the pre-placement area, and determine the position in the pre-placement area that collides with the pre-placement trajectory as the pre-placement position.
[0018] In the above scheme, the location display module is further configured to display the trap phantom of the virtual trap prop in the virtual scene, and use the location of the trap phantom as the target location for placing the virtual trap prop; or, to display the target location for placing the virtual trap prop using a target style, wherein the target style includes at least one of the following: special effect display style, text indication style.
[0019] In the above scheme, the location display module is further configured to, in response to the fact that there are multiple target locations for placing the virtual trap props, determine the placement priority of each target location; and display each target location using a display style corresponding to the placement priority.
[0020] In the above scheme, the location display module is further configured to obtain influence parameters that affect the placement priority of each of the target locations, wherein the influence parameters include at least one of the following: the location characteristics of the target location, the effective range of the virtual trap prop, the first relative position between the target location and the target virtual object, and the second relative position between the target location and the adversary virtual object of the target virtual object; based on the influence parameters, a neural network model is invoked to perform placement priority prediction processing to obtain the placement priority of each of the target locations; wherein the neural network model is trained using location samples, the influence parameters corresponding to the location samples, and the placement priorities labeled on the location samples.
[0021] In the above scheme, after displaying the target location for placing the virtual trap prop, the device further includes: a control display module, used to display a placement control at an associated location of the target location, the placement control being used to trigger the prop placement operation.
[0022] In the above scheme, after the virtual trap prop is controlled to enter the remote control state, the device further includes: a remote control display module, used to display failure indication information at the associated position of the target position in the interactive area; or, to display a remote control icon and failure indication information at the associated position of the prop icon of the virtual trap prop in the prop interface; wherein, the remote control icon indicates that the virtual trap prop is in the remote control state, and the failure indication information is used to indicate the failure progress of the virtual trap prop.
[0023] In the above scheme, the prop display module is further used to display the prop carrying position in the prop interface of the virtual scene, and display the prop icon of the virtual trap prop owned by the target virtual object in the prop carrying position; the remote control display module is further used to display the sub-carrying position at the corner of the prop carrying position, and display the remote control icon and failure indication information in the sub-carrying position.
[0024] In the above scheme, the remote control display module is further configured to display a remote control icon in the middle area of the sub-bearing position; display a failure progress bar on the boundary of the sub-bearing position, and use the failure progress bar as failure indication information, wherein the length of the failure progress bar is negatively correlated with the failure progress of the virtual trap prop; or, use the display color of the sub-bearing position as failure indication information, wherein different display colors indicate different failure progress of the virtual trap prop.
[0025] In the above scheme, the remote control display module is further configured to display a remote control icon using a first display style; the device further includes: a style update module, configured to display the remote control icon using a second display style in response to the presence of an adversary virtual object within the range of the virtual trap prop; wherein, the second display style is used to prompt the target virtual object to trigger the prop remote control operation, and the adversary virtual object and the target virtual object have an adversarial interactive relationship.
[0026] In the above scheme, after the remote control icon is displayed using the second display style, the device further includes: a style restoration module, used to control the display style of the remote control icon to be restored from the second display style to the first display style in response to the virtual object being outside the range of the virtual trap prop.
[0027] In the above scheme, the device further includes: a cancellation display module, used to control the virtual trap prop to exit the remote control state and cancel the display of the remote control icon and the failure indication information after the target virtual object remotely activates the trap function of the virtual trap prop, or when the failure indication information indicates that the virtual trap prop has failed.
[0028] In the above scheme, the remote control display module is further configured to display failure indication information indicating that the virtual trap prop is in a first failure progress; the device further includes: an prop switching module, configured to, in response to a first switching operation, control the target virtual object to switch from controlling the virtual trap prop to controlling the target virtual prop; and continuously update the failure progress of the virtual trap prop during the process of the target virtual object controlling the target virtual prop.
[0029] In the above scheme, the prop switching module is further configured to, in response to the second switching operation, control the target virtual object to switch from controlling the target virtual prop to controlling the virtual trap prop; in response to the virtual trap prop still being in the remote control state, display failure indication information indicating that the virtual trap prop is in a second failure progress, the second failure progress being greater than the first failure progress; in response to the virtual trap prop not being in the remote control state, display failure indication information indicating that the virtual trap prop has failed.
[0030] In the above scheme, after displaying the virtual trap props owned by the target virtual object in the prop interface of the virtual scene, the device further includes: a quantity display module, used to display the quantity identifier of the virtual trap props in the prop interface; after controlling the target virtual object to remotely activate the trap function of the virtual trap props in the remote control state, the device further includes: a quantity update module, used to update the quantity identifier, wherein the quantity of the virtual trap props indicated by the updated quantity identifier is less than the quantity of the virtual trap props indicated by the quantity identifier before the update.
[0031] This application provides an electronic device, including:
[0032] Memory is used to store executable instructions or computer programs.
[0033] The processor, when executing computer-executable instructions or computer programs stored in the memory, implements the virtual prop control method provided in the embodiments of this application.
[0034] This application provides a computer-readable storage medium storing computer-executable instructions or computer programs, which, when executed by a processor, implement the virtual item control method provided in this application.
[0035] This application provides a computer program product, including a computer program or computer executable instructions. When the computer program or computer executable instructions are executed by a processor, they implement the virtual item control method provided in this application.
[0036] The embodiments of this application have the following beneficial effects:
[0037] By applying the embodiments of this application, the virtual trap items owned by the target virtual object are displayed in the prop interface of the virtual scene; in response to the operation of using the virtual trap items, the target location for placing the virtual trap items is displayed in the control area of the virtual props; in response to the prop placement operation, the target virtual object is controlled to place the virtual trap items at the target location, and the virtual trap items are controlled to enter remote control mode; in response to the prop remote control operation, the target virtual object is controlled to remotely activate the trap function of the virtual trap items in remote control mode; thus, players can activate or trigger the trap function of the virtual trap items at any time according to actual needs while the virtual trap items are in remote control mode, that is, before the virtual trap items become invalid, thereby improving the player's freedom of operation over virtual trap items. Attached Figure Description
[0038] Figure 1 This is a schematic diagram of the architecture of the control system 100 for virtual props provided in this application embodiment;
[0039] Figure 2 This is a schematic diagram of the structure of the electronic device 500 provided in the embodiments of this application;
[0040] Figure 3 This is a flowchart illustrating the method for controlling virtual props provided in an embodiment of this application;
[0041] Figures 4-5 This is a schematic diagram showing the placement of the trap props provided in the embodiments of this application;
[0042] Figure 6 This is a schematic diagram showing the placement control provided in an embodiment of this application;
[0043] Figure 7 This is a schematic diagram showing the display of the prop icon provided in the embodiment of this application;
[0044] Figure 8 This is a schematic diagram illustrating the changes in the displayed content provided in the embodiments of this application;
[0045] Figure 9 This is a schematic diagram illustrating the quantity update of virtual trap items provided in the embodiments of this application;
[0046] Figure 10 This is a flowchart illustrating the control method for virtual props provided in the embodiments of this application. Detailed Implementation
[0047] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0048] It is understood that in the embodiments of this application, data such as user information are involved. When the embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with relevant laws, regulations and standards.
[0049] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0050] In the following description, the terms “first, second…” are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that “first, second…” may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0051] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0053] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.
[0054] 1) Client: An application that runs on a terminal and provides various services, such as a video playback client or a game client.
[0055] 2) In response, used to indicate the conditions or states on which the operation performed depends. When the conditions or states on which it depends are met, one or more operations performed may be performed in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations are performed.
[0056] 3) A virtual scene is a virtual scene displayed (or provided) by an application when it runs on a terminal. This virtual scene can be a simulation of the real world, a semi-simulated / semi-fictional virtual environment, or a purely fictional virtual environment. A virtual scene can be any of a two-dimensional, 2.5-dimensional, or three-dimensional virtual scene; this application does not limit the dimension of the virtual scene. For example, the virtual scene may include sky, land, ocean, etc., and the land may include environmental elements such as deserts and cities. Users can control virtual objects to move within the virtual scene.
[0057] 4) Virtual objects: These are interactive images of people and things within a virtual scene, or movable objects within the virtual scene. These movable objects can be virtual characters, virtual animals, anime characters, etc., such as people and animals displayed in a virtual scene. A virtual object can be a virtual avatar representing the user within the virtual scene. A virtual scene can include multiple virtual objects, each with its own shape and volume, occupying a portion of the space within the virtual scene. Virtual characters can also be game characters controlled by the user (or player).
[0058] 5) Virtual items are equipment, items, or skills used by virtual objects in a virtual environment. Virtual items can be divided into functional items, decorative items, and resource items. Functional items possess specific functions, such as speed boosts, increased attack power, restored health, or special abilities. These include virtual weapons that provide attack power (such as swords, bows, and guns), virtual armor that reduces damage taken by the player (such as armor and shields), virtual accessories that provide special buffs (such as rings and amulets), and virtual items that provide special functions (such as maps and compasses). Decorative items are mainly used to change the appearance of virtual objects and enhance character personalization, without directly affecting gameplay or performance. Resource items typically represent in-game resources, such as gold coins, potions, and materials. Players can use them to purchase other items or craft new items or props.
[0059] Virtual trap items are a special type of virtual item used to hinder, harm, or trap players or non-player characters. They are virtual items that can reduce a player's health or restrict their movement. Virtual trap items usually contain a mechanism that triggers or activates the trap function when a player touches or uses the virtual trap item. This trap function usually causes certain negative effects to the player, such as reducing health, slowing down, freezing, or losing items. Virtual trap items include physical trap items (such as spike traps, fall traps, pressure plate traps, etc.), magical trap items (such as magic circles and magic barriers), mechanical trap items (such as arrow traps, rolling stone traps, detection mechanism traps, etc.), environmental trap items (such as swamps, lava, etc.), poison trap items (such as poison arrows, poison gas, poison water, etc.), sound trap items (such as screech traps (which emit a loud sound when triggered, potentially attracting enemies or revealing hidden paths), and silence traps (which temporarily disable players or enemies or impair their ability to hide)), visual traps (such as illusion traps, hiding traps, etc.), and laser traps (traps made using items that can shoot lasers; these traps are placed in a crisscross pattern on the walls along the road to damage passing creatures).
[0060] This application provides a method, apparatus, electronic device, computer-readable storage medium, and computer program product for controlling virtual items, which can improve the player's freedom of operation regarding virtual trap items. The following describes exemplary applications of the electronic device provided in this application. The electronic device provided in this application can be implemented as various types of user terminals such as laptops, tablets, desktop computers, set-top boxes, mobile devices (e.g., mobile phones, portable music players, personal digital assistants, dedicated messaging devices, portable gaming devices), smartphones, smart speakers, smartwatches, smart TVs, in-vehicle terminals, augmented reality (AR) devices, and virtual reality (VR) devices, or it can be implemented as a server. The following will describe exemplary applications when the device is implemented as a terminal.
[0061] See Figure 1 , Figure 1 This is a schematic diagram of the architecture of the virtual prop control system 100 provided in the embodiments of this application. In order to support an exemplary application, the terminal (terminal 400-1 and terminal 400-2 are shown as examples) connects to the server 200 through the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two.
[0062] In some embodiments, the terminal is equipped with a client (such as a game client) that has virtual item control functions. The server 200 is the backend server corresponding to the client. It can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The terminal and the server can be directly or indirectly connected through wired or wireless communication, which is not limited in this embodiment.
[0063] In practical applications, the terminal displays the virtual trap props owned by the target virtual object in the prop interface of the virtual scene; in response to the use operation of the virtual trap props, it sends a use request for the virtual trap props to the server 200; based on the use request, the server 200 determines the target location for placing the virtual trap props in the interactive area of the virtual scene and returns the determined target location to the terminal; the terminal displays the target location for placing the virtual trap props in the interactive area of the virtual scene; in response to the prop placement operation, it controls the target virtual object to place the virtual trap props at the target location and controls the virtual trap props to enter remote control mode; in response to the prop remote control operation, it controls the target virtual object to remotely activate the trap function of the virtual trap props in remote control mode.
[0064] See Figure 2 , Figure 2 This is a schematic diagram of the structure of the electronic device 500 provided in the embodiments of this application, with the electronic device 500 as an example. Figure 1 Taking the terminal in the middle as an example, Figure 2 The illustrated electronic device 500 includes at least one processor 510, a memory 550, at least one network interface 520, and a user interface 530. The various components in the electronic device 500 are coupled together via a bus system 540. It is understood that the bus system 540 is used to implement communication between these components. In addition to a data bus, the bus system 540 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 2 The general labeled all buses as Bus System 540.
[0065] The processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc.
[0066] Memory 550 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 550 described in this application embodiment is intended to include any suitable type of memory. Memory 550 may optionally include one or more storage devices physically located away from processor 510.
[0067] In some embodiments, memory 550 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.
[0068] Operating system 551 includes system programs for handling various basic system services and performing hardware-related tasks, such as framework layer, core library layer, driver layer, etc., for implementing various basic business functions and handling hardware-based tasks; network communication module 552 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 include: Bluetooth, WiFi, and Universal Serial Bus (USB), etc.
[0069] In some embodiments, the control device for virtual props provided in this application can be implemented in software. The control device for virtual props provided in this application can be provided in various software embodiments, including various forms such as applications, software, software modules, scripts or code. Figure 2 A control device 555 for virtual props stored in memory 550 is shown. It may be software in the form of programs and plug-ins, and includes a series of modules, including a prop display module 5551, a position display module 5552, a trap placement module 5553, and a trap activation module 5554. These modules are logically connected and can therefore be arbitrarily combined or further separated according to the functions they implement. The functions of each module will be described below.
[0070] In other embodiments, the apparatus provided in this application can be implemented in hardware. As an example, the apparatus provided in this application can be a processor in the form of a hardware decoding processor, which is programmed to execute the control method of the virtual props provided in this application. For example, the processor in the form of a hardware decoding processor can be one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.
[0071] In some embodiments, the terminal or server can implement the virtual item control method provided in this application embodiment by running various computer-executable instructions or computer programs. For example, computer-executable instructions can be microprogram-level commands, machine instructions, or software instructions. Computer programs can be native programs or software modules in an operating system; they can be native applications (APPs), i.e., programs that need to be installed in the operating system to run, such as game APPs; or they can be applets that can be embedded in any APP, i.e., programs that only need to be downloaded to a browser environment to run (such as game applets). In summary, the aforementioned computer-executable instructions can be any form of instruction, and the aforementioned computer programs can be any form of application, module, or plugin.
[0072] As mentioned above, the virtual prop control method provided in this application embodiment can be implemented by various types of electronic devices, such as... Figure 1 Either the terminal or the server 200 can be executed independently, or it can be... Figure 1 The terminal and server 200 in the process work together. Next, [the process will be carried out by...] Figure 1 The method for controlling virtual items provided in this application is illustrated by taking a terminal in the middle that executes the method separately as an example. See also Figure 3 , Figure 3 This is a flowchart illustrating the control method for virtual props provided in the embodiments of this application, which will be combined with... Figure 3 The steps shown are explained.
[0073] Step 101: The terminal displays the virtual trap items owned by the target virtual object in the props interface of the virtual scene.
[0074] Among them, the target virtual object refers to the virtual object controlled by the target account (player) on the current terminal side in the virtual scene; players can own virtual trap items by purchasing, picking up or receiving them from others, that is, players acquire ownership of virtual trap items. Acquiring ownership of virtual trap items means that players have rights similar to property rights in the real world over virtual trap items, which means that players or target virtual objects have control and use rights over virtual trap items.
[0075] The virtual scene's item interface is used to display the virtual items possessed by the target virtual object. The terminal can display one or more virtual trap items in the virtual scene's item interface, as well as other non-trap virtual items possessed by the target virtual object. When multiple virtual trap items are displayed in the item interface, the player can select the virtual trap item to use to hinder, harm, or trap adversaries or non-player characters in the virtual scene who are in a confrontational interaction with the target virtual object.
[0076] Step 102: In response to the use of the virtual trap prop, the target location for placing the virtual trap prop is displayed in the interactive area of the virtual scene.
[0077] In practical applications, the triggering method for players' actions related to virtual trap items (such as usage, placement, and remote control) is related to the type of terminal. For example, when the terminal is a mobile device (such as a smartphone or tablet with a touchscreen), the corresponding action can be triggered by triggering the corresponding control or icon in the virtual scene running on the mobile device. When the terminal is a desktop device (such as a desktop computer or laptop), the corresponding action can be triggered by triggering the function keys on the input device such as a mouse or keyboard in the virtual scene running on the desktop.
[0078] Taking the mobile terminal as an example and the operation related to virtual trap items as the usage operation, when the terminal displays virtual trap items in the item interface of the virtual scene (virtual trap items are usually represented by item identifiers such as names or icons in the item interface), the item identifier (such as icon, name, etc.) of the virtual trap item can be used as the item usage control. It can also display an item usage control that is independent of the virtual trap item. Players can trigger the usage operation of the virtual trap item by triggering the item usage control. That is, after the player triggers the item usage control, the virtual trap item placement process begins.
[0079] Taking the terminal as the desktop and the operation related to virtual trap items as the usage operation, after the terminal displays the virtual trap item in the item interface of the virtual scene (the virtual trap item is usually represented by the name or icon of the virtual trap item in the item interface), the player can trigger the use operation of the virtual trap item by triggering the item use key pre-configured on the input device such as keyboard or mouse. That is, after the player triggers the item use key on the input device, the virtual trap item placement process begins.
[0080] It should be noted that the player's actions on controls or buttons include, but are not limited to, single-click, double-click, long-press, and swipe actions. This application does not limit the triggering method of the player's actions on controls or buttons.
[0081] In some embodiments, the terminal may display a target location for placing a virtual trap prop in response to a use operation on the virtual trap prop in the following ways: in response to a use operation on the virtual trap prop, controlling the virtual trap prop to be in a placeable state; in response to an aiming operation, determining a pre-placement location based on the crosshair associated with the aiming operation and the pre-placement trajectory of the virtual trap prop, and displaying the pre-placement location as the target location for placing the virtual trap prop.
[0082] In practical applications, when a player triggers a use action on a virtual trap item, the terminal responds to the action by putting the virtual trap item into a placeable state. The player can then place the placeable virtual trap item in the interactive area of the virtual scene. When determining the pre-placement location, the player can aim using the crosshair and the pre-placement trajectory of the virtual trap item. The pre-placement location suitable for placing the virtual trap item is displayed as the target location, reminding the player to place the placeable virtual trap item at the target location in the interactive area to trigger or activate the trap function of the virtual trap item at the target location.
[0083] In some embodiments, the terminal can determine the pre-placement position based on the crosshair associated with the aiming operation and the pre-placement trajectory of the virtual trap prop in the following manner: determining the pre-placement trajectory of the virtual trap prop based on the crosshair associated with the aiming operation and the prop attributes of the virtual trap prop; determining the pre-placement area of the virtual trap prop based on the trap function of the virtual trap prop and the environmental information of the virtual scene; performing collision detection on the pre-placement trajectory and the pre-placement area, and determining the position in the pre-placement area that collides with the pre-placement trajectory as the pre-placement position.
[0084] In practical applications, the crosshair is usually a user interface element provided by the game engine. It is rendered by the game engine based on the player's camera position and direction and is used to indicate the player's (i.e., the target virtual object's) current line of sight. Before placing virtual traps, when determining the pre-placement location using the crosshair and pre-placement trajectory, it's usually necessary to determine the pre-placement trajectory based on the virtual trap's attributes (such as item type or placement mechanism), trap function, and optimal placement location. For example, when the virtual trap is a grenade with a delayed explosion function, a parabolic trajectory can be used as the pre-placement trajectory. Simultaneously, possible pre-placement areas are determined based on environmental information in the virtual scene (such as terrain, obstacles, and enemy information). For example, passageways and cover in the virtual scene are all possible pre-placement areas. After determining the pre-placement trajectory and area, collision detection can be performed. For example, when the terminal is a desktop, the player can project a virtual object by clicking the mouse or a key on the keyboard and control the virtual object to move along the pre-placement trajectory. If the virtual object lands in the pre-placement area, it can be considered that there is a collision between the pre-placement trajectory and the pre-placement area. At this point, the location in the pre-placement area where the collision with the pre-placement trajectory occurs (i.e., the landing location of the virtual object) can be determined as the pre-placement location (i.e., the target location). Since the crosshair moves with the player (or the player's camera), when the crosshair moves to the target location, the terminal can provide visual (such as displaying the target location) or audio feedback to prompt the player to place virtual trap items at the target location.
[0085] In some embodiments, the terminal may display the target location for placing virtual trap props in the following ways: displaying the trap phantom of the virtual trap prop in the virtual scene and using the location of the trap phantom as the target location for placing the virtual trap prop; or, displaying the target location for placing virtual trap props using a target style, the target style including at least one of the following: special effect display style, text indication style.
[0086] In practical applications, after determining the target location for placing virtual trap items, visual or auditory feedback can be provided to prompt players to place the virtual trap items there. For example, a phantom image of the virtual trap item (with the same outline and shape as the virtual trap item) can be displayed at the target location to prompt players to place the virtual trap item there. Alternatively, a target style can be used to display the target location to distinguish it from other locations in the virtual scene. The target style can be a special effect display style (such as highlighting or flashing the target location) or a text instruction style, that is, the target location can be indicated in text form (such as "Place the trap item here to maximize its trap function") to prompt players to place the virtual trap item there.
[0087] See Figures 4-5 , Figures 4-5 This is a schematic diagram showing the placement of the trap props provided in the embodiments of this application. Figure 4 Taking the highlighting of the target location through the trap phantom as an example, when the player triggers the operation to use the virtual trap item 402 in the item interface 401, after the terminal determines the target location where the virtual trap item 402 can be placed, the trap phantom 403 of the virtual trap item 402 is displayed at the target location. The trap phantom 403 prominently prompts the player that the virtual trap item 402 can be placed at the target location where the trap phantom 403 is located. Figure 5 In the example of displaying the target location through the target style, when the player triggers the operation of using the virtual trap item 502 in the item interface 501, after the terminal determines the target location 503 where the virtual trap item 502 can be placed, while highlighting the target location 503, it can also display text 504 such as "Placing the trap item here can maximize the trap function" to highlight the target location, so as to prompt the player to place the virtual trap item 502 at the target location 503.
[0088] By visually highlighting the target location, players gain an intuitive understanding of where virtual trap items can be placed, making it easier for them to quickly place the items in suitable locations and improving placement efficiency.
[0089] In some embodiments, the terminal may display the target locations for placing virtual trap props in the following manner: in response to the number of target locations for placing virtual trap props being multiple, determining the placement priority of each target location; and displaying each target location using a display style corresponding to the placement priority.
[0090] In practical applications, when there are multiple suitable target locations for placing virtual trap items in a virtual scene, the placement priorities of different target locations can be different. Based on the placement priority of each target location, a corresponding display style can be used to display each target location. That is, for target locations with different placement priorities, a display style corresponding to the placement priority can be used to display each target location, such as different display colors, different display brightness, different display fonts, etc., or to highlight target locations with higher placement priorities. For example, if there are three selectable target locations, namely target location 1, target location 2, and target location 3, with their placement priorities decreasing sequentially, target location 1 is highlighted in red, target location 2 in green, and target location 3 in yellow. This makes it easier for players to select the desired target location to place virtual trap items, improving the targeting and efficiency of virtual trap item placement.
[0091] In some embodiments, the terminal may determine the placement priority of each target location by: obtaining influence parameters for influencing the placement priority of each target location, wherein the influence parameters include at least one of the following: the location characteristics of the target location, the first relative position between the target location and the target virtual object, the effective range of the virtual trap prop, and the second relative position between the target location and the adversary virtual object of the target virtual object; based on the influence parameters, calling a neural network model to perform placement priority prediction processing to obtain the placement priority of each target location; wherein the neural network model is trained using location samples, the influence parameters corresponding to the location samples, and the placement priorities labeled on the location samples.
[0092] In practical applications, the location characteristics of a target position can be determined based on its position within the virtual scene and the surrounding environmental information (such as terrain and obstacles). The effective range (preset effective range) of a virtual trap prop is limited. For example, when a virtual trap prop is a bomb, if it is placed at the target position, its effective range can be a circular area centered on the target position with a radius equal to the distance from the target. When a virtual trap prop is a laser beam, if it is placed on two walls centered on the target position, its effective range can be the space between the two walls centered on the target position. The placement priority of each target position can be determined based on whether the target position is conducive to maximizing the trap function of the virtual camera prop (i.e., if the virtual trap prop is placed at the target position, whether activating the virtual trap prop will maximize its actual effective range until it approaches the preset effective range). Generally, the closer the actual effective range of a target position is to the preset effective range, the higher its placement priority.
[0093] To avoid virtual traps negatively impacting the player's controlled virtual object, while maximizing their negative impact on the opposing virtual object (i.e., the opposing virtual object and the target virtual object are adversaries in the virtual scene), virtual traps are typically placed in positions that do not negatively impact the target virtual object but do impact the opposing virtual object. Therefore, when multiple target locations are displayed in the virtual scene, the first relative position between the target location and the target virtual object, and the second relative position between the target location and the opposing virtual object, are obtained. These relative positions, combined with the virtual trap's effective range, determine the placement priority of the target location. Generally, the first relative position indicates that the target virtual object is not within the virtual trap's effective range, which has a higher placement priority than the first relative position indicates that the target virtual object is within the virtual trap's effective range. Similarly, the second relative position indicates that the opposing virtual object is within the virtual trap's effective range, which has a higher placement priority than the second relative position indicates that the target virtual object is not within the virtual trap's effective range.
[0094] After obtaining the influence parameters that affect the placement priority of the target location, the neural network model trained with the influence parameters is used for prediction processing to obtain the placement priority of the target location, which can make the prediction more accurate.
[0095] Before applying a neural network model, an initial neural network model needs to be trained. This trained model is then put into application to combine influencing parameters and use artificial intelligence to predict the placement priority of target locations. The neural network model is trained using location samples, their corresponding influencing parameters, and the placement priorities of the labeled locations. For example, based on location samples, their associated location features, and the labeled placement priorities, the initial neural network model is called for prediction processing to obtain the predicted placement priorities. After determining the value of the loss function of the neural network model using the predicted and labeled placement priorities, it can be determined whether the loss function value exceeds a preset threshold. When the loss function value exceeds the preset threshold, an error signal is determined based on the loss function. This error signal is then backpropagated within the neural network model, updating the model parameters of each layer during the propagation process.
[0096] The embodiments of this application do not limit the model structure of the neural network model. For example, the neural network model can be a convolutional neural network, a deep neural network, etc.; nor are they limited to the form of the loss function. For example, it can be a cross-entropy loss function, an L2 loss function, etc.
[0097] Here, we explain backpropagation. Training sample data is input into the input layer of the neural network model, passes through the hidden layers, and finally reaches the output layer to output the result. This is the forward propagation process of the neural network model. Since there is an error between the output result of the neural network model and the actual result, the error between the output result and the actual value is calculated and backpropagated from the output layer to the hidden layers until it reaches the input layer. During the backpropagation process, the values of the model parameters are adjusted according to the error. That is, a loss function is constructed based on the error between the output result and the actual value, and the partial derivatives of the loss function with respect to the model parameters are calculated layer by layer to generate the gradient of the loss function with respect to the model parameters of each layer. Since the direction of the gradient indicates the direction of error amplification, the gradient of the model parameters is inverted and summed with the original parameters of each layer of the model. The summation result is used as the updated model parameters of each layer, thereby reducing the error caused by the model parameters. The above process is iterated until convergence.
[0098] Step 103: In response to the item placement operation, control the target virtual object to place the virtual trap item at the target location, and control the virtual trap item to enter remote control mode.
[0099] In some embodiments, after displaying the target location for placing virtual trap items, or after displaying the target location, the terminal may also display a placement control at an associated location of the target location, wherein the placement control is used to trigger the item placement operation.
[0100] See Figure 6 , Figure 6 This is a schematic diagram of the placement control provided in the embodiment of this application. In practical applications, when the terminal displays the target position 601 for placing virtual trap props in the interactive area of the virtual scene, the placement control (i.e., placement button) 602 can be displayed in the associated position of the target position 601 (such as the surrounding position of the target position, such as the upper right position). Players can trigger the prop placement operation for virtual trap props through the placement control 602. In response to the prop placement operation, the terminal can place the virtual trap props at the target position 601 and control the virtual trap props to enter the remote control state.
[0101] The remote control state refers to the virtual trap prop being in a state where the trap function can be activated or triggered remotely by the player at any time. In other words, the player does not need to control the target virtual object to walk to the location of the virtual trap prop to activate or trigger the trap function of the virtual trap prop from a distance. This not only makes it convenient for players to activate the trap function of the virtual trap prop anytime and anywhere, improving the convenience and efficiency of controlling the virtual trap prop, but also avoids the negative effects of the activated or triggered trap function on the player.
[0102] In some embodiments, after the terminal controls the virtual trap prop to enter the remote control state, failure indication information can also be displayed at the associated location of the target location in the interactive area; or, a remote control icon and failure indication information can be displayed at the associated location of the virtual trap prop's prop icon in the prop interface; wherein, the remote control icon indicates that the virtual trap prop is in the remote control state, and the failure indication information is used to indicate the failure progress of the virtual trap prop.
[0103] In practical applications, virtual trap items have a certain effective duration. The effective duration usually refers to the time from when the virtual trap item is placed at the target location until the last moment when the trap function of the virtual trap item can be activated. For example, if the effective duration of a virtual trap item is 30 seconds, it means that within 30 seconds of the virtual trap item being placed at the target location, the virtual trap item is in a remote control or effective state, and during this period, the player can activate the trap function of the virtual trap item at any time. After 30 seconds of the virtual trap item being placed at the target location, the virtual trap item is in an ineffective state, meaning that after 30 seconds, the player can no longer activate the trap function of the virtual trap item.
[0104] Because virtual trap items have a limited effective duration, when a virtual trap item is placed at the target location, a failure indicator message is displayed to show its failure progress. For example, the failure progress can be represented by a failure countdown or a failure percentage. Assuming the effective duration of a virtual trap item is 30 seconds, its failure progress is 0 when it is first placed at the target location, and the failure countdown is 30 seconds. As time progresses (i.e., the failure countdown decreases second by second from 30 seconds), the failure progress increases synchronously. When the failure countdown reaches zero, the failure progress reaches 100%. Before the failure progress reaches 100% (i.e., before the failure countdown reaches zero), the player can activate the trap function of the virtual trap item at any time. After the failure progress reaches 100% (i.e., after the failure countdown reaches zero), the virtual trap item changes from remote control mode to a disabled state, and the player cannot activate the trap function of the disabled virtual trap item. Therefore, in practical applications, players need to weigh the effective duration of different virtual trap items to determine the timing of remote control operation of virtual trap items, so as to avoid the trap function of virtual trap items not being activated. This limitation on effective duration increases the strategy and depth of the game.
[0105] When a virtual trap item is placed at a target location, a failure indicator can be displayed in the interactive area at a location associated with the target location (such as the surrounding area). Alternatively, in the item interface, a remote control icon indicating that the virtual trap item is in remote control mode and a failure indicator can be displayed at a location associated with the virtual trap item's icon (such as the surrounding area). This allows players to understand the status and failure progress of the virtual trap item. Players can then weigh the timing of triggering remote control operations on the virtual trap item based on its status and failure progress, thereby increasing their freedom of operation with the virtual trap item.
[0106] In some embodiments, the terminal can display the virtual trap items owned by the target virtual object in the item interface of the virtual scene in the following manner: displaying an item carrier slot in the item interface of the virtual scene, and displaying the item icon of the virtual trap item owned by the target virtual object in the item carrier slot; correspondingly, the terminal can display a remote control icon and failure indication information at the associated position of the item icon of the virtual trap item in the item interface in the following manner: displaying a sub-carrier slot at the corner of the item carrier slot, and displaying the remote control icon and failure indication information in the sub-carrier slot.
[0107] In practical applications, when a terminal displays a virtual trap item owned by a target virtual object in the item interface of a virtual scene, it can display an item holding slot in the item interface. Typically, one item holding slot is used to hold the item icon of one virtual trap item. When a player places a virtual trap item at a target location in the interactive area of the virtual scene, putting the virtual trap item into a remote control state, a remote control icon and a failure indicator can be displayed in the associated location of the virtual trap item's item icon in the item interface (such as the surrounding area of the item icon). Alternatively, in the item interface... The corner (or edge) of the item carrier slot used to hold the virtual trap item displays a sub-carrying slot, and displays a remote control icon and failure indication information in the sub-carrying slot; the sub-carrying slot can be part of the item carrier slot, that is, as the position of the item carrier slot changes in the item interface, the position of the sub-carrying slot also changes with the position of the item carrier slot, but the relative position of the sub-carrying slot in the item carrier slot remains unchanged; of course, the sub-carrying slot can also be independent of the item carrier slot, that is, the player can change the position of the sub-carrying slot in the item carrier slot by dragging the sub-carrying slot.
[0108] See Figure 7 , Figure 7This is a schematic diagram of the display of the item icon provided in this application embodiment. One or more item carrier slots are displayed in the item interface 701, and the item icon 703 of the virtual trap item owned by the target virtual object is displayed in the item carrier slot 702. When the player places the virtual trap item 704 indicated by the item icon 703 at the target location, a sub-carrier slot 705 can be displayed in the corner of the item carrier slot 702, and a remote control icon (i.e., remote control badge) 706 and failure indication information (such as failure countdown) are displayed in the sub-carrier slot 705. In addition, failure indication information (such as failure countdown 30 seconds) can also be displayed in the associated location of the target location (such as above the target location). In this way, the player can perceive that the virtual trap item is in a remote control state through the remote control icon 706 and perceive the failure progress information through the failure indication information. The player can weigh the timing of triggering the remote control operation of the virtual trap item according to the status and failure progress of the virtual trap item, so as to improve the player's freedom of operation of the virtual trap item.
[0109] In some embodiments, the terminal may display a remote control icon and failure indication information in a sub-bearing position in the following ways: displaying a remote control icon in the middle area of the sub-bearing position; displaying a failure progress bar on the boundary of the sub-bearing position and using the failure progress bar as failure indication information, wherein the length of the failure progress bar is negatively correlated with the failure progress of the virtual trap prop; or, using the display color of the sub-bearing position as failure indication information, wherein different display colors indicate different failure progress of the virtual trap prop.
[0110] In practical applications, when displaying remote control icons and failure indication information in a sub-bearer position, the remote control icon can be displayed in the middle area of the sub-bearer position (e.g., Figure 7 The remote control icon 706 is displayed, and the failure indication information is indicated on the boundary of the sub-bearing position in the form of a failure progress bar. For example, when the shape of the sub-bearing position is a rhombus, the failure progress bar is displayed on the four sides of the rhombus. The length of the failure progress bar indicates the remaining time before the virtual trap prop fails. That is, the length of the failure progress bar is negatively correlated with the failure progress of the virtual trap prop. The longer the failure progress bar, the greater the remaining time before the virtual trap prop fails, and the smaller the corresponding failure progress of the virtual trap prop. For example, when the virtual trap prop is just placed at the target position and enters the remote control state, the failure progress bar fills the four sides of the rhombus (that is, the length of the failure progress bar at this time is the perimeter of the rhombus), and the failure progress is 0. As time goes by, the length of the failure progress bar gradually decreases, indicating that the remaining time before the virtual trap prop fails gradually shortens, that is, the failure progress gradually increases, until the length of the failure progress bar is zero, the remaining time before failure is zero, and the failure progress reaches 100%.
[0111] In addition, the display color of the sub-carrier can be used as a failure indication information. Different display styles indicate different failure progress of the virtual trap prop (i.e., the remaining time before failure). Designers can pre-configure the correspondence between the display color of the sub-carrier and the failure progress. In this way, when the virtual trap prop is placed at the target location and enters the remote control state, the display color of the sub-carrier can be changed based on the pre-configured correspondence.
[0112] For example, when a virtual trap is placed at the target location and enters remote control mode, the sub-capacitor's display color is dark red, indicating a failure progress of 0. As time progresses, the sub-capacitor's display color gradually lightens, indicating that the virtual trap's remaining time before failure is gradually decreasing, meaning the failure progress is gradually increasing. This continues until the sub-capacitor's display color becomes colorless, indicating that the remaining time before failure is zero, and the failure progress reaches 100%. Similarly, when a virtual trap is first placed at the target location and enters remote control mode, the sub-capacitor's display color is green, indicating a failure progress of 0. As time progresses, the sub-capacitor's display color gradually changes from green to red, indicating that the virtual trap's remaining time before failure is gradually decreasing, meaning the failure progress is gradually increasing. The redder the sub-capacitor's display color, the shorter the remaining time before failure, and the higher the failure progress.
[0113] By using the remote control icon and color changes in the sub-carrier, players can easily understand the status and failure progress of the virtual trap item. Players can weigh the timing of triggering remote control operations on the virtual trap item based on its status and failure progress, thereby increasing the player's freedom of operation over the virtual trap item.
[0114] In some embodiments, the terminal may display the remote control icon in the following manner: displaying the remote control icon using a first display style; correspondingly, in response to the presence of an adversarial virtual object in the interaction area and the distance between the adversarial virtual object and the virtual trap prop being less than a first distance threshold, displaying the remote control icon using a second display style; wherein, the second display style is used to prompt the target virtual object to trigger the prop remote control operation, and the adversarial virtual object and the target virtual object are in an adversarial interaction relationship.
[0115] In practical applications, when a virtual trap prop is in remote control mode, if there are no adversarial virtual objects (i.e., virtual objects in the virtual scene that are adversarial to the target virtual object) within the effective range of the virtual trap prop, the remote control icon in remote control mode can be displayed using a first display style, indicating that the virtual trap prop is in the default state. Then, the terminal detects whether there are adversarial virtual objects in the effective range of the virtual trap prop that are adversarial to the target virtual object. For example, it detects whether the distance between the virtual trap prop (i.e., the target location) and the adversarial virtual object is less than the distance threshold corresponding to the effective range of the virtual trap prop. When there are adversarial virtual objects within the effective range of the virtual trap prop (i.e., the distance between the adversarial virtual object and the virtual trap prop is less than the distance threshold), the display style of the remote control icon can be updated. For example, a second display style different from the first display style can be used to display the remote control icon, so as to prompt the player to trigger the remote control operation of the prop at this time, thereby activating or triggering the trap function of the virtual trap prop, and thus bringing negative effects to the adversarial virtual objects within the effective range of the virtual trap prop.
[0116] Furthermore, when there is an opposing virtual object within the effective range of a virtual trap item, if the opposing virtual object is located at different positions within the effective range (i.e., the distance between the virtual trap item and the opposing virtual object is different), the activation or triggering of the trap function of the virtual trap item will bring different degrees of negative effects to the opposing virtual object (such as different amounts of health reduction, different amounts of movement speed reduction, etc.). Therefore, depending on the different positions of the opposing virtual object within the effective range (or the different distances between the virtual trap item and the opposing virtual object), different secondary display styles can be used to display the remote control icon to indicate that activating the virtual trap item will bring different degrees of negative effects to the opposing virtual object when the opposing virtual object is in different positions. For example, assuming the second display style is a highlight flashing display style, if the negative effect of the virtual trap prop on the anti-virtual object located at position 1 within the range of action is greater than the negative effect of the anti-virtual object located at position 2 within the range of action, then when the anti-virtual object is located at position 2, the remote control icon is displayed using the second display style with a lower degree of highlight flashing (e.g., the highlight level is lower than the brightness threshold and the flashing frequency is lower than the frequency threshold), and when the anti-virtual object is located at position 1, the remote control icon is displayed using the second display style with a higher degree of highlight flashing (e.g., the highlight level is greater than the brightness threshold and the flashing frequency is higher than the frequency threshold).
[0117] In this way, remote control icons are displayed to differentiate whether there are opposing virtual objects within the effective range of virtual trap items, and to indicate the degree of negative effects that activating the trap function of virtual trap items will have on opposing virtual objects when they are in different positions. This allows players to weigh the timing of triggering remote control operations on virtual trap items based on the display style of the remote control icons, thereby increasing the player's freedom of operation with virtual trap items.
[0118] In some embodiments, after the terminal displays the remote control icon in the second display style, in response to the virtual object being outside the range of the virtual trap prop, the display style of the remote control icon is restored from the second display style to the first display style.
[0119] Here, when the virtual object is within the effective range of the virtual trap item (i.e., the remote control icon is displayed in the second display style), the terminal continuously monitors the position of the virtual object in the virtual scene to detect whether the virtual object is moving within the virtual scene. When the virtual object moves away from the virtual trap item and is no longer within its effective range (i.e., the distance between the virtual object and the virtual trap item is greater than a distance threshold), the display style of the remote control icon is restored from the second display style to the first display style. This first display style indicates to the player that they do not need to trigger the remote control operation of the item at this time, thus avoiding the waste of using the virtual trap item by activating or triggering its trap function without causing any negative effects on the virtual object. This is because if the virtual trap item is a one-time use item, it will become ineffective once activated or triggered. Even if the virtual trap item is a reusable item, it usually requires a certain cooldown period before it can be used again. By changing the display style of the remote control icon, the player is reminded to use the virtual trap item at an appropriate time, rather than using it indefinitely.
[0120] In some embodiments, after the terminal controls the target virtual object to remotely activate the trap function of the virtual trap prop, or when the failure indication information indicates that the virtual trap prop has failed, the terminal controls the virtual trap prop to exit the remote control state and cancels the display of the remote control icon and failure indication information.
[0121] See Figure 8 , Figure 8This is a schematic diagram illustrating the changes in the display content provided in the embodiments of this application. After the terminal controls the virtual trap prop to enter the remote control state, before the target virtual object remotely activates the trap function of the virtual trap prop, or when the failure indication information indicates that the virtual trap prop has not yet failed (e.g., the failure countdown has not reached zero), the virtual trap prop 803 is in the remote control state by displaying the remote control icon 802 or failure indication information (e.g., failure countdown of 30 seconds) in the prop interface 801. When the virtual trap prop 803 fails (e.g., the failure countdown reaches zero, or the trap prop of the virtual trap prop has been activated or triggered), the virtual trap prop is controlled to exit the remote control state, and the remote control icon 802 is canceled from being displayed in the prop interface, or the failure indication information is canceled from being displayed.
[0122] It should be noted that if the virtual trap item 803 is a one-time use trap item, the above-mentioned control to exit remote control mode is a permanent exit, and the cancellation of the display of the remote control icon and failure indicator is a permanent cancellation. The virtual trap item will only re-enter remote control mode and display the remote control icon and failure indicator if the player selects and places it in the virtual scene again. If the virtual trap item 803 is a reusable trap item, the above-mentioned control to exit remote control mode is a temporary exit, and the cancellation of the display of the remote control icon and failure indicator is also temporary. Once the cooldown of the virtual trap item 803 ends, the terminal will again control the virtual trap item to enter remote control mode and display the remote control icon and failure indicator for the virtual trap item.
[0123] In some embodiments, the terminal may display failure indication information in the following manner: displaying failure indication information indicating that the virtual trap prop is in a first failure progress; correspondingly, in response to a first switching operation, the terminal controls the target virtual object to switch from controlling the virtual trap prop to controlling the target virtual prop; during the process of the target virtual object controlling the target virtual prop, the failure progress of the virtual trap prop is continuously updated. In some embodiments, in response to a second switching operation, the terminal controls the target virtual object to switch from controlling the target virtual prop to controlling the virtual trap prop; in response to the virtual trap prop still being in remote control mode, displaying failure indication information indicating that the virtual trap prop is in a second failure progress, the second failure progress being greater than the first failure progress; in response to the virtual trap prop not being in remote control mode, displaying failure indication information indicating that the virtual trap prop has failed.
[0124] In practical applications, after the terminal controls a virtual trap item into remote control mode, it can display failure indication information to show the current first failure progress of the virtual trap item (e.g., 30 seconds until failure, first failure progress is 25%). At this time, if the player selects a target virtual item, the terminal responds to the first switching operation triggered by the selection operation (indicating a switch from controlling the virtual trap item to controlling the target virtual item), switching from the control interface for the virtual trap item to the control interface for the target virtual item. Control is then performed on the target virtual item based on its control interface. During the control of the target virtual item, the remote control state of the virtual trap item remains until the virtual trap item fails, and the failure progress of the virtual trap item is unaffected. For example, as time progresses, the virtual trap item's failure progress is continuously updated. The terminal responds to the second switching operation (indicating a switch from controlling the target virtual item to controlling the virtual trap item) by changing the control of the virtual trap item. The terminal switches the control of the target virtual item to the virtual trap item (i.e., the control interface for the target virtual item switches to the control interface for the virtual trap item). It then checks if the virtual trap item is disabled. If the virtual trap item is not yet disabled (i.e., still in remote control mode), a failure indication message is displayed indicating that the virtual trap item is in the second failure progress (e.g., failure countdown is 10 seconds, second failure progress is 75%). If the virtual trap item is already disabled (i.e., no longer in remote control mode), a failure indication message is displayed indicating that the virtual trap item has failed (e.g., failure progress reaches 100%, already disabled).
[0125] In this way, while controlling the virtual trap item, players can freely control other virtual items. During the control of other virtual items, the remote control status and failure progress of the virtual trap item will not be reset or lost. Players can conveniently switch back to the virtual trap item at any time to remotely control it, which increases the player's freedom of operation or control over the virtual trap item.
[0126] Step 104: In response to the remote control operation of the prop, control the target virtual object to remotely activate the trap function of the virtual trap prop in the remote control state.
[0127] In practical applications, when a player remotely operates a virtual trap item in a remote control state, the terminal responds to the remote control operation and can remotely activate or trigger the trap function of the virtual trap item. Remote activation or triggering of the trap function means that the player can activate or trigger the trap function of the virtual trap item from a distance without having to move the virtual object to its location. This allows players to activate the trap function of the virtual trap item anytime, anywhere, improving the convenience and efficiency of controlling the virtual trap item, and also avoids any negative effects that the activated or triggered trap function might bring to the player.
[0128] Generally, different virtual trap items have different trap functions. For example, when a virtual trap item is a spike trap, it will raise spikes from the ground at the target location when activated, damaging any virtual object that comes into contact with the spikes. Similarly, when a virtual trap item is an iron cage trap, it will generate an iron cage at or around the target location when activated, trapping any virtual object inside the cage and restricting its movement. And when a virtual trap item is a laser trap, it will fire lasers from both sides centered on the target location when activated, damaging any virtual object that passes through the lasers. In short, each virtual trap item has its unique function and purpose, and players need to choose the appropriate virtual trap item based on the specific situation and tactical requirements.
[0129] In some embodiments, when the terminal displays the virtual trap props owned by the target virtual object in the prop interface of the virtual scene, it can also display the quantity indicator of the virtual trap props in the prop interface; correspondingly, after the terminal controls the target virtual object to remotely activate the trap function of the virtual trap prop in the remote control state, it can update the quantity indicator displayed in the prop interface, wherein the quantity of virtual trap props indicated by the updated quantity indicator is less than the quantity of virtual trap props indicated by the quantity indicator before the update.
[0130] See Figure 9 , Figure 9This is a schematic diagram illustrating the update of the quantity of virtual trap items provided in this application embodiment. When the terminal displays the virtual trap items owned by the target virtual object in the item interface, it can also display the quantity indicator of the virtual trap item (e.g., 3). When the terminal controls the target virtual object to activate the trap function of the virtual trap item (i.e., use the virtual trap item), if the virtual trap item is a one-time trap item, the quantity indicator of the virtual trap item is updated in the item interface (e.g., from 3 to 2). In this way, the player can perceive the quantity of virtual trap items they own based on the quantity indicator, which makes it easier for the player to select the appropriate trap item for control and improves the player's freedom of operation with virtual trap items.
[0131] In this way, players can switch to control other virtual items as needed while the virtual trap item is in remote control mode, that is, before the virtual trap item becomes invalid. They can also activate or trigger the trap function of the virtual trap item at any time, which increases the player's freedom of operation with the virtual trap item.
[0132] The following will describe an exemplary application of the embodiments of this application in a real-world application scenario. Taking a virtual scene as an example, see [link to example]. Figure 10 , Figure 10 This is a flowchart illustrating a method for controlling virtual props provided in an embodiment of this application. The method includes:
[0133] Step 201: The terminal displays the virtual trap items owned by the target virtual object in the game's item interface.
[0134] The target virtual object refers to the virtual object controlled by the target account (player) on the current terminal side in the game. In practical applications, when the terminal displays virtual trap items in the item interface, it mainly displays information such as the name, icon, quantity, and status of the virtual trap item.
[0135] Step 202: In response to the use of the virtual trap item, display the target location for placing the virtual trap item in the game's interactive area.
[0136] The triggering method for players' actions related to virtual trap items (such as usage, placement, and remote control) is related to the type of terminal. For example, when the terminal is a mobile device (such as a smartphone or tablet with a touchscreen), the relevant actions can be triggered by clicking virtual buttons or icons displayed in the game interface. When the terminal is a desktop device (such as a desktop computer or laptop), the relevant actions can be triggered by clicking the actual function buttons on input devices such as a mouse, keyboard, or gamepad. The following explanation will take a desktop terminal as an example.
[0137] When the terminal detects the input of the item use button, it enters the placement process of the virtual trap item and controls the virtual trap item to enter the placement state. In this state, the terminal pops up the virtual trap item pre-aiming placement point interface and displays the trap phantom of the virtual trap item in the interface to indicate that the virtual trap item can be placed at the location of the trap phantom (i.e., the target location). Players can use the mouse pointer or gamepad to accurately select the placement location. The selected area will provide real-time feedback on the terrain adaptability to avoid placing the virtual trap item in an invalid or unreachable area.
[0138] Step 203: In response to the item placement operation, place the virtual trap item at the target location and control the virtual trap item to enter remote control mode.
[0139] Here, when a player selects a target location as the placement location for a virtual trap item, they can trigger the item placement operation by clicking the attack button. The terminal responds to the item placement operation. When the target location indicated by the item placement operation is a location that meets the instance generation conditions, a trap instance is generated to place the virtual trap item at the target location and control the virtual trap item to enter the remote control state (i.e., the state to be detonated).
[0140] The trap instance records the target position p(x0, y0, z0) where the virtual trap item is placed. The placement time t0 is used as the initial timing point, and the remaining time before the virtual trap item expires is recorded, such as using the variable t. r Represents the remaining duration, t1 is the current time, t k If t is the maximum effective duration of the trap, then r =t k -(t1-t0).
[0141] Step 204: Display the remote control icon and the expiration countdown in the item interface.
[0142] In practical applications, a remote control icon can be displayed in a related position (such as around the item icon) of the virtual trap item in the item interface. This remote control image indicates that the virtual trap item is in remote control mode. When the virtual trap item is in remote control mode (or in a state of imminent detonation), a countdown timer t is displayed above the target location where the virtual trap item is placed. r .
[0143] In addition, a failure progress bar can be displayed around the remote control icon, with a failure countdown timer. r The larger the value, the longer the failure progress bar; and the display color of the remote control icon can reflect the size of the failure countdown. For example, as the failure countdown gradually decreases, the display color of the remote control icon gradually changes from green to red. The smaller the failure countdown, the redder the display color of the remote control icon.
[0144] By using the above methods and displaying changes such as remote control icons and expiration countdowns, players can easily understand the status and expiration progress of virtual trap items. Players can then weigh the timing of triggering remote control operations on virtual trap items based on their status and expiration progress, thereby increasing their freedom of operation with virtual trap items.
[0145] In addition, after the terminal controls the virtual trap prop into remote control mode, it can switch to control other virtual props (that is, the target virtual prop mentioned above can be a virtual prop of a different type than the virtual trap prop). While the terminal is controlling other virtual props, the remote control mode of the virtual trap prop is retained until the virtual trap prop fails, and the failure progress of the virtual trap prop is not affected. That is, as time goes by, the failure countdown of the virtual trap prop is updated synchronously.
[0146] Step 205: Determine if the failure countdown has reached zero.
[0147] Here, when the countdown to failure reaches zero, it indicates that the virtual trap item has entered a disabled state. Players can activate the trap function of the disabled virtual trap item. In this case, step 208 is executed. When the countdown to failure has not yet reached zero, it indicates that the virtual trap item is still in a remote control state. In this case, step 206 is executed.
[0148] Step 206: In response to the presence of an enemy within the range of the virtual trap item, highlight the remote control icon.
[0149] In practical applications, when the virtual trap prop is in remote control mode, the terminal detects whether there are enemies within the effective range of the virtual trap prop. That is, it determines whether there are enemies in the sphere with position p as the center and a preset distance as the radius r in the trap instance. When the attribute in the trap instance that indicates whether there are enemies within the effective range returns a Boolean value of "true", it means that there are enemies within the effective range; when it returns a Boolean value of "false", it indicates that there are no enemies within the effective range.
[0150] If there are no enemies (i.e., virtual objects in the game that are in an adversarial relationship with the target virtual object) within the effective range of the virtual trap item, the remote control icon in remote control mode can be unhighlighted to indicate that the virtual trap item is in the default state. Then, if an enemy is detected within the effective range of the virtual trap item, the display style of the remote control icon can be updated, such as highlighting the remote control icon, to prompt the player to trigger the remote control operation of the item at this time, thereby activating or triggering the trap function of the virtual trap item, and thus bringing negative effects to enemies within the effective range of the virtual trap item.
[0151] Step 207: In response to the remote control operation of the prop, control the target virtual object to remotely activate the trap function of the virtual trap prop.
[0152] Here, before the virtual trap item's expiration countdown reaches zero, the player can activate the trap function of the virtual trap item at any time. When the player clicks the cancel button, the terminal immediately calls the corresponding callback function to cancel the placement of the virtual trap item. In this case, the number of virtual trap items will not decrease. When the player can trigger the item remote control operation by clicking the item use button, the terminal responds to the item remote control operation and controls the target virtual object to remotely activate the trap function of the virtual trap item.
[0153] Generally, different virtual trap items have different trap functions. For example, when a virtual trap item is a spike trap, it will raise spikes from the ground at the target location when activated, damaging any virtual object that comes into contact with the spikes. Similarly, when a virtual trap item is an iron cage trap, it will generate an iron cage at or around the target location when activated, trapping any virtual object inside the cage and restricting its movement. And when a virtual trap item is a laser trap, it will fire lasers from both sides centered on the target location when activated, damaging any virtual object that passes through the lasers. In short, each virtual trap item has its unique function and purpose, and players need to choose the appropriate virtual trap item based on the specific situation and tactical requirements.
[0154] Step 208: Control the virtual trap props to enter the disabled state, and control the quantity of virtual trap props to decrease by one.
[0155] Here, after the terminal remotely activates the trap function of the virtual trap item by controlling the target virtual object, if the virtual trap item is a one-time trap item, the quantity indicator of the virtual trap item will be updated in the item interface (e.g., from 3 to 2), and the remote control icon and expiration countdown will be removed.
[0156] Through the above methods, this application provides a control mechanism for virtual trap items based on remote control operation, which has at least the following beneficial effects: 1) Improved item strategy: Players can remotely control virtual trap items at any time before they expire, without waiting for the passive detonation activation of the trap function, increasing the strategic nature of virtual item operation and allowing players to use virtual trap items more flexibly in more scenarios; 2) Increased item flexibility and controllability: The remote detonation function allows players to actively detonate virtual trap items at more appropriate times, enabling players to choose the best detonation timing according to the actual situation; 3) Efficient viewing of trap status: The dynamic update display function of the expiration countdown and the highlighting prompt when enemies enter the trap range provide players with intuitive interface feedback, enabling players to perceive the effective time status of virtual trap items in real time, and better judge the timing of using virtual trap items; 4) Enhanced tactical flexibility: Players can flexibly switch virtual items according to the combat situation and regain control of virtual trap items at any time. Whether in offense or defense, this flexible control mechanism allows players to better cope with various emergencies and improve the depth and diversity of tactics.
[0157] The exemplary application and implementation of the electronic device provided in the embodiments of this application have been used to describe the control method of virtual props provided in the embodiments of this application. The following describes the control scheme of virtual props implemented by the cooperation of various modules in the control device 555 of the virtual props provided in the embodiments of this application.
[0158] The prop display module 5551 is used to display the virtual trap props owned by the target virtual object in the prop interface of the virtual scene; the location display module 5552 is used to display the target location for placing the virtual trap prop in the interactive area of the virtual scene in response to the use operation of the virtual trap prop; the trap placement module 5553 is used to control the target virtual object to place the virtual trap prop at the target location in response to the prop placement operation, and control the virtual trap prop to enter the remote control state; the trap activation module 5554 is used to control the target virtual object to remotely activate the trap function of the virtual trap prop in the remote control state in response to the prop remote control operation.
[0159] In some embodiments, the location display module is further configured to control the virtual trap prop to be in a placeable state in response to a use operation of the virtual trap prop; and to determine a pre-placement position based on the crosshair associated with the aiming operation and the pre-placement trajectory of the virtual trap prop in response to an aiming operation, and to display the pre-placement position as a target position for placing the virtual trap prop.
[0160] In some embodiments, the position display module is further configured to: determine the pre-placement trajectory of the virtual trap prop based on the crosshair associated with the aiming operation and the prop attributes of the virtual trap prop; determine the pre-placement area of the virtual trap prop based on the trap function of the virtual trap prop and the environmental information of the virtual scene; perform collision detection on the pre-placement trajectory and the pre-placement area, and determine the position in the pre-placement area that collides with the pre-placement trajectory as the pre-placement position.
[0161] In some embodiments, the location display module is further configured to display the trap phantom of the virtual trap prop in the virtual scene, and use the location of the trap phantom as the target location for placing the virtual trap prop; or, to display the target location for placing the virtual trap prop using a target style, wherein the target style includes at least one of the following: special effects display style, text indication style.
[0162] In some embodiments, the location display module is further configured to, in response to the fact that there are multiple target locations for placing the virtual trap props, determine the placement priority of each target location; and display each target location using a display style corresponding to the placement priority.
[0163] In some embodiments, the location display module is further configured to acquire influence parameters for influencing the placement priority of each of the target locations, wherein the influence parameters include at least one of the following: the location characteristics of the target location, the effective range of the virtual trap prop, the first relative position between the target location and the target virtual object, and the second relative position between the target location and the adversary virtual object of the target virtual object; based on the influence parameters, a neural network model is invoked to perform placement priority prediction processing to obtain the placement priority of each of the target locations; wherein the neural network model is trained using location samples, influence parameters corresponding to the location samples, and placement priorities labeled on the location samples.
[0164] In some embodiments, after displaying the target location for placing the virtual trap prop, the device further includes a control display module for displaying a placement control at an associated location of the target location, the placement control being used to trigger the prop placement operation.
[0165] In some embodiments, after the virtual trap prop is controlled to enter the remote control state, the device further includes: a remote control display module, used to display failure indication information at an associated location of the target location in the interactive area; or, to display a remote control icon and failure indication information at an associated location of the prop icon of the virtual trap prop in the prop interface; wherein the remote control icon indicates that the virtual trap prop is in the remote control state, and the failure indication information is used to indicate the failure progress of the virtual trap prop.
[0166] In some embodiments, the prop display module is further configured to display a prop carrying position in the prop interface of the virtual scene, and display the prop icon of the virtual trap prop owned by the target virtual object in the prop carrying position; the remote control display module is further configured to display a sub-carrying position at the corner of the prop carrying position, and display a remote control icon and failure indication information in the sub-carrying position.
[0167] In some embodiments, the remote control display module is further configured to display a remote control icon in the middle area of the sub-bearing position; display a failure progress bar on the boundary of the sub-bearing position, and use the failure progress bar as failure indication information, wherein the length of the failure progress bar is negatively correlated with the failure progress of the virtual trap prop; or, use the display color of the sub-bearing position as failure indication information, wherein different display colors indicate different failure progress of the virtual trap prop.
[0168] In some embodiments, the remote control display module is further configured to display a remote control icon using a first display style; the device further includes: a style update module, configured to display the remote control icon using a second display style in response to the presence of an adversary virtual object within the range of the virtual trap prop; wherein the second display style is used to prompt the target virtual object to trigger the prop remote control operation, and the adversary virtual object and the target virtual object have an adversarial interaction relationship.
[0169] In some embodiments, after displaying the remote control icon using the second display style, the device further includes: a style restoration module, configured to, in response to the virtual object being outside the range of the virtual trap prop, control the display style of the remote control icon to be restored from the second display style to the first display style.
[0170] In some embodiments, the device further includes: a cancellation display module, configured to control the virtual trap prop to exit the remote control state and cancel the display of the remote control icon and the failure indication information after the target virtual object remotely activates the trap function of the virtual trap prop, or when the failure indication information indicates that the virtual trap prop has failed.
[0171] In some embodiments, the remote control display module is further configured to display failure indication information indicating that the virtual trap prop is in a first failure progress; the device further includes: an prop switching module, configured to, in response to a first switching operation, control the target virtual object to switch from controlling the virtual trap prop to controlling the target virtual prop; and continuously update the failure progress of the virtual trap prop during the process of the target virtual object controlling the target virtual prop.
[0172] In some embodiments, the prop switching module is further configured to, in response to a second switching operation, control the target virtual object to switch from controlling the target virtual prop to controlling the virtual trap prop; in response to the virtual trap prop still being in the remote control state, display failure indication information indicating that the virtual trap prop is in a second failure progress, the second failure progress being greater than the first failure progress; and in response to the virtual trap prop not being in the remote control state, display failure indication information indicating that the virtual trap prop has failed.
[0173] In some embodiments, after displaying the virtual trap props owned by the target virtual object in the prop interface of the virtual scene, the device further includes: a quantity display module, used to display a quantity identifier of the virtual trap props in the prop interface; after controlling the target virtual object to remotely activate the trap function of the virtual trap props in the remote control state, the device further includes: a quantity update module, used to update the quantity identifier, wherein the quantity of the virtual trap props indicated by the updated quantity identifier is less than the quantity of the virtual trap props indicated by the quantity identifier before the update.
[0174] This application provides a computer program product, which includes a computer program or computer-executable instructions stored in a computer-readable storage medium. The processor of an electronic device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the electronic device to perform the virtual prop control method described above in this application.
[0175] This application provides a computer-readable storage medium storing computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the processor will execute the virtual item control method provided in this application. For example, ... Figure 3 The method for controlling virtual props is shown.
[0176] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a variety of devices including one or any combination of the above-mentioned memories.
[0177] In some embodiments, computer-executable instructions may take the form of programs, software, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
[0178] As an example, computer-executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple co-located files (e.g., files that store one or more modules, subroutines, or code sections).
[0179] As an example, computer-executable instructions can be deployed to execute on a single electronic device, or on multiple electronic devices located at one location, or on multiple electronic devices distributed across multiple locations and interconnected via a communication network.
[0180] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.
Claims
1. A method for controlling virtual props, characterized in that, The method includes: The virtual trap items owned by the target virtual object are displayed in the virtual scene's item interface. In response to an operation involving the use of the virtual trap prop, the target location for placing the virtual trap prop is displayed in the interactive area of the virtual scene; In response to the prop placement operation, the target virtual object is controlled to place the virtual trap prop at the target location, and the virtual trap prop is controlled to enter a remote control state; In response to remote control operation of the prop, the target virtual object is controlled to remotely activate the trap function of the virtual trap prop in the remote control state.
2. The method according to claim 1, characterized in that, The step of displaying the target location for placing the virtual trap prop in response to a use operation of the virtual trap prop includes: In response to a use operation on the virtual trap prop, the virtual trap prop is controlled to be in a placeable state; In response to the aiming operation, a pre-placement position is determined based on the crosshair associated with the aiming operation and the pre-placement trajectory of the virtual trap prop, and the pre-placement position is displayed as the target position for placing the virtual trap prop.
3. The method according to claim 2, characterized in that, The determination of the pre-placement position based on the crosshair associated with the aiming operation and the pre-placement trajectory of the virtual trap prop includes: Based on the crosshair associated with the aiming operation and the item attributes of the virtual trap item, the pre-placement trajectory of the virtual trap item is determined; Based on the trap function of the virtual trap prop and the environmental information of the virtual scene, the pre-placement area of the virtual trap prop is determined; Collision detection is performed on the pre-placement trajectory and the pre-placement area, and the position in the pre-placement area that collides with the pre-placement trajectory is determined as the pre-placement position.
4. The method according to claim 1, characterized in that, The display of the target location for placing the virtual trap prop includes: The virtual trap prop's phantom image is displayed in the virtual scene, and the location of the phantom image is used as the target location for placing the virtual trap prop; or... The target location for placing the virtual trap prop is displayed using a target style, which includes at least one of the following: special effects display style and text indication style.
5. The method according to claim 1, characterized in that, The display of the target location for placing the virtual trap prop includes: In response to the fact that there are multiple target locations for placing the virtual trap props, the placement priority of each target location is determined; Each target position is displayed using a display style corresponding to the placement priority.
6. The method according to claim 5, characterized in that, Determining the placement priority of each target location includes: Obtain influence parameters for influencing the placement priority of each of the target locations, wherein the influence parameters include at least one of the following: the location characteristics of the target location, the effective range of the virtual trap prop, the first relative position between the target location and the target virtual object, and the second relative position between the target location and the adversary virtual object of the target virtual object; Based on the aforementioned influence parameters, a neural network model is invoked to perform placement priority prediction processing to obtain the placement priority of each target location; wherein, the neural network model is trained using location samples, the influence parameters corresponding to the location samples, and the placement priorities labeled on the location samples.
7. The method according to claim 1, characterized in that, After displaying the target location for placing the virtual trap prop, the method further includes: A placement control is displayed at the associated location of the target location, and the placement control is used to trigger the item placement operation.
8. The method according to claim 1, characterized in that, After the virtual trap prop is put into remote control mode, the method further includes: Failure indication information is displayed at the associated location of the target location in the interactive area; or, In the item interface, the remote control icon and failure indication information are displayed at the associated location of the item icon of the virtual trap item; The remote control icon indicates that the virtual trap prop is in the remote control state, and the failure indication information is used to indicate the failure progress of the virtual trap prop.
9. The method according to claim 8, characterized in that, The virtual trap items displayed in the virtual scene's item interface include: The props interface of the virtual scene displays a prop storage slot, and the prop icon of the virtual trap prop owned by the target virtual object is displayed in the prop storage slot; The associated location of the virtual trap item icon in the item interface displays a remote control icon and failure indication information, including: A sub-carrying position is displayed at the corner of the prop carrying position, and a remote control icon and failure indication information are displayed in the sub-carrying position.
10. The method according to claim 9, characterized in that, The display of the remote control icon and failure indication information in the sub-bearer bit includes: A remote control icon is displayed in the middle area of the sub-bearing position; A failure progress bar is displayed on the boundary of the sub-bearing position, and the failure progress bar is used as failure indication information. The length of the failure progress bar is negatively correlated with the failure progress of the virtual trap prop. Alternatively, the display color of the sub-bearer can be used as a failure indication information, wherein different display colors indicate different failure progress of the virtual trap prop.
11. The method according to claim 8, characterized in that, The display of the remote control icon includes: The remote control icon is displayed using the first display style; The method further includes: In response to the presence of an opposing virtual object within the effective range of the virtual trap prop, the remote control icon is displayed using a second display style; The second display style is used to prompt the target virtual object to trigger the remote control operation of the prop, and the adversarial virtual object and the target virtual object have an adversarial interaction relationship.
12. The method according to claim 11, characterized in that, After displaying the remote control icon using the second display style, the method further includes: In response to the virtual object being outside the range of the virtual trap prop, the display style of the remote control icon is restored from the second display style to the first display style.
13. The method according to claim 8, characterized in that, The method further includes: After controlling the target virtual object to remotely activate the trap function of the virtual trap prop, or when the failure indication information indicates that the virtual trap prop has failed, control the virtual trap prop to exit the remote control state and cancel the display of the remote control icon and the failure indication information.
14. The method according to claim 8, characterized in that, The displayed failure indication information includes: Display failure indication information to indicate that the virtual trap prop is in the first failure stage; The method further includes: In response to the first switching operation, the control of the target virtual object is switched from controlling the virtual trap prop to controlling the target virtual prop; During the process of the target virtual object controlling the target virtual prop, the failure progress of the virtual trap prop is continuously updated.
15. The method according to claim 14, characterized in that, The method further includes: In response to the second switching operation, the control of the target virtual object is switched from controlling the target virtual prop to controlling the virtual trap prop; In response to the virtual trap prop still being in the remote control state, a failure indication message is displayed to indicate that the virtual trap prop is in a second failure progress, where the second failure progress is greater than the first failure progress; In response to the virtual trap prop not being in the remote control state, a failure indication message is displayed to indicate that the virtual trap prop has failed.
16. The method according to claim 1, characterized in that, After displaying the virtual trap items possessed by the target virtual object in the item interface of the virtual scene, the method further includes: The quantity indicator of the virtual trap item is displayed in the item interface; After controlling the target virtual object to remotely activate the trap function of the virtual trap prop in the remote control state, the method further includes: Update the quantity identifier, wherein the quantity identifier of the updated quantity identifier indicates a smaller quantity of the virtual trap items than the quantity identifier of the original quantity identifier indicates.
17. A control device for virtual props, characterized in that, The device includes: The prop display module is used to display the virtual trap props possessed by the target virtual object in the prop interface of the virtual scene; A location display module is used to display the target location for placing the virtual trap prop in the interactive area of the virtual scene in response to the operation of using the virtual trap prop; A trap placement module is used to respond to an item placement operation, control the target virtual object to place the virtual trap item at the target location, and control the virtual trap item to enter a remote control state; The trap activation module is used to respond to the remote control operation of the prop, and control the target virtual object to remotely activate the trap function of the virtual trap prop in the remote control state.
18. An electronic device, characterized in that, include: Memory is used to store executable instructions or computer programs. A processor, when executing computer-executable instructions or computer programs stored in the memory, implements the control method for virtual props as described in any one of claims 1 to 16.
19. A computer-readable storage medium, characterized in that, The device stores computer-executable instructions or computer programs, which, when executed by a processor, implement the virtual prop control method according to any one of claims 1 to 16.
20. A computer program product comprising a computer program or computer-executable instructions, characterized in that, When the computer program or computer-executable instructions are executed by the processor, the virtual prop control method according to any one of claims 1 to 16 is implemented.