CN113633986B - Virtual prop control method and device, storage medium and electronic equipment - Google Patents

Virtual prop control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113633986B
CN113633986B CN202110932787.5A CN202110932787A CN113633986B CN 113633986 B CN113633986 B CN 113633986B CN 202110932787 A CN202110932787 A CN 202110932787A CN 113633986 B CN113633986 B CN 113633986B
Authority
CN
China
Prior art keywords
target
prop
sub
attack
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110932787.5A
Other languages
Chinese (zh)
Other versions
CN113633986A (en
Inventor
陈孝峰
马原野
史璟晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110932787.5A priority Critical patent/CN113633986B/en
Publication of CN113633986A publication Critical patent/CN113633986A/en
Application granted granted Critical
Publication of CN113633986B publication Critical patent/CN113633986B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/57Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/837Shooting of targets
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/64Methods for processing data by generating or executing the game program for computing dynamical parameters of game objects, e.g. motion determination or computation of frictional forces for a virtual car
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8076Shooting

Abstract

The invention discloses a control method and device for virtual props, a storage medium and electronic equipment. Wherein the method comprises the following steps: displaying a virtual scene picture, wherein a target barrier is displayed in the virtual scene picture; responding to a first transmitting instruction, and controlling a target virtual character to transmit a first sub-prop to a target obstacle through the target virtual prop, wherein an attack value of the first sub-prop when transmitted is a first attack value; and under the condition that the first sub prop hits the target obstacle and penetrates the target obstacle, adjusting the attack value of the first sub prop to be a second attack value, wherein the second attack value is smaller than the first attack value. The invention solves the technical problem of low control simulation degree of the virtual prop.

Description

Virtual prop control method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of computers, and in particular, to a method and apparatus for controlling a virtual prop, a storage medium, and an electronic device.
Background
In recent years, the development of virtual games is more rapid, and in particular, virtual games with simulation properties are more popular with users. However, the grasp of the simulation degree of the virtual game is still in the development stage, for example, in the related technology, the sub-props for controlling the virtual props to emit can penetrate through the barrier and cause damage to the virtual roles behind the barrier, but the damage caused by penetrating through the sub-props before and after the virtual props is not obviously different.
In an actual physical scene, the obstacle can play a role in weakening the damage of the penetrator, which causes that the damage performance of the related technology to the penetrating obstacle does not conform to the actual physical scene, and further the simulation degree of the virtual game is greatly reduced. That is, the related art has a technical problem that the control simulation degree of the virtual prop is low.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a control method and device for virtual props, a storage medium and electronic equipment, and aims to at least solve the technical problem of low control simulation degree of the virtual props.
According to an aspect of the embodiment of the present invention, there is provided a method for controlling a virtual prop, including: displaying a virtual scene picture, wherein a target barrier is displayed in the virtual scene picture; responding to a first transmitting instruction, and controlling a target virtual character to transmit a first sub-prop to the target obstacle through the target virtual prop, wherein an attack value of the first sub-prop when transmitted is a first attack value; and under the condition that the first sub-prop is in the presence of the target obstacle and penetrates through the target obstacle, adjusting the attack value of the first sub-prop to a second attack value, wherein the second attack value is smaller than the first attack value.
According to another aspect of the embodiment of the present invention, there is also provided a control device for a virtual prop, including: a first display unit, configured to display a virtual scene image, where a target obstacle is displayed in the virtual scene image; the first control unit is used for responding to the first transmitting instruction and controlling the target virtual character to transmit a first sub-prop to the target obstacle through the target virtual prop, wherein the attack value of the first sub-prop when being transmitted is a first attack value; and the first adjusting unit is used for adjusting the attack value of the first sub-prop to a second attack value under the condition that the first sub-prop is used for hitting the target obstacle and penetrating the target obstacle, wherein the second attack value is smaller than the first attack value.
As an alternative, the first adjusting unit includes: the determining module is used for determining an attack difference value according to the obstacle data corresponding to the target obstacle and the first penetration data corresponding to the first sub-prop; and the adjusting module is used for adjusting the attack value of the first sub-prop according to the attack difference value, wherein the first attack value is the sum of the attack difference value and the second attack value.
As an alternative, the determining module includes: the first acquisition submodule is used for acquiring a first target length of the target barrier penetrated by the first sub prop; a second obtaining sub-module, configured to obtain second penetration data required for penetrating the target obstacle of the first target length according to an obstacle attribute of the target obstacle; and the determining submodule is used for determining the attack difference value according to the first penetration data and the second penetration data.
As an alternative, the apparatus further includes: the second control unit is used for responding to a second transmitting instruction after the virtual scene picture is displayed, and controlling the target virtual character to transmit a second sub-prop to the target obstacle through the target virtual prop, wherein the attack value of the second sub-prop when being transmitted is a third attack value; and a second adjustment unit configured to adjust an attack value of the second sub-prop to 0 when the second sub-prop hits the target obstacle and does not penetrate the target obstacle after the virtual scene is displayed.
As an alternative, it includes: the first obtaining unit is used for obtaining third penetration data corresponding to the second sub-prop before the attack value of the second sub-prop is adjusted to 0; a second obtaining unit, configured to obtain fourth penetration data required for penetrating through a second target length of the target obstacle before the attack value of the second sub-prop is adjusted to 0, where the second target length is a target length of the target obstacle penetrated by the second sub-prop, and the third penetration data is smaller than the fourth penetration data; and the determining unit is used for determining that the second sub-prop does not penetrate the target obstacle before the attack value of the second sub-prop is adjusted to 0.
As an alternative, the apparatus further includes: a third obtaining unit, configured to obtain an initial kinetic energy value when the first sub-prop is transmitted after the control target virtual character transmits the first sub-prop to the target obstacle through the target virtual prop; a fourth obtaining unit, configured to obtain a first kinetic energy value consumed by the first sub-prop before hitting the target obstacle after the control target virtual character transmits the first sub-prop to the target obstacle through the target virtual prop; a fifth obtaining unit, configured to obtain a second kinetic energy value consumed by the first sub-prop in a process of penetrating the target obstacle after the control target virtual character transmits the first sub-prop to the target obstacle through the target virtual prop; and the calculating unit is used for calculating a target kinetic energy value of the first sub-prop after penetrating the target obstacle after the control target virtual character transmits the first sub-prop to the target obstacle through the target virtual prop, wherein the target kinetic energy value is the difference between the initial kinetic energy value and the consumption kinetic energy value, the consumption kinetic energy value is the sum of the first kinetic energy value and the second kinetic energy value, and the target kinetic energy value and the attack value of the first sub-prop are in positive correlation.
As an alternative, the apparatus further includes: the integration unit is used for integrating a plurality of groups of penetration attack data generated by the target virtual character in the target game application to obtain an integration result, wherein the penetration attack data are used for representing the attack data fed back by the virtual sub-prop when the virtual character is hit after penetrating through the target barrier; and the second display unit is used for displaying prompt information under the condition that the integration result indicates that the penetration attack data of the target virtual character exceeds a preset penetration attack threshold value, wherein the prompt information is used for prompting that the target virtual character is in an abnormal state.
According to yet another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-described virtual prop control method when run.
According to still another aspect of the embodiment of the present invention, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the method for controlling a virtual prop described above through the computer program.
In the embodiment of the application, a virtual scene picture is displayed, wherein a target barrier is displayed in the virtual scene picture; responding to a first transmitting instruction, and controlling a target virtual character to transmit a first sub-prop to the target obstacle through the target virtual prop, wherein an attack value of the first sub-prop when transmitted is a first attack value; under the condition that the first sub-prop is used for penetrating through the target obstacle, the attack value of the first sub-prop is adjusted to be a second attack value, wherein the second attack value is smaller than the first attack value, and the technical effect of improving the control simulation degree of the virtual prop is achieved by distinguishing the attack value of the sub-prop which is used for controlling the target virtual character to pass through the target virtual prop before penetrating through the target obstacle and after penetrating through the target obstacle, so that the actual injury feedback aim of improving the virtual injury feedback which is shown when the sub-prop is controlled to penetrate through the obstacle in a virtual scene picture and is close to an actual physical scene is achieved, and the technical problem of lower control simulation degree of the virtual prop is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic illustration of an application environment of an alternative virtual prop control method according to an embodiment of the present invention;
FIG. 2 is a schematic illustration of a flow of an alternative virtual prop control method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alternative virtual prop control method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another alternative method of controlling a virtual prop according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another alternative method of controlling a virtual prop according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of another alternative method of controlling a virtual prop according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of another alternative method of controlling a virtual prop according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of another alternative method of controlling a virtual prop according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of another alternative method of controlling a virtual prop according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of an alternative virtual prop control device according to an embodiment of the present invention;
fig. 11 is a schematic structural view of an alternative electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiment of the present invention, a method for controlling a virtual prop is provided, optionally, as an optional implementation manner, the method for controlling a virtual prop may be, but is not limited to, applied to an environment as shown in fig. 1. Including but not limited to a user device 102, a network 110, and a server 112, where the user device 102 may include but is not limited to a display 108, a processor 106, and a memory 104.
The specific process comprises the following steps:
step S102, the user equipment 102 obtains a first transmission instruction, where the first transmission instruction instructs the user to instruct the virtual character a to control the virtual firearm (target virtual prop) to transmit a bullet (first sub prop) to the target obstacle 1022, and the virtual character B is located behind the target obstacle 1022;
steps S104-S106, the user equipment 102 sends the first transmission instruction to the server 112 through the network 110;
step S108, the server 112 searches the database 114 for the related data indicating the bullet shot by the virtual character a controlled by the virtual firearm indicated by the first shot command, and processes the related data in combination with the related data of the target obstacle 1022 by the processing engine 116, so as to generate a command response result, where the command response result may be, but is not limited to, an attack value indicating the bullet after hitting the target obstacle 1022;
In steps S110-S112, the server 112 transmits the instruction response result to the user device 102 through the network 110, the processor 106 in the user device 102 adjusts the blood volume value of the virtual character B that is reduced after the bullet penetrates the target obstacle 1022 according to the instruction response result, and displays it in the display 108, and stores the instruction response result in the memory 104.
In addition to the example shown in fig. 1, the above steps may be independently performed by the user equipment 102, that is, the user equipment 102 performs steps such as generation of an instruction response result, thereby reducing processing pressure of the server. The user device 102 includes, but is not limited to, a handheld device (e.g., a mobile phone), a notebook computer, a desktop computer, a vehicle-mounted device, etc., and the invention is not limited to a particular implementation of the user device 102.
Optionally, as an optional implementation manner, as shown in fig. 2, the control method of the virtual prop includes:
s202, displaying a virtual scene picture, wherein a target obstacle is displayed in the virtual scene picture;
s204, responding to the first transmitting instruction, and controlling the target virtual character to transmit a first sub-prop to the target obstacle through the target virtual prop, wherein the attack value of the first sub-prop when transmitted is a first attack value;
S206, under the condition that the first sub-prop hits the target obstacle and penetrates the target obstacle, adjusting the attack value of the first sub-prop to be a second attack value, wherein the second attack value is smaller than the first attack value.
Optionally, in this embodiment, the method for controlling a virtual prop may be, but is not limited to, applied in a scenario of a virtual shooting game, where the method includes transmitting a first sub prop to a target obstacle through the target virtual prop by controlling a target virtual character, so that an enemy virtual character located behind the target obstacle can be injured if the first sub prop can penetrate the target obstacle; in addition, the attack value of the sub-props penetrating through the target barrier is smaller than that of the sub-props before penetrating through the target barrier, so that the effect of weakening the attack value of the sub-props by the target barrier is given, and the actual damage weakening of the sub-props hitting the target barrier in the actual physical scene is matched, and the control simulation degree of the virtual props is improved.
Alternatively, in the present embodiment, the target game application may include, but is not limited to, all games including, but not limited to, a first person shooter game, a third person shooter game, and the like, which use a heat weapon class to conduct a remote attack. Among other things, the target shooting application may be a multiplayer online tactical Game (Multiplayer Online Battle Arena abbreviated MOBA) or a Single Player Game (SPG). It should be noted that the types of the above game applications may include, but are not limited to, at least one of the following: two-dimensional (2D) game applications, three-dimensional (3D) game applications, virtual Reality (VR) game applications, augmented Reality (Augmented Reality AR) game applications, mixed Reality (MR) game applications. The above is merely an example, and the present embodiment is not limited in any way.
Alternatively, in this embodiment, the target game application may be, but not limited to, a target shooting application that is logged into a game client by a target account number, and the target virtual character is controlled by the target account number. That is, a player logs in to a target shooting application running in a game client through an account number and controls a target virtual character. And displaying a game picture of the target shooting game in a display screen of the mobile terminal where the client running the target shooting application is located, and displaying the target virtual prop in the game picture. The target virtual prop can be at least one of the shapes of firearms, cannons, crossbows and the like, and the sub prop can be at least one of the shapes of bullets, shells, crossbows and the like.
Alternatively, in the present embodiment, the target obstacle may be, but is not limited to, a collision body having collision properties as well as obstacle properties, such as a virtual object (wall, fence, door, window, etc.), a virtual character (friend virtual character, enemy virtual character, non-player controlled virtual character, etc.); wherein the collision attribute may be, but is not limited to, an attribute that is understood to determine whether a collision may occur; barrier properties may be understood, but are not limited to, properties that determine whether penetration may occur, or properties that are understood, but are not limited to, properties that are used to discourage penetration from occurring.
Optionally, in this embodiment, in the case where the target obstacle is a virtual object, as shown in fig. 3, when the control virtual character 304 launches the sub-prop (virtual bullet) to the target obstacle 302 through the launch prop (virtual firearm), and the launch sub-prop has hit (the dotted circle is used to indicate hit) and penetrated the target obstacle 302, and when the launch sub-prop hits (the dotted circle is used to indicate hit) the virtual character 306 after penetrating the target obstacle 302, the blood volume value of the virtual character 306 is reduced, and the reduced blood volume value of the virtual character 306 and the attack value of the launch sub-prop after penetrating the target obstacle 302 have a positive correlation (i.e. the higher the attack value is, the higher the reduced blood volume value is), thereby providing multiple ways (penetrating or not penetrating) for the injury to the virtual character 306 caused by the control sub-prop, and the penetrating way has a higher concealment than the non-penetrating way, which has a larger strategic meaning. Meanwhile, in order to improve the control simulation degree of the sub-props, the attack value of the emission sub-props after penetrating through the target barrier 302 is limited to be smaller than the attack value of the emission sub-props before penetrating through the target barrier 302, namely, although the penetrating mode has higher concealment than the non-penetrating mode, the damage amount caused by the relative non-penetrating mode is also relatively close to the actual physical scene, namely, the damage attenuation phenomenon exists.
Optionally, in this embodiment, in the case where the target obstacle is a virtual character, as shown in fig. 4, in the case where the control virtual character 402 emits a sub-prop (virtual bullet) to the virtual character 404 (target obstacle) through an emission prop (virtual gun), and the emission sub-prop has hit (a dotted circle is used to indicate hit) and penetrated the virtual character 404, and the emission sub-prop has hit (a dotted circle is used to indicate hit) the virtual character 406 after penetrating the virtual character 404, the blood volume values of the virtual character 404 and the virtual character 406 are shown to be reduced, and the reduced blood volume value of the virtual character 406 and the attack value of the emission sub-prop after penetrating the virtual character 404 are in positive correlation (i.e., the higher the attack value is, the higher the reduced blood volume value is), thereby providing a plurality of ways (penetrating or not penetrating) for the control sub-prop to injure the virtual character 406, and the penetrating way is wider and higher than the striking surface of the non-penetrating way, and the control efficiency is higher if the penetrating way can injure a large number of simultaneously and large number of virtual characters in the case of opposites face to the virtual character. Meanwhile, in order to improve the control simulation degree of the sub-props, the attack value of the transmitting sub-props after penetrating through the virtual character 404 is smaller than the attack value of the transmitting sub-props before penetrating through the virtual character 404, or the reduced blood volume value of the virtual character 404 caused by the hit of the factor prop is larger than the reduced blood volume value of the virtual character 406 caused by the hit of the factor prop, that is, although the penetrating mode has higher control efficiency than the non-penetrating mode, the damage amount caused by the relative non-penetrating mode is relatively closer to the actual physical scene, that is, the damage attenuation phenomenon exists.
Optionally, in this embodiment, different types of sub-props may be configured with different attack values, and/or with different penetration data, but not limited to; in addition, the sub-props configured with higher attack values and/or penetration data consume more virtual resources in the acquisition process.
Optionally, in this embodiment, considering that the penetration is often an event with higher uncertainty, in determining whether the penetration is performed, a probability interval may be set, but not limited to, where the penetration is forced (unable) when the penetration is located in the agreed probability interval, so as to increase the uncertainty of the penetration, and more conform to the actual physical scenario.
It should be noted that, by distinguishing the sub-props generated by the control target virtual character passing through the target virtual props, before penetrating through the target obstacle and after penetrating through the target obstacle, the penetration attack shown in the virtual scene of the target game application is close to the penetration attack in the actual physical scene, so as to improve the control simulation degree of the virtual props.
Further by way of example, a virtual scene screen 502 is displayed, optionally such as shown in fig. 5, wherein a target obstacle 504 is displayed in the virtual scene screen 502; in response to the first transmission instruction, controlling the target virtual character 506 to transmit a first sub-prop 510 to the target obstacle 504 through the target virtual prop 508, wherein an attack value when the first sub-prop 510 is transmitted is a first attack value; in the event that first sub-prop 510 hits target obstacle 504 and penetrates target obstacle 504, the attack value of first sub-prop 510 is adjusted to a second attack value, wherein the second attack value is less than the first attack value.
According to the embodiment provided by the application, a virtual scene picture is displayed, wherein a target obstacle is displayed in the virtual scene picture; responding to a first transmitting instruction, and controlling a target virtual character to transmit a first sub-prop to a target obstacle through the target virtual prop, wherein an attack value of the first sub-prop when transmitted is a first attack value; under the condition that the first sub prop hits the target obstacle and penetrates the target obstacle, the attack value of the first sub prop is adjusted to be a second attack value, wherein the second attack value is smaller than the first attack value, and the technical effect of improving the control simulation degree of the virtual prop is achieved by distinguishing the attack value of the sub prop which is generated by the control target virtual prop through the target virtual prop before penetrating the target obstacle and after penetrating the target obstacle, so that the actual injury feedback purpose that virtual injury feedback represented by the sub prop in a virtual scene picture when the control sub prop penetrates the obstacle is improved, and the actual injury feedback purpose that the virtual injury feedback is similar to an actual physical scene is achieved.
As an alternative, adjusting the attack value of the first sub-prop to the second attack value includes:
s1, determining an attack difference value according to obstacle data corresponding to a target obstacle and first penetration data corresponding to a first sub-prop;
S2, adjusting an attack value of the first sub-prop according to the attack difference value, wherein the first attack value is the sum of the attack difference value and the second attack value.
Alternatively, in the present embodiment, the obstacle data may be understood as, but is not limited to, data for determining whether or not penetration can occur, or may be understood as, but is not limited to, data for blocking occurrence of penetration; penetration data may be understood, but is not limited to, data that determines whether penetration may occur, or may be understood, but is not limited to, data that is used to facilitate penetration.
By way of further example, assuming that the obstacle data corresponding to the target obstacle is a specific value of 5, the value indicated as the target obstacle for preventing penetration is 5; further, assuming that the first penetration data corresponding to the first sub-prop is a specific numerical value 10, and the penetration data and the barrier data are data units with the same dimension, the first penetration data is larger than the barrier data (penetration can occur), and the attack difference value is 5, wherein the calculation mode of the attack difference value can be understood that the first penetration data and the attack value of the sub-prop are in positive correlation, for example, the first attack value of the sub-prop is also 10, and in the process that the sub-prop penetrates through the target barrier, the first penetration data which is required to be used for helping penetration can be understood as the consumed attack value (5), namely the attack difference value; the first penetration data remaining after penetration can also be understood as the second attack value (5) after penetration.
Optionally, in this embodiment, the attack values of the penetrating data and the sub-props may be, but not limited to, in a positive correlation, for example, in a positive proportion between the penetrating data and the attack value of the sub-props, further, assuming that the barrier data corresponding to the target barrier is a specific value of 5, the first penetrating data corresponding to the first sub-props is a specific value of 20, the first attack value corresponding to the first sub-props is 100, the first penetrating data is larger than the barrier data (penetration may occur), the penetrating data consumed in the penetrating process is 5, the remaining penetrating data is 15 (20-5), the proportion of the consumed penetrating data in the first penetrating data is 5/20, the proportion of the remaining penetrating data in the first penetrating data is 15/20, and then, based on the proportion, an attack difference value is determined to be 25 (100×5/20), or the second attack value after the penetrating is directly determined to be 75 (100×15/20).
As an alternative, determining the attack difference according to the obstacle data corresponding to the target obstacle includes:
s1, acquiring a first target length of a target barrier penetrated by a first sub prop;
s2, acquiring second penetration data required for penetrating through the target obstacle with the first target length according to the obstacle attribute of the target obstacle;
S3, determining an attack difference value according to the first penetration data and the second penetration data.
Alternatively, in this embodiment, different penetration angles often result in different lengths when the sub-props penetrate the target obstacle, for example, when the sub-props vertically penetrate the target obstacle, the length of the target obstacle penetrated should be the width or thickness of the target obstacle, but when the sub-props obliquely penetrate the target obstacle, the length of the target obstacle penetrated is often greater than the width or thickness of the target obstacle. Therefore, in order to improve the control simulation degree of the virtual prop, the penetration length of the target barrier is used as one of the bases for calculating the penetration data.
Optionally, in this embodiment, the obstacle attribute of the target obstacle may be further understood as a material, a type, a defense attribute, and the like of the target obstacle, for example, if the target obstacle is a relatively rigid wall, the obstacle value corresponding to the obstacle attribute is relatively high; for another example, if the target obstacle is a weaker window, the obstacle value corresponding to the obstacle attribute is relatively low; for example, if the target obstacle is a virtual character wearing hard armor, the obstacle value corresponding to the obstacle attribute is relatively high; for another example, if the target obstacle is a virtual character wearing a low-level armor, the obstacle value corresponding to the obstacle attribute is relatively low.
Alternatively, in this embodiment, the barrier property of the target barrier may be understood as a density barrier property, such as a barrier property that can be provided per unit length, and further, in the process of obtaining the second penetration data required to penetrate the target barrier of the first target length according to the barrier property of the target barrier, the second penetration data may be calculated by, but not limited to, multiplying the barrier property by the first target length.
According to the embodiment provided by the application, the first target length of the target barrier penetrated by the first sub-prop is obtained; acquiring second penetration data required for penetrating through the target obstacle with the first target length according to the obstacle attribute of the target obstacle; according to the first penetration data and the second penetration data, an attack difference value is determined, the purpose of combining the barrier attribute of the target barrier and the penetration data required by penetration through the penetration length is achieved, and the effect of improving the verification simulation degree of the penetration data is achieved.
As an alternative, after displaying the virtual scene screen, the method further includes:
s1, responding to a second transmitting instruction, and controlling a target virtual character to transmit a second sub-prop to a target obstacle through the target virtual prop, wherein an attack value when the second sub-prop is transmitted is a third attack value;
S2, under the condition that the second sub-prop hits the target obstacle and does not penetrate the target obstacle, the attack value of the second sub-prop is adjusted to be 0.
Alternatively, in the present embodiment, the form in which the attack value of the second sub-prop is adjusted to 0 may be, but is not limited to, not penetrating the target obstacle, or getting stuck in the target obstacle, or the speed is 0, or the like.
It should be noted that not all the sub-props that control the emission can complete the penetration of the obstacle, and when the sub-props hit and do not penetrate the obstacle, the attack value of the sub-props is cleared, so that the sub-props are closer to the actual physical scene.
Further by way of example, and optionally based on the scenario shown in fig. 3, continuing with the scenario shown in fig. 6, in response to a second firing instruction, virtual character 304 is controlled to fire a virtual bullet (second sub-prop) to target obstacle 302 via a virtual firearm (target virtual prop), wherein the attack value of the virtual bullet when fired is a third attack value; in the event that the virtual bullet hits the target obstacle 302 and does not penetrate the target obstacle, the attack value of the virtual bullet is adjusted to 0, meaning that the virtual bullet no longer causes a reduction in the life value of the virtual character 306.
According to the embodiment provided by the application, the target virtual character is controlled to transmit the second sub-props to the target obstacle through the target virtual props in response to the second transmitting instruction, wherein the attack value of the second sub-props when transmitted is a third attack value; under the condition that the second sub prop hits the target obstacle and does not penetrate the target obstacle, the attack value of the second sub prop is adjusted to 0, the purpose of improving the comprehensiveness of the scene fed back by the sub prop after hitting the target obstacle is achieved, and the effect of improving the control simulation degree of the virtual prop is achieved.
As an alternative, before adjusting the attack value of the second sub-prop to 0, the method includes:
s1, obtaining third penetration data corresponding to a second sub-prop;
s2, fourth penetration data required for penetrating through a target barrier with a second target length is obtained, wherein the second target length is the target length of the target barrier penetrated by the second sub-prop, and the third penetration data is smaller than the fourth penetration data;
and S3, determining that the second sub-prop does not penetrate the target barrier.
By way of further example, assuming that the obstacle data corresponding to the target obstacle is a specific value of 5, the value indicated as the target obstacle for preventing penetration is 10; further, it is assumed that the third penetration data corresponding to the second sub-prop is a specific value 5, and the penetration data and the barrier data are data units with the same dimension, and the third penetration data is smaller than the barrier data (penetration cannot occur).
Optionally, in this embodiment, the attack values of the penetrating data and the sub-props may be, but not limited to, in a positive correlation, for example, in a direct proportion between the penetrating data and the attack value of the sub-props, further, assuming that the barrier data corresponding to the target barrier is a specific value 20, the third penetrating data corresponding to the second sub-props is a specific value 10, the third attack value corresponding to the second sub-props is 100, the first penetrating data is larger than the barrier data (may be penetrated), the penetrating data consumed in the penetrating process should be 20, but the penetrating data that can be provided is only 10, it may be understood that after the penetrating data 10 is consumed, the remaining penetrating data that can be provided is 0, the proportion of the penetrating data that is consumed in the third penetrating data is 1, the proportion of the remaining penetrating data in the third penetrating data is 0, further, the attack difference is determined to be 20 (20×1) based on the proportion, or the attack value after the penetrating is directly determined to be 0 (20×0).
As an alternative, after controlling the target virtual character to launch the first sub-prop through the target virtual prop toward the target obstacle, the method further comprises:
s1, acquiring an initial kinetic energy value of a first sub prop when being transmitted;
s2, acquiring a first kinetic energy value consumed by the first sub-prop before hitting the target obstacle;
s3, obtaining a second kinetic energy value consumed by the first sub-prop in the process of penetrating through the target obstacle;
s4, calculating a target kinetic energy value of the first sub-prop after penetrating through the target obstacle, wherein the target kinetic energy value is the difference between an initial kinetic energy value and a consumption kinetic energy value, the consumption kinetic energy value is the sum of the first kinetic energy value and the second kinetic energy value, and the target kinetic energy value and an attack value of the first sub-prop are in positive correlation.
Optionally, in this embodiment, in order to improve the control simulation degree of the virtual prop, a kinetic energy value calculation manner in an actual physical scene is adopted, in a process of judging whether the sub prop can penetrate the target obstacle, auxiliary judgment is performed according to kinetic energy consumption, for example, the sub prop is allocated with an initial kinetic energy value (for example, 10) at the beginning of emission, and one or more types of consumption kinetic energy values (for example, flight consumption, penetration consumption, etc.) are generated in the process of the sub prop after being emitted; further, assuming that the kinetic energy value required to be consumed for penetrating the target obstacle is 5, in the process of judging whether the sub-props can penetrate the target obstacle, judging whether the current kinetic energy value of the sub-props is greater than 5 when the sub-props hit the target obstacle; if the distance between the sub-props is smaller than (e.g. 4), determining that the sub-props do not penetrate the target obstacle, and calculating the stay position of the sub-props in the target obstacle; if the kinetic energy value is larger than (e.g. 9), the residual kinetic energy value of the sub-props after penetrating the target barrier is further calculated.
Optionally, in this embodiment, after calculating the remaining kinetic energy value of the sub-prop after penetrating the target obstacle, as shown in fig. 7, the attack value of the sub-prop after penetrating the target virtual obstacle is determined in a manner that the attack value is compared with the kinetic energy value, for example, in the case that the ratio of the kinetic energy values (remaining kinetic energy value/initial kinetic energy) is 1, the ratio of the attack values (actual attack value/initial attack value) is also 1; however, when the ratio of the kinetic energy value (remaining kinetic energy value/initial kinetic energy) is 0.8, the ratio of the attack value (actual attack value/initial attack value) is about 0.55. Therefore, the ratios between the attack value and the kinetic energy value are not identical, but expressed in a regular linear relation, and the attack value and the kinetic energy value are more consistent with the expression in the actual physical scene.
According to the embodiment provided by the application, the initial kinetic energy value of the first sub-prop when being transmitted is obtained; acquiring a first kinetic energy value consumed by the first sub prop before hitting the target obstacle; acquiring a second kinetic energy value consumed by the first sub prop in the process of penetrating through the target obstacle; and calculating a target kinetic energy value of the first sub-prop after penetrating through the target obstacle, wherein the target kinetic energy value is the difference between an initial kinetic energy value and a consumption kinetic energy value, the consumption kinetic energy value is the sum of the first kinetic energy value and the second kinetic energy value, and the target kinetic energy value and an attack value of the first sub-prop are in positive correlation, so that the purpose of applying a kinetic energy value concept which is more matched with an actual physical scene in the control process of the virtual prop is achieved, and the effect of improving the control simulation degree of the virtual prop is achieved.
As an alternative, the method further comprises:
s1, integrating a plurality of groups of penetration attack data generated by a target virtual character in a target game application to obtain an integration result, wherein the penetration attack data are used for representing attack data fed back by a virtual sub-prop when the virtual character hits the virtual character after penetrating through a target barrier;
and S2, displaying prompt information under the condition that the integration result indicates that the penetration attack data of the target virtual character exceeds a preset penetration attack threshold, wherein the prompt information is used for prompting that the target virtual character is in an abnormal state.
Optionally, in this embodiment, since the attack values of the sub-props in the penetrating mode and the non-penetrating mode are explicitly controlled, and further combined with big data analysis, cheating behaviors such as wall-through hanging and the like can be more effectively screened, and prompt information can be timely displayed to prompt that the corresponding virtual roles are in an abnormal state; in addition, the method is not limited to adopting the modes of sealing numbers, deducting virtual resources and the like to punish the virtual roles in abnormal states.
According to the embodiment provided by the application, a plurality of groups of penetration attack data generated by the target virtual character in the target game application are integrated to obtain an integration result, wherein the penetration attack data are used for representing the attack data fed back by the virtual sub-prop when the virtual character hits the virtual character after penetrating through the target barrier; and displaying prompt information under the condition that the integrated result indicates that the penetration attack data of the target virtual character exceeds the preset penetration attack threshold, wherein the prompt information is used for prompting that the target virtual character is in an abnormal state, so that the aim of prompting the virtual character in the abnormal state in time is fulfilled, and the effect of improving the prompt timeliness of the virtual character in the abnormal state is realized.
As an alternative, for easy understanding, the description will be given with an embodiment specifically applied in a virtual shooting game scenario:
optionally, in this embodiment, a technical solution for bullet shooting and injury attenuation based on a kinetic energy model is provided for providing a more realistic shooting experience, deeper map game, and richer play ways for the player.
In the technical scheme, whether the currently shot bullet can cause damage to the target role is judged according to the global firearm bullet shooting kinetic energy parameter, the kinetic energy consumption parameter on the barrier material with unit thickness and the barrier thickness on the shooting path; on the basis, if the penetration is successful, calculating actual damage caused by hit according to a preset damage attenuation curve.
By way of further illustration, an alternative such as that shown in fig. 8, using a kinetic energy model-based bullet firing and injury attenuation scheme, the player side may feel a real firing experience with different firearms having different upper limits of firing distance on different materials; such as when the included angle between the bullet trajectory and the obstacle ejected from the player side is changed, the path length of the bullet passing through the obstacle is changed, so that the state of penetration or not and penetration injury are changed, and the player side can experience deeper map game (perception); and the player side can perform wall-penetrating injury and wall-penetrating killing through the position of the prejudged local unit, so that richer playing methods (entering doors) are experienced; in a skilled hero shooting play, a deeper tactic (proficiency) may be combined.
On the other hand, because parameters based on a kinetic energy model are used, flexible configuration is supported, the method not only provides a relatively stable and controllable growth curve for a player side, but also gives consideration to the self-iterative optimization adjustment space, and can be roughly divided into three stages of collection, analysis and adjustment, namely, collection of penetrating data, analysis of weapon intensity, and adjustment of penetrating properties of weapon subdivision based on analysis results; in addition, the collected penetration data can be used for analyzing the rationality of the player behavior, and an anti-cheating strategy is determined based on the analysis result and used for identifying cheating means such as perspective and self aiming, so that the cheating screening and rejecting are completed.
Further by way of example, the basic flow is to pre-deploy the exit kinetic energy of the firearm, the penetration coefficient of the material (the kinetic energy required to penetrate the material per unit thickness) and the map material, as shown in fig. 9, for the optional penetration and penetration damage determination; when a bullet is shot to a target, the front end side determines whether or not the penetration is involved in accordance with the radiation determination. If penetrating is involved, sequentially recording the materials and the thickness on the path, determining whether the target can be hit or not based on the emergent kinetic energy, reporting, calculating penetrating damage by the rear end, and issuing, wherein the specific steps are as follows:
Step S902, deploying bullet emergent kinetic energy of the firearm;
step S904, the kinetic energy required by the penetration of the unit thickness of the deployment material is provided;
step S906, judging whether an obstacle exists on the bullet path, if yes, executing step S908-2, and if not, executing step S908-1;
step S908-1, no penetrating condition exists;
step S908-2, recording penetrating material 1;
step S910-1, calculating the thickness of the material 1;
step S910-2, recording penetrating material 2;
step S912, calculating the thickness of the material 2;
step S914, calculating the total kinetic energy consumption;
step S916, judging whether the emergent kinetic energy is larger than the total kinetic energy consumption, if yes, executing step S920, otherwise, executing step S918;
step S920, successfully penetrating and calculating residual kinetic energy;
in step S922, the penetrating injury is calculated according to the penetrating injury curve.
In addition, optionally, when the penetrating injury is calculated, the back end reads a pre-deployed penetrating injury-residual kinetic energy ratio curve, and the ratio of the penetrating injury to the direct hit injury is calculated according to the ratio of the residual kinetic energy to the emergent kinetic energy, so that the penetrating injury value is obtained, and the penetrating injury value is rounded and then issued. At the same time, the radio frequency penetration rate and the fraction hit rate of the player in unit time are recorded.
Through the embodiment provided by the application, the penetrating scheme based on the kinetic energy physical model provides a player with more real shooting experience, and the player can quickly establish the cognition about whether penetrating and what magnitude of injury can be caused by penetrating; on the premise of unchanged basic settings such as playing methods, maps, firearms and the like, the map game depth of a player can be increased by the scheme, and the attack and defense interestingness in shooting hand tour is enhanced; the back end records the number of penetrating injuries and hit conditions of the player, and by combining big data analysis, cheating behaviors such as wall hanging and the like can be more effectively screened.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
According to another aspect of the embodiment of the invention, a control device for the virtual prop is also provided, wherein the control device is used for implementing the control method for the virtual prop. As shown in fig. 10, the apparatus includes:
a first display unit 1002, configured to display a virtual scene image, where a target obstacle is displayed in the virtual scene image;
a first control unit 1004, configured to control, in response to a first transmission instruction, a target virtual character to transmit a first sub-prop to a target obstacle through the target virtual prop, where an attack value when the first sub-prop is transmitted is a first attack value;
the first adjusting unit 1006 is configured to adjust an attack value of the first sub-prop to a second attack value when the first sub-prop hits the target obstacle and penetrates the target obstacle, where the second attack value is smaller than the first attack value.
Optionally, in this embodiment, the control device for a virtual prop may be, but is not limited to, applied in a scene of a virtual shooting game, where the method includes transmitting a first sub prop to a target obstacle through the target virtual prop by controlling the target virtual character, so that an enemy virtual character located behind the target obstacle can be injured if the first sub prop can penetrate the target obstacle; in addition, the attack value of the sub-props penetrating through the target barrier is smaller than that of the sub-props before penetrating through the target barrier, so that the effect of weakening the attack value of the sub-props by the target barrier is given, and the actual damage weakening of the sub-props hitting the target barrier in the actual physical scene is matched, and the control simulation degree of the virtual props is improved.
Alternatively, in the present embodiment, the target game application may include, but is not limited to, all games including, but not limited to, a first person shooter game, a third person shooter game, and the like, which use a heat weapon class to conduct a remote attack. Among other things, the target shooting application may be a multiplayer online tactical Game (Multiplayer Online Battle Arena abbreviated MOBA) or a Single Player Game (SPG). It should be noted that the types of the above game applications may include, but are not limited to, at least one of the following: two-dimensional (2D) game applications, three-dimensional (3D) game applications, virtual Reality (VR) game applications, augmented Reality (Augmented Reality AR) game applications, mixed Reality (MR) game applications. The above is merely an example, and the present embodiment is not limited in any way.
Alternatively, in this embodiment, the target game application may be, but not limited to, a target shooting application that is logged into a game client by a target account number, and the target virtual character is controlled by the target account number. That is, a player logs in to a target shooting application running in a game client through an account number and controls a target virtual character. And displaying a game picture of the target shooting game in a display screen of the mobile terminal where the client running the target shooting application is located, and displaying the target virtual prop in the game picture. The target virtual prop can be at least one of the shapes of firearms, cannons, crossbows and the like, and the sub prop can be at least one of the shapes of bullets, shells, crossbows and the like.
Alternatively, in the present embodiment, the target obstacle may be, but is not limited to, a collision body having collision properties as well as obstacle properties, such as a virtual object (wall, fence, door, window, etc.), a virtual character (friend virtual character, enemy virtual character, non-player controlled virtual character, etc.); wherein the collision attribute may be, but is not limited to, an attribute that is understood to determine whether a collision may occur; barrier properties may be understood, but are not limited to, properties that determine whether penetration may occur, or properties that are understood, but are not limited to, properties that are used to discourage penetration from occurring.
Optionally, in this embodiment, different types of sub-props may be configured with different attack values, and/or with different penetration data, but not limited to; in addition, the sub-props configured with higher attack values and/or penetration data consume more virtual resources in the acquisition process.
Optionally, in this embodiment, considering that the penetration is often an event with higher uncertainty, in determining whether the penetration is performed, a probability interval may be set, but not limited to, where the penetration is forced (unable) when the penetration is located in the agreed probability interval, so as to increase the uncertainty of the penetration, and more conform to the actual physical scenario.
It should be noted that, by distinguishing the sub-props generated by the control target virtual character passing through the target virtual props, before penetrating through the target obstacle and after penetrating through the target obstacle, the penetration attack shown in the virtual scene of the target game application is close to the penetration attack in the actual physical scene, so as to improve the control simulation degree of the virtual props.
Specific embodiments may refer to examples shown in the control device of the virtual prop, and in this example, details are not repeated here.
According to the embodiment provided by the application, a virtual scene picture is displayed, wherein a target obstacle is displayed in the virtual scene picture; responding to a first transmitting instruction, and controlling a target virtual character to transmit a first sub-prop to a target obstacle through the target virtual prop, wherein an attack value of the first sub-prop when transmitted is a first attack value; under the condition that the first sub prop hits the target obstacle and penetrates the target obstacle, the attack value of the first sub prop is adjusted to be a second attack value, wherein the second attack value is smaller than the first attack value, and the technical effect of improving the control simulation degree of the virtual prop is achieved by distinguishing the attack value of the sub prop which is generated by the control target virtual prop through the target virtual prop before penetrating the target obstacle and after penetrating the target obstacle, so that the actual injury feedback purpose that virtual injury feedback represented by the sub prop in a virtual scene picture when the control sub prop penetrates the obstacle is improved, and the actual injury feedback purpose that the virtual injury feedback is similar to an actual physical scene is achieved.
As an alternative, the first adjusting unit 1006 includes:
the determining module is used for determining an attack difference value according to the obstacle data corresponding to the target obstacle and the first penetration data corresponding to the first sub-prop;
the adjusting module is used for adjusting the attack value of the first sub-prop according to the attack difference value, wherein the first attack value is the sum of the attack difference value and the second attack value.
Specific embodiments may refer to examples shown in the above-mentioned control method of the virtual prop, and in this example, details are not repeated here.
As an alternative, the determining module includes:
the first acquisition sub-module is used for acquiring a first target length of the target barrier penetrated by the first sub-prop;
the second acquisition submodule is used for acquiring second penetration data required by penetrating through the target obstacle with the first target length according to the obstacle attribute of the target obstacle;
and the determining submodule is used for determining an attack difference value according to the first penetration data and the second penetration data.
Specific embodiments may refer to examples shown in the above-mentioned control method of the virtual prop, and in this example, details are not repeated here.
As an alternative, the apparatus further includes:
the second control unit is used for responding to the second transmitting instruction after the virtual scene picture is displayed, and controlling the target virtual character to transmit a second sub-prop to the target obstacle through the target virtual prop, wherein the attack value of the second sub-prop when being transmitted is a third attack value;
And the second adjusting unit is used for adjusting the attack value of the second sub-prop to 0 under the condition that the second sub-prop hits the target obstacle and does not penetrate the target obstacle after the virtual scene picture is displayed.
Specific embodiments may refer to examples shown in the above-mentioned control method of the virtual prop, and in this example, details are not repeated here.
As an alternative, it includes:
the first acquisition unit is used for acquiring third penetration data corresponding to the second sub-prop before the attack value of the second sub-prop is adjusted to 0;
the second obtaining unit is used for obtaining fourth penetration data required by penetrating through a target barrier with a second target length before the attack value of the second sub-prop is adjusted to be 0, wherein the second target length is the target length of the target barrier penetrated by the second sub-prop, and the third penetration data is smaller than the fourth penetration data;
and the determining unit is used for determining that the second sub-prop does not penetrate the target barrier before the attack value of the second sub-prop is adjusted to 0.
Specific embodiments may refer to examples shown in the above-mentioned control method of the virtual prop, and in this example, details are not repeated here.
As an alternative, the apparatus further includes:
The third acquisition unit is used for acquiring an initial kinetic energy value when the first sub-prop is transmitted after the control target virtual character transmits the first sub-prop to the target obstacle through the target virtual prop;
the fourth acquisition unit is used for acquiring a first kinetic energy value consumed by the first sub-prop before hitting the target obstacle after the first sub-prop is transmitted to the target obstacle by the target virtual prop by the control target virtual character;
a fifth obtaining unit, configured to obtain a second kinetic energy value consumed by the first sub-prop in the process of penetrating the target obstacle after the first sub-prop is transmitted to the target obstacle by the target virtual prop by the control target virtual character;
the calculation unit is used for calculating a target kinetic energy value of the first sub-prop after penetrating through the target obstacle after the first sub-prop is transmitted to the target obstacle by the target virtual prop, wherein the target kinetic energy value is the difference between an initial kinetic energy value and a consumption kinetic energy value, the consumption kinetic energy value is the sum of the first kinetic energy value and the second kinetic energy value, and the target kinetic energy value and an attack value of the first sub-prop are in positive correlation.
Specific embodiments may refer to examples shown in the above-mentioned control method of the virtual prop, and in this example, details are not repeated here.
As an alternative, the apparatus further includes:
the integration unit is used for integrating a plurality of groups of penetration attack data generated by the target virtual character in the target game application to obtain an integration result, wherein the penetration attack data are used for representing the attack data fed back by the virtual sub-prop when the virtual character hits the target barrier after penetrating through the target barrier;
the second display unit is used for displaying prompt information when the integration result indicates that the penetration attack data of the target virtual character exceeds a preset penetration attack threshold, wherein the prompt information is used for prompting that the target virtual character is in an abnormal state.
Specific embodiments may refer to examples shown in the above-mentioned control method of the virtual prop, and in this example, details are not repeated here.
According to a further aspect of the embodiments of the present invention there is also provided an electronic device for implementing the method of controlling a virtual prop described above, as shown in fig. 11, the electronic device comprising a memory 1102 and a processor 1104, the memory 1102 having stored therein a computer program, the processor 1104 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, displaying a virtual scene picture, wherein a target obstacle is displayed in the virtual scene picture;
s2, responding to a first transmitting instruction, and controlling a target virtual character to transmit a first sub-prop to a target obstacle through the target virtual prop, wherein an attack value of the first sub-prop when transmitted is a first attack value;
s3, under the condition that the first sub prop hits the target obstacle and penetrates the target obstacle, the attack value of the first sub prop is adjusted to be a second attack value, wherein the second attack value is smaller than the first attack value.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 11 is only schematic, and the electronic device may also be a terminal device such as a smart phone (e.g. an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 11 is not limited to the structure of the electronic device described above. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 11, or have a different configuration than shown in FIG. 11.
The memory 1102 may be used for storing software programs and modules, such as program instructions/modules corresponding to the method and apparatus for controlling a virtual prop in the embodiment of the present invention, and the processor 1104 executes the software programs and modules stored in the memory 1102 to perform various functional applications and data processing, that is, implement the method for controlling a virtual prop described above. Memory 1102 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 1102 may further include memory located remotely from processor 1104, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1102 may be, but is not limited to, for storing information such as a first attack value, a first transmission instruction, and a second attack value. As an example, as shown in fig. 11, the memory 1102 may include, but is not limited to, a first display unit 1002, a first control unit 1004, and a first adjustment unit 1006 in the control device including the virtual prop. In addition, other module units in the control device of the virtual prop may be further included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 1106 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1106 includes a network adapter (Network Interface Controller, NIC) that may be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 1106 is a Radio Frequency (RF) module for communicating wirelessly with the internet.
In addition, the electronic device further includes: a display 1108, configured to display the first attack value, the first transmission instruction, the second attack value, and other information; and a connection bus 11110 for connecting the respective module parts in the above-described electronic device.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes through a network communication. Among them, the nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, etc., may become a node in the blockchain system by joining the Peer-To-Peer network.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from a computer readable storage medium, the processor executing the computer instructions, causing the computer device to perform the method of controlling a virtual prop as described above, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, displaying a virtual scene picture, wherein a target obstacle is displayed in the virtual scene picture;
s2, responding to a first transmitting instruction, and controlling a target virtual character to transmit a first sub-prop to a target obstacle through the target virtual prop, wherein an attack value of the first sub-prop when transmitted is a first attack value;
s3, under the condition that the first sub prop hits the target obstacle and penetrates the target obstacle, the attack value of the first sub prop is adjusted to be a second attack value, wherein the second attack value is smaller than the first attack value.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method of the various embodiments of the present invention.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and are merely a logical functional division, and there may be other manners of dividing the apparatus in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (7)

1. A method for controlling a virtual prop, applied to a target game application, comprising:
displaying a virtual scene picture, wherein a target obstacle is displayed in the virtual scene picture;
responding to a first transmitting instruction, and controlling a target virtual character to transmit a first sub-prop to the target obstacle through the target virtual prop, wherein an attack value of the first sub-prop when transmitted is a first attack value;
under the condition that the first sub-prop hits the target obstacle and penetrates the target obstacle, adjusting an attack value of the first sub-prop to be a second attack value, wherein the second attack value is smaller than the first attack value;
The adjusting the attack value of the first sub-prop to a second attack value includes:
determining an attack difference value according to barrier data corresponding to the target barrier and first penetration data corresponding to the first sub-prop, wherein the first penetration data and the attack value of the first sub-prop are in positive correlation;
adjusting the attack value of the first sub-prop according to the attack difference value, wherein the first attack value is the sum of the attack difference value and the second attack value;
the determining an attack difference value according to the obstacle data corresponding to the target obstacle comprises:
acquiring a first target length of the target barrier penetrated by the first sub-prop;
multiplying the density obstacle attribute of the target obstacle with the first target length to obtain second penetration data required for penetrating the target obstacle of the first target length;
determining the attack difference value according to the first penetration data and the second penetration data;
the method further comprises the steps of: integrating a plurality of groups of penetration attack data generated by the target virtual character in the target game application to obtain an integration result, wherein the penetration attack data are used for representing the attack data fed back by the virtual sub-prop when the virtual character hits the virtual character after penetrating through the target barrier; and displaying prompt information under the condition that the integration result indicates that the penetration attack data of the target virtual character exceeds a preset penetration attack threshold, wherein the prompt information is used for prompting that the target virtual character is in an abnormal state.
2. The method of claim 1, wherein after the displaying the virtual scene picture, the method further comprises:
responding to a second transmitting instruction, and controlling the target virtual character to transmit a second sub-prop to the target obstacle through the target virtual prop, wherein an attack value when the second sub-prop is transmitted is a third attack value;
and adjusting an attack value of the second sub-prop to be 0 under the condition that the second sub-prop hits the target obstacle and does not penetrate the target obstacle.
3. The method of claim 2, comprising, prior to said adjusting the attack value of the second sub-prop to 0:
acquiring third penetration data corresponding to the second sub-prop;
acquiring fourth penetration data required for penetrating through a second target length of the target obstacle, wherein the second target length is the target length of the target obstacle penetrated by the second sub-prop, and the third penetration data is smaller than the fourth penetration data;
determining that the second sub-prop did not penetrate the target barrier.
4. A method according to any one of claims 1 to 3, wherein after the control target virtual character transmits a first sub-prop to the target obstacle through a target virtual prop, the method further comprises:
Acquiring an initial kinetic energy value of the first sub-prop when being transmitted;
acquiring a first kinetic energy value consumed by the first sub-prop before hitting the target obstacle;
acquiring a second kinetic energy value consumed by the first sub-prop in the process of penetrating through the target obstacle;
and calculating a target kinetic energy value of the first sub-prop after penetrating through the target obstacle, wherein the target kinetic energy value is the difference between the initial kinetic energy value and the consumption kinetic energy value, the consumption kinetic energy value is the sum of the first kinetic energy value and the second kinetic energy value, and the target kinetic energy value and the attack value of the first sub-prop are in positive correlation.
5. A control device for a virtual prop, applied to a target game application, comprising:
a first display unit, configured to display a virtual scene image, where a target obstacle is displayed in the virtual scene image;
the first control unit is used for responding to a first transmitting instruction and controlling a target virtual character to transmit a first sub-prop to the target obstacle through the target virtual prop, wherein the attack value of the first sub-prop when being transmitted is a first attack value;
the first adjusting unit is used for adjusting the attack value of the first sub-prop to a second attack value under the condition that the first sub-prop hits the target obstacle and penetrates the target obstacle, wherein the second attack value is smaller than the first attack value;
The first adjusting unit includes:
the determining module is used for determining an attack difference value according to the obstacle data corresponding to the target obstacle and the first penetration data corresponding to the first sub-prop, wherein the first penetration data and the attack value of the first sub-prop are in positive correlation;
the adjusting module is used for adjusting the attack value of the first sub-prop according to the attack difference value, wherein the first attack value is the sum of the attack difference value and the second attack value;
the determining module includes:
the first acquisition submodule is used for acquiring a first target length of the target barrier penetrated by the first sub prop;
a second obtaining submodule, configured to multiply a density obstacle attribute of the target obstacle with the first target length, and obtain second penetration data required for penetrating the target obstacle with the first target length;
a determining submodule, configured to determine the attack difference according to the first penetration data and the second penetration data;
the device further comprises:
the integration unit is used for integrating a plurality of groups of penetration attack data generated by the target virtual character in the target game application to obtain an integration result, wherein the penetration attack data are used for representing attack data fed back by the virtual sub-prop when the virtual character is hit after penetrating through the target barrier;
And the second display unit is used for displaying prompt information when the integration result indicates that the penetration attack data of the target virtual character exceeds a preset penetration attack threshold, wherein the prompt information is used for prompting that the target virtual character is in an abnormal state.
6. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any of the preceding claims 1 to 4.
7. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1-4 by means of the computer program.
CN202110932787.5A 2021-08-13 2021-08-13 Virtual prop control method and device, storage medium and electronic equipment Active CN113633986B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110932787.5A CN113633986B (en) 2021-08-13 2021-08-13 Virtual prop control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110932787.5A CN113633986B (en) 2021-08-13 2021-08-13 Virtual prop control method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113633986A CN113633986A (en) 2021-11-12
CN113633986B true CN113633986B (en) 2023-10-24

Family

ID=78421667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110932787.5A Active CN113633986B (en) 2021-08-13 2021-08-13 Virtual prop control method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113633986B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108654086A (en) * 2018-05-09 2018-10-16 腾讯科技(深圳)有限公司 Attack object injury acquisition methods, device and equipment in virtual environment
CN110975283A (en) * 2019-11-28 2020-04-10 腾讯科技(深圳)有限公司 Processing method and device of virtual shooting prop, storage medium and electronic device
CN111803962A (en) * 2020-07-21 2020-10-23 腾讯科技(深圳)有限公司 Method for virtual object interaction in virtual scene and related device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108654086A (en) * 2018-05-09 2018-10-16 腾讯科技(深圳)有限公司 Attack object injury acquisition methods, device and equipment in virtual environment
CN110975283A (en) * 2019-11-28 2020-04-10 腾讯科技(深圳)有限公司 Processing method and device of virtual shooting prop, storage medium and electronic device
CN111803962A (en) * 2020-07-21 2020-10-23 腾讯科技(深圳)有限公司 Method for virtual object interaction in virtual scene and related device

Also Published As

Publication number Publication date
CN113633986A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
US7803048B2 (en) Radar manipulation in a video game
CN108310765B (en) Image display method and device, storage medium and electronic device
US20070218965A1 (en) Player deception in a video game
CN111111171B (en) Operation control method, operation control device, storage medium, and electronic device
CN111084986B (en) Display control method, display control device, storage medium, and electronic device
US20230019527A1 (en) Virtual role control method and apparatus, storage medium, and computer device
CN110585716A (en) Virtual item control method, device, equipment and storage medium
EP2862112B1 (en) Anti-cheating method and system for online games
CN111298430A (en) Virtual item control method and device, storage medium and electronic device
CN110975283A (en) Processing method and device of virtual shooting prop, storage medium and electronic device
WO2021135525A1 (en) Virtual prop obtaining method and device, storage medium, and electronic device
US20230019216A1 (en) Method and apparatus for controlling virtual object, and storage medium
CN111202983A (en) Method, device, equipment and storage medium for using props in virtual environment
Tremblay et al. Target selection for AI companions in FPS games.
JP2023541150A (en) Screen display methods, devices, equipment and computer programs
CN113633986B (en) Virtual prop control method and device, storage medium and electronic equipment
KR102494456B1 (en) Interaction control system and method for game objects, server and computer readable storage medium
CN112107859A (en) Prop control method and device, storage medium and electronic equipment
CN113633987B (en) Object control method and device, storage medium and electronic equipment
CN113599822B (en) Virtual prop control method and device, storage medium and electronic equipment
CN114344917A (en) Operation data verification method and device, storage medium and electronic equipment
KR101226765B1 (en) Method for providing online shooting game and system there of
Løvlie The rhetoric of persuasive games
CN112121426A (en) Prop obtaining method and device, storage medium and electronic equipment
CN113750532B (en) Track display method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40055267

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant