CN-121971852-A - Virtual prop control method and device, electronic equipment and storage medium
Abstract
The embodiment of the invention provides a virtual prop control method, a virtual prop control device, electronic equipment and a storage medium. Providing a graphical user interface through terminal equipment, wherein at least part or all of virtual scenes are displayed on the graphical user interface, the virtual scenes comprise controlled virtual roles, and the controlled virtual roles are controlled through the terminal equipment; the method comprises the steps of detecting environmental sound, determining position information of a sound source emitting the environmental sound in a virtual scene, determining an offset angle of the current visual angle orientation of the sound source relative to an observation prop according to the position information, displaying sound source prompt identifications at corresponding positions on a sensitivity adjustment control based on the offset angle, corresponding to different sensitivity adjustment parameters at different positions of the sensitivity adjustment control, determining the sensitivity adjustment parameters in response to interactive operation of the sensitivity adjustment control, determining target sensitivity of the observation prop based on the sensitivity adjustment parameters and initial sensitivity of the observation prop, and controlling the observation prop to change the observation visual angle according to the target sensitivity in response to a visual angle adjustment instruction for the observation prop. The sensitivity is adjusted in real time in a mirror opening state by introducing the sensitivity adjusting control and the sound source prompt mark, and the prompt is dynamically displayed by combining the environmental sound, so that a player can quickly adapt to battlefield changes, misoperation is reduced, the processing pressure and the resource occupation of terminal equipment are reduced, and the game interaction efficiency is improved.
Inventors
- HE JUNLE
Assignees
- 广州博冠信息科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260113
Claims (18)
- 1. The virtual prop control method is characterized in that a graphical user interface is provided through a terminal device, at least part or all of virtual scenes are displayed on the graphical user interface, the virtual scenes comprise controlled virtual roles, and the controlled virtual roles are controlled through the terminal device, and the method comprises the following steps: Responding to a use instruction aiming at an observation prop, displaying a first observation picture and a sensitivity adjustment control, wherein the first observation picture is used for the controlled virtual character to observe the virtual scene through the observation prop, and the sensitivity adjustment control is used for adjusting the visual angle steering sensitivity of the observation prop; In response to detecting an ambient sound, determining location information of a sound source emitting the ambient sound in the virtual scene; Determining an offset angle of the sound source relative to the current visual angle orientation of the observation prop according to the position information; Displaying a sound source prompt identifier at a corresponding position on the sensitivity adjustment control based on the offset angle, wherein different positions of the sensitivity adjustment control correspond to different sensitivity adjustment parameters; determining a sensitivity adjustment parameter in response to an interactive operation for the sensitivity adjustment control; determining a target sensitivity of the viewing prop based on the sensitivity adjustment parameter and an initial sensitivity of the viewing prop; And responding to a viewing angle adjustment instruction aiming at the observation prop, and controlling the observation prop to change the observation viewing angle according to the target sensitivity.
- 2. The method of claim 1, wherein the sensitivity adjustment control includes a plurality of display areas of different sensitivity levels, the displaying sound source cue identifications at corresponding locations on the sensitivity adjustment control based on the offset angle, comprising: Determining a corresponding display area on the sensitivity adjustment control based on the sensitivity level corresponding to the offset angle, wherein the offset angle is positively correlated with the sensitivity level; and displaying the sound source prompt identifier in a corresponding display area of the sensitivity adjustment control.
- 3. The method of claim 2, wherein the display areas of the sensitivity adjustment control are arranged in a longitudinal direction, each display area having a corresponding sensitivity level decreasing from top to bottom or from bottom to top, or The display areas of the sensitivity adjustment control are arranged in the transverse direction, and the corresponding sensitivity level of each display area is decreased from left to right or from right to left.
- 4. The method of claim 2, wherein the sensitivity adjustment control includes a numeric display area, wherein the determining the sensitivity adjustment parameter in response to the interoperation of the sensitivity adjustment control includes: and responding to the interactive operation aiming at the sensitivity adjustment control, and displaying the current sensitivity parameter value generated by the interactive operation in real time in the numerical display area.
- 5. The method of claim 1, wherein the determining a sensitivity adjustment parameter in response to the interoperation of the sensitivity adjustment control comprises: the sensitivity adjustment control comprises a visual adjustment bar, and different positions of the adjustment bar correspond to different sensitivity adjustment parameters; in response to a sliding operation on the adjustment bar, a corresponding sensitivity adjustment parameter is determined in accordance with a contact position of the sliding operation on the adjustment bar or in the direction of extension of the adjustment bar.
- 6. The method of claim 1, wherein the determining a sensitivity adjustment parameter in response to the interoperation of the sensitivity adjustment control comprises: the sensitivity adjustment control comprises a visual adjustment bar, and different positions of the adjustment bar correspond to different sensitivity adjustment parameters; Responding to a sliding operation of a non-control area on the graphical user interface; Determining a mapping position on the adjustment bar or in the adjustment bar extension direction based on a sliding direction and a sliding distance of the sliding operation; And determining corresponding sensitivity adjustment parameters according to the mapping positions on the adjustment bars.
- 7. The method of claim 5 or 6, wherein the two end point positions of the adjustment bar correspond to an upper threshold and a lower threshold of a preset sensitivity adjustment parameter, respectively, the method further comprising: And setting the sensitivity adjustment parameter as a preset sensitivity adjustment parameter corresponding to an endpoint nearest to the current position when the current position in the extending direction of the adjustment bar determined based on the sliding operation exceeds the endpoint position of the adjustment bar.
- 8. The method of claim 1, wherein the ambient sound comprises a plurality of types, and the pattern of the sound source cue identification is different according to the type of the ambient sound.
- 9. The method of claim 8, wherein the ambient sound comprises at least one of a gunshot in a virtual scene, a footstep in a virtual scene.
- 10. The method of claim 1, wherein the sound source cue identification further comprises a visual direction indication element for cue of the position of the sound source relative to the controlled virtual character, the method further comprising: determining a first azimuth of the current visual angle orientation of the sound source relative to the observation prop according to the position information; a pointing direction of the direction indication element is determined based on the first orientation.
- 11. The method of claim 2, wherein after controlling the viewing prop to change viewing angle according to the target sensitivity, the method further comprises: updating the offset angle in response to a viewing angle adjustment of the viewing prop; based on the sensitivity level corresponding to the updated offset angle, re-determining a corresponding display area on the sensitivity adjustment control; And adjusting the display position of the sound source prompt identifier to a redetermined display area on the sensitivity adjustment control.
- 12. The method of claim 11, wherein the method further comprises: determining new sensitivity adjustment parameters again in response to the interactive operation for the sensitivity adjustment control; Updating a target sensitivity of the viewing prop based on the new sensitivity adjustment parameter and the initial sensitivity of the viewing prop; And responding to a viewing angle adjusting instruction aiming at the observation prop, and controlling the observation prop to change the observation viewing angle according to the updated target sensitivity.
- 13. The method of claim 10, wherein after controlling the viewing prop to change viewing angle according to the target sensitivity, the method further comprises: updating the offset angle in response to a viewing angle adjustment of the viewing prop; Determining a second azimuth of the viewing angle orientation of the sound source after being adjusted relative to the observation prop according to the position information; And if the second azimuth is different from the first azimuth, updating the pointing direction of the direction indication element based on the second azimuth.
- 14. The method of claim 1, wherein the initial sensitivity is determined by: Displaying a sensitivity setting sub-interface; acquiring sensitivity setting parameters input through the sensitivity setting sub-interface; an initial sensitivity is determined based on the sensitivity setting parameters.
- 15. The method of claim 14, wherein the sensitivity setting sub-interface includes a sensitivity mode selection control, the sensitivity mode including a fixed sensitivity mode and a dynamic sensitivity mode; The response is directed to a use instruction of an observation prop, and the first observation picture and the sensitivity adjustment control for the controlled virtual character to observe the virtual scene through the observation prop are displayed, and the response comprises the following steps: determining to select a dynamic sensitivity mode in response to an interactive operation for the sensitivity mode selection control; responding to a sensitivity setting ending instruction, and exiting the sensitivity setting sub-interface; And responding to a use instruction aiming at the observation prop, and displaying a first observation picture and a sensitivity adjustment control of the controlled virtual character for observing the virtual scene through the observation prop.
- 16. A virtual prop control apparatus, wherein a graphical user interface is provided through a terminal device, and at least a part or all of virtual scenes are displayed on the graphical user interface, wherein the virtual scenes include controlled virtual characters, and the controlled virtual characters are controlled through the terminal device, the apparatus includes: The observation module is used for responding to a use instruction aiming at an observation prop, displaying a first observation picture and a sensitivity adjustment control, wherein the first observation picture and the sensitivity adjustment control are used for enabling the controlled virtual character to observe the virtual scene through the observation prop, and the sensitivity adjustment control is used for adjusting the visual angle steering sensitivity of the observation prop; A sound processing module for determining position information of a sound source emitting the environmental sound in the virtual scene in response to detecting the environmental sound; The angle calculation module is used for determining an offset angle of the sound source relative to the current visual angle orientation of the observation prop according to the position information; the mark display module is used for displaying a sound source prompt mark at the corresponding position on the sensitivity adjustment control based on the offset angle, and different positions of the sensitivity adjustment control correspond to different sensitivity adjustment parameters; the parameter determining module is used for responding to the interactive operation aiming at the sensitivity adjusting control and determining a sensitivity adjusting parameter; The sensitivity calculation module is used for determining the target sensitivity of the observation prop based on the sensitivity adjustment parameter and the initial sensitivity of the observation prop; And the visual angle control module is used for responding to the visual angle adjustment instruction aiming at the observation prop and controlling the observation prop to change the observation visual angle according to the target sensitivity.
- 17. An electronic device, comprising: a memory storing computer executable instructions executable by the processor; A processor for executing the computer-executable instructions to implement the method of any one of claims 1-15.
- 18. A computer readable storage medium, characterized in that a computer program is stored, which program, when being executed by a processor, implements the method according to any of claims 1-15.
Description
Virtual prop control method and device, electronic equipment and storage medium Technical Field The embodiment of the invention relates to the field of games, in particular to a virtual prop control method, a virtual prop control device, electronic equipment and a storage medium. Background This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section. In shooting games, the player typically pre-configures the viewing angle steering sensitivity of the viewing prop (e.g., sighting telescope) through a setup interface, which remains fixed during the game. However, the dynamic change of battlefield environment, such as the need of a player to quickly track moving targets or finely aim at remote enemies, the inability of fixed sensitivity to adapt to these different situations, resulting in mishandling of the player, increased frequency of misoperation of the player, and lack of real-time adjustment mechanism in the related art, limit game experience and efficiency. Furthermore, in shooting games, sound information (such as gunshot, footstep, etc.) is an important battlefield sensing element, but the related art fails to effectively combine such sound information with aiming operation to provide more intuitive viewing angle adjustment assistance to players. Disclosure of Invention In this context, embodiments of the present invention desirably provide a virtual prop control method, apparatus, electronic device, and storage medium to at least partially solve the above-described problems existing in the related art. In a first aspect of the embodiment of the invention, a virtual prop control method is provided, a graphical user interface is provided through terminal equipment, at least part or all of virtual scenes are displayed on the graphical user interface, the virtual scenes comprise controlled virtual roles, the controlled virtual roles are controlled through the terminal equipment, the method comprises the steps of responding to a using instruction aiming at an observation prop, displaying a first observation picture and a sensitivity adjustment control of the controlled virtual roles for observing the virtual scenes through the observation prop, the sensitivity adjustment control is used for adjusting the visual angle steering sensitivity of the observation prop, responding to the detected environmental sound, determining the position information of a sound source emitting the environmental sound in the virtual scenes, determining the offset angle of the current visual angle orientation of the sound source relative to the observation prop according to the position information, displaying sound source prompt identifications at corresponding positions on the sensitivity adjustment control based on the offset angle, corresponding to different sensitivity adjustment parameters at different positions of the sensitivity adjustment control, responding to interactive operation aiming at the sensitivity adjustment control, determining the sensitivity adjustment parameters based on the first observation picture and the initial sensitivity of the observation prop, responding to the observation prop, and controlling the observation prop according to the adjustment instruction aiming at the observation prop to the initial sensitivity. In a second aspect of the embodiment of the invention, a virtual prop control device is provided, a graphical user interface is provided through a terminal device, at least part or all of virtual scenes are displayed on the graphical user interface, the virtual scenes comprise controlled virtual roles, the controlled virtual roles are controlled through the terminal device, the device comprises an observation module, a parameter determination module, a sensitivity calculation module, an angle calculation module and a sensitivity calculation module, wherein the observation module is used for responding to a use instruction aiming at an observation prop, displaying a first observation picture and a sensitivity adjustment control of the controlled virtual roles for observing the virtual scenes through the observation prop, the sensitivity adjustment control is used for adjusting the visual angle steering sensitivity of the observation prop, the sound processing module is used for responding to the detected environmental sound, determining the position information of a sound source emitting the environmental sound in the virtual scenes, the angle calculation module is used for determining the offset angle of the sound source relative to the current visual angle of the observation prop according to the position information, the identification display module is used for displaying sound source prompt identifications at corresponding positions on the sensitivity adjustment control based on the offset angle, the parameter determination module is us