CN111111171B - Operation control method, operation control device, storage medium, and electronic device - Google Patents
Operation control method, operation control device, storage medium, and electronic device Download PDFInfo
- Publication number
- CN111111171B CN111111171B CN201911303965.7A CN201911303965A CN111111171B CN 111111171 B CN111111171 B CN 111111171B CN 201911303965 A CN201911303965 A CN 201911303965A CN 111111171 B CN111111171 B CN 111111171B
- Authority
- CN
- China
- Prior art keywords
- shooting
- prop
- weapon
- aiming
- game task
- 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
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/80—Special adaptations for executing a specific game genre or game mode
- A63F13/837—Shooting of targets
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features 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/80—Features 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/8076—Shooting
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses an operation control method, an operation control device, a storage medium and an electronic device. The method comprises the following steps: in the process of running one game task, displaying a shooting aiming prop in a virtual scene corresponding to the game task, wherein the shooting aiming prop is used for assisting a shooting weapon to carry out shooting operation; acquiring a strengthening coefficient matched with the shooting aiming prop; adjusting the emission parameters of the shooting weapon according to the strengthening coefficient to obtain the adjusted emission parameters, wherein the emission parameters are used for describing the aggregation degree of bullets shot by the shooting weapon; and controlling the shooting weapon to carry out shooting operation according to the adjusted emission parameters. The invention solves the problem of low shooting accuracy.
Description
Technical Field
The invention relates to the field of computers, in particular to an operation control method, an operation control device, a storage medium and an electronic device.
Background
Currently, in a mobile shooting game application, a player may choose to use a variety of shooting props for shooting operations, for example, the player may choose to use a shotgun for shooting, or a rifle for shooting.
In practice it has been found that some shooting props, such as shotguns, have a high emission value, because shotguns comprise eight muzzles which can eject the bullet simultaneously, and after the muzzles eject the bullet simultaneously, the bullet will shift during flight, resulting in a high emission and thus a low shooting accuracy. Therefore, how to solve the problem of low shooting accuracy caused by high emission of the shooting props becomes an urgent need to be solved.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides an operation control method, an operation control device, a storage medium and an electronic device, and at least solves the technical problem of low shooting accuracy.
According to an aspect of an embodiment of the present invention, there is provided an operation control method including: in the process of running a game task, displaying a shooting aiming prop in a virtual scene corresponding to the game task, wherein the shooting aiming prop is used for assisting a shooting weapon to carry out shooting operation; acquiring a strengthening coefficient matched with the shooting aiming prop; adjusting the emission parameters of the shooting weapon according to the strengthening coefficient to obtain adjusted emission parameters, wherein the emission parameters are used for describing the aggregation degree of bullets shot by the shooting weapon; and controlling the shooting weapon to carry out shooting operation according to the adjusted emission parameters.
According to another aspect of the embodiments of the present invention, there is also provided an operation control apparatus including: the shooting aiming device comprises a first display unit, a second display unit and a shooting aiming unit, wherein the first display unit is used for displaying a shooting aiming prop in a virtual scene corresponding to a game task in the process of running a game task, and the shooting aiming prop is used for assisting a shooting weapon to carry out shooting operation; the first acquisition unit is used for acquiring a strengthening coefficient matched with the shooting aiming prop; the second acquisition unit is used for adjusting the emission parameters of the shooting weapon according to the strengthening coefficient to obtain the adjusted emission parameters, and the emission parameters are used for describing the aggregation degree of bullets shot by the shooting weapon; and the control unit is used for controlling the shooting weapon to carry out shooting operation according to the adjusted emission parameters.
According to still another aspect of the embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-described operation control method when executed.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the operation control method through the computer program.
In the embodiment of the invention, in the process of running one game task, the shooting aiming prop is displayed in a virtual scene corresponding to the game task and is used for assisting a shooting weapon to carry out shooting operation; acquiring a strengthening coefficient matched with the shooting aiming prop; adjusting the emission parameters of the shooting weapon according to the strengthening coefficient to obtain the adjusted emission parameters, wherein the emission parameters are used for describing the aggregation degree of bullets shot by the shooting weapon; and controlling the shooting weapon to carry out shooting operation according to the adjusted emission parameters. The process can adjust the emission parameters of the shooting weapon through the shooting aiming prop, so that the aggregation degree of bullets emitted by the adjusted shooting weapon is higher, the emission of the shooting weapon is reduced, and the shooting accuracy is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of a network environment for an alternative method of operation control according to an embodiment of the present invention;
FIG. 2 is a flow chart of an alternative operational control method according to an embodiment of the present invention;
FIG. 3 is a schematic view of an alternative firing prop selection interface in accordance with embodiments of the present invention;
FIG. 4 is a schematic illustration of a display of an alternative firing sight according to an embodiment of the invention;
FIG. 5 is a schematic diagram of an alternative shot ray generation in accordance with embodiments of the present invention;
FIG. 6 is a schematic illustration of an alternative area into which a bullet fired by a firing weapon falls when the firing sight is not in use, according to an embodiment of the invention;
FIG. 7 is a schematic illustration of an alternative area into which a bullet fired by a firing weapon falls when using a firing sight according to an embodiment of the invention;
FIG. 8 is a schematic illustration of an alternative shot according to an embodiment of the invention;
FIG. 9 is a schematic illustration of another alternative shot in accordance with an embodiment of the present invention;
FIG. 10 is a schematic flow chart diagram of an alternative operational control method according to an embodiment of the present invention;
FIG. 11 is a schematic structural diagram of an alternative operational control device in accordance with an embodiment of the present invention;
fig. 12 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or 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 embodiments of the present invention, an operation control method is provided, and optionally, as an optional implementation, the operation control method may be applied, but not limited, to an operation control system in a network environment as shown in fig. 1, where the operation control system includes a user equipment 102, a network 110, and a server 112. Assume that a client of a game application (such as a shooting-type game application client shown in fig. 1) is installed in a user device 102, wherein the user device 102 includes a human-machine interaction screen 104, a processor 106 and a memory 108. The human-computer interaction screen 104 is used for detecting human-computer interaction operations (such as click operations, dragging operations, and the like) through a human-computer interaction interface corresponding to the client; the processor 106 is configured to generate a corresponding operation instruction according to the human-computer interaction operation, and respond to the operation instruction, and the memory 108 is configured to store the operation instruction. Specifically, please refer to step S101 to step S108.
S101, in the process of running a game task, user equipment 102 displays a shooting aiming prop in a virtual scene corresponding to the game task, wherein the shooting aiming prop is used for assisting a shooting weapon to carry out shooting operation;
s102, the user equipment 102 sends an acquisition instruction to the network 110;
s103, the network 110 sends an acquisition instruction to the server 114;
s104, the server 114 receives and responds to the acquisition instruction to acquire an enhancement coefficient matched with the shooting aiming prop;
s105, the server 114 sends an adjusting instruction to the network 110;
s106, the network 110 sends an adjusting instruction to the user equipment 102;
s107, the user equipment 102 responds to the adjusting instruction, adjusts the emission parameters of the shooting weapon according to the strengthening coefficient, and obtains the adjusted emission parameters which are used for describing the aggregation degree of bullets shot by the shooting weapon;
and S108, the user equipment 102 controls the shooting weapon to carry out shooting operation according to the adjusted emission parameters.
In the embodiment of the present invention, a human-computer interaction interface is presented on the human-computer interaction screen 102, a user can perform human-computer interaction through touch operation on the human-computer interaction interface, and the human-computer interaction screen 102 can receive the touch operation of the user on the human-computer interaction interface, for example, a virtual scene corresponding to a game task can be displayed on the human-computer interaction screen 102, specifically, in the virtual scene, virtual characters of two opponents of an enemy can be fired through each other, so that a winner and a loser of a battle can be determined according to a firing result. During the course of a game mission, a player may select a shooting weapon to be used, the shooting weapon may include, but is not limited to, a rifle, a sniper gun, a shotgun, etc., and the player may also select a shooting item, such as the shooting aiming item described in the embodiments of the present invention, which may include, but is not limited to, a sighting telescope, etc., and the embodiments of the present invention are not limited thereto. Specifically, a player can perform touch operation on the human-computer interaction screen 102 to select whether to equip a shooting aiming prop in the game task, and the shooting aiming prop can be displayed in the human-computer interaction screen 102 under the condition that the player selects to equip the shooting aiming prop in the game task, wherein the shooting aiming prop is used for assisting a shooting weapon to shoot, optionally, the shooting aiming prop can be driven to the shooting weapon to display, after the shooting aiming prop is displayed, an acquisition instruction can be sent to the server 114 through the network 110 to acquire an enhancement coefficient matched with the shooting aiming prop, so that the emission parameter of the shooting weapon can be adjusted according to the enhancement coefficient, and the bullet emitted by the shooting weapon can be gathered to a higher degree. Further, the server 112 includes a database 114 and a processing engine 116. The database 114 may be configured to store the reinforcement coefficients and the like matched with the shooting sight props, which is not limited in the embodiment of the present invention. The processor engine 116 may also adjust the emission parameters of the shooting weapon according to the enhancement coefficients after obtaining the enhancement coefficients matched with the shooting aiming props, obtain the adjusted emission parameters, and control the user device 102 to control the shooting weapon to perform the shooting operation according to the adjusted emission parameters.
In the embodiment of the invention, in the process of running one game task, the shooting aiming prop is displayed in a virtual scene corresponding to the game task and is used for assisting a shooting weapon to carry out shooting operation; acquiring a strengthening coefficient matched with the shooting aiming prop; adjusting the emission parameters of the shooting weapon according to the strengthening coefficient to obtain the adjusted emission parameters, wherein the emission parameters are used for describing the aggregation degree of bullets shot by the shooting weapon; and controlling the shooting weapon to carry out shooting operation according to the adjusted emission parameters. The process can adjust the emission parameters of the shooting weapon through the shooting aiming prop, so that the aggregation degree of bullets emitted by the adjusted shooting weapon is higher, the emission of the shooting weapon is reduced, and the shooting accuracy is improved.
Optionally, in this embodiment, the user equipment may be, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a PC, and other computer equipment that supports running an application client. The server and the user equipment may implement data interaction through a network, which may include but is not limited to a wireless network or a wired network. Wherein, this wireless network includes: bluetooth, WIFI, and other networks that enable wireless communication. Such wired networks may include, but are not limited to: wide area networks, metropolitan area networks, and local area networks. The above is merely an example, and this is not limited in this embodiment.
Optionally, as an optional implementation, as shown in fig. 2, the operation control method includes:
s201, in the process of running a game task, displaying a shooting aiming prop in a virtual scene corresponding to the game task, wherein the shooting aiming prop is used for assisting a shooting weapon to carry out shooting operation;
s202, acquiring a strengthening coefficient matched with the shooting aiming prop;
s203, adjusting the emission parameters of the shooting weapon according to the strengthening coefficient to obtain the adjusted emission parameters, wherein the emission parameters are used for describing the aggregation degree of bullets shot by the shooting weapon;
and S204, controlling the shooting weapon to carry out shooting operation according to the adjusted emission parameters.
It should be noted that, the method steps shown in fig. 2 can be applied, but not limited to, in the operation control system shown in fig. 1, which is completed through data interaction between the user device 102 and the server 112, and can also be applied, but not limited to, in the user device 102 shown in fig. 1, which is completed by the user device 102 independently. The above is merely an example, and this is not limited in this embodiment.
Optionally, in this embodiment, the operation control method may be applied to game applications, such as a shooting game application, in a game scene of the shooting game application, during a process of running a game task, virtual characters respectively controlled by two opponent players may hit and kill each other in a virtual scene corresponding to the game task, and a winner and a loser are determined according to a shooting result of the hitting and killing, specifically, when the virtual character controlled by the player shoots, a shooting weapon and a shooting prop are needed, the shooting weapon may include, but is not limited to, a rifle, a shotgun, a sniper gun, and the like, which is not limited in this embodiment of the present invention, the shooting prop at least includes a shooting aiming prop, and the player may selectively use the shooting aiming prop to assist the shooting weapon to shoot, optionally, the shooting aiming prop may be in the form of a sighting telescope, under the condition that the player chooses to use the shooting aiming prop, the shooting aiming prop can be displayed on a shooting weapon displayed in a man-machine interaction screen, and under the condition that the player uses the shooting weapon to shoot, the emission parameters of the shooting weapon are adjusted according to the strengthening coefficients matched with the shooting aiming prop, so that the aggregation degree of bullets ejected by the shooting weapon is higher, namely, the bullets ejected by the shooting weapon are more aggregated, and the shooting accuracy is improved.
In the embodiment of the invention, optionally, different strengthening coefficients are matched for different shooting aiming props, wherein the shooting aiming prop with the larger strengthening coefficient has the larger adjustment degree on the emission parameters of the shooting weapon, namely, the aggregation degree of bullets emitted by the shooting weapon can be adjusted to be more aggregated, the accuracy is improved more, the process can meet various shooting requirements of players, and emission parameter adjustment modes with different strengths are provided.
In the embodiment of the invention, in the process of running one game task, the shooting aiming prop is displayed in a virtual scene corresponding to the game task and is used for assisting a shooting weapon to carry out shooting operation; acquiring a strengthening coefficient matched with the shooting aiming prop; adjusting the emission parameters of the shooting weapon according to the strengthening coefficient to obtain the adjusted emission parameters, wherein the emission parameters are used for describing the aggregation degree of bullets shot by the shooting weapon; and controlling the shooting weapon to carry out shooting operation according to the adjusted emission parameters. The process can adjust the emission parameters of the shooting weapon through the shooting aiming prop, so that the aggregation degree of bullets emitted by the adjusted shooting weapon is higher, the emission of the shooting weapon is reduced, and the shooting accuracy is improved.
As an optional implementation manner, before the shooting aiming prop is displayed in the virtual scene corresponding to the game task, the following steps may be further performed:
s1, displaying a shooting prop selection interface on the human-computer interaction interface, wherein the shooting prop selection interface at least comprises a shooting aiming prop;
and S2, under the condition that a selection instruction triggered by shooting the aiming prop is detected, determining a shooting weapon matched with the shooting aiming prop.
In the embodiment of the invention, the human-computer interaction interface can be a game interface displayed by a shooting game application, optionally, the human-computer interaction interface can comprise a plurality of virtual keys, and a player touches the virtual keys to trigger corresponding functions. For example, a backpack button can be included on the human-computer interaction interface, and a player can open the backpack to see the prop owned by the player by touching the backpack button and select the prop to use. Further, the touch screen for presenting the human-computer interaction interface may be a display screen of the electronic device, such as a mobile phone display screen, a flat panel display screen, and the like, which is not limited in the embodiment of the present invention. At the beginning of a game task, a shooting prop selection interface may be displayed on the human-computer interaction interface, where the shooting prop selection interface may include a plurality of shooting props, for example, a shooting prop that increases the firing frequency of a bullet, a shooting prop that increases the hit rate of a shot, and the like. The player can select the equipment of the virtual character controlled by the player in the game task in the game task in the plurality of shooting props presented on the shooting prop selection interface, specifically, the player can select the shooting aiming prop by clicking a shooting aiming prop icon on the shooting prop selection interface, and then clicking a determination key to trigger a selection instruction of the shooting aiming prop, and at the moment, a shooting weapon matched with the shooting aiming prop is determined, for example, the shooting aiming prop can be a prop in a sighting telescope shape, and the shooting weapon matched with the prop in the sighting telescope shape can be a gun, specifically, a shotgun and the like.
Referring to fig. 3, fig. 3 is a schematic diagram of an optional shooting property selection interface according to an embodiment of the present invention, as shown in fig. 3, five virtual key icons are provided on the left side of the shooting property selection interface, each virtual key icon corresponds to a type of shooting property, where the virtual key icon 301 corresponds to a shooting aiming property, and optionally, the virtual key icon on the left side of the shooting property selection interface may also correspond to a shooting expansion property, a shooting noise elimination property, a shooting weapon refitted property, and the like, which is not limited in the embodiment of the present invention. Wherein, the bullet capacity that the shooting dilatation stage property can be used for expanding the load that the shooting weapon can be born specifically can be for the dilatation cartridge clip, and the sound special effect when the shooting noise elimination stage property can be used for reducing the shooting weapon and shoot, and shooting weapon repacking stage property can be used for repacking the shooting weapon, for example with the barrel extension of shooting weapon. After the player clicks the virtual key icon 301, a usage introduction 302 of the shooting aiming item may be displayed on the right side of the shooting item selection interface, as shown in fig. 3, the shooting aiming item may be a laser aiming device, the shooting weapon corresponding to the shooting aiming item shown in the figure is a shotgun, the usage is to reduce the emission of the shotgun, the specific enhancement parameter is shown in the usage introduction 302, the injury value may be 85, the shooting speed may be 20, the accuracy may be 90, the portability may be 75, and the range may be 30, the values correspond to the variation of the performance parameter of the shooting weapon after the shooting aiming item is used, for the shooting aiming item, the main change is the shooting accuracy, that is, the accurate value shown in the figure, and the higher the accurate value indicates that the enhancement factor corresponding to the shooting aiming item is higher. Further, after displaying the usage introduction 302 of the shooting aiming item, it can be further detected whether the player triggers a confirmation key on the selection interface of the shooting item, and if the player clicks the confirmation key, the selection instruction triggered by shooting aiming item is determined to be detected.
Through implementing this kind of optional implementation, can select the shooting stage property by the shooting stage property selection interface that the player shows on man-machine interface, the player can select to use the shooting to aim the stage property, also can select not to use the shooting to aim the stage property, can realize self-defined selection according to specific recreation scene, the use degree of freedom of shooting to aim the stage property is higher.
As an alternative embodiment, displaying the shooting aiming prop in the virtual scene corresponding to the game task may include the following steps:
s1, assembling the shooting aiming prop and the shooting weapon to obtain an assembled shooting weapon;
s2, displaying assembled shooting weapons in a virtual scene corresponding to the game task;
and S3, displaying the shooting ray towards the shooting direction of the assembled shooting weapon by taking the shooting aiming prop as a starting point, wherein the end point of the shooting ray is a point indicating the hitting position of the assembled shooting weapon.
In an embodiment of the present invention, the shooting aiming prop may be assembled with a shooting weapon to assist the shooting of the shooting weapon, for example, the shooting weapon may be a shotgun, the shooting aiming prop may be a laser sight used in the shotgun, in a case where a player triggers a selection instruction for the laser sight used in the shotgun, the assembled shooting weapon obtained by mounting the laser sight used in the shotgun on the shotgun may be displayed in a virtual scene, and a shooting ray may be displayed in a shooting direction of the assembled shooting weapon with the shooting aiming prop as a starting point, and an end point of the shooting ray is a point indicating a hitting position of the assembled shooting weapon.
Referring to fig. 4, fig. 4 is a schematic diagram showing an alternative shooting aiming prop according to an embodiment of the present invention, as shown in fig. 4, a shooting aiming prop 401 can be mounted on a shooting weapon to form an assembled shooting weapon, and can emit a shooting ray from the position of the shooting aiming prop toward the shooting direction of the assembled shooting weapon, the point where the shooting ray intersects with an obstacle is a shooting position 402 at which a bullet is shot at this time, specifically, the shooting aiming prop can be a laser aiming device, the shooting ray can be infrared rays shot by the laser aiming device, the length of the infrared rays shot is determined by the position of the shooting aiming prop and the position where the infrared rays intersect with the obstacle, the finally determined infrared ray end point is the shooting position 402 at which the bullet is shot at this time, for the prior art, when a bullet is shot from the shooting weapon, the shooting position of the bullet can be any position in a circle shown in fig. 4, by implementing the embodiment of the invention, the hitting position can be determined as a fixed point, so that the range of the hitting position is narrowed, and the shooting accuracy is improved.
Through implementing this kind of optional implementation, can aim the time of the stage property at the player selection use shooting to the mode display equipment shooting weapon of stage property and shooting weapon combination to the shooting is aimed the visual of the function of stage property and is rendered through showing the shooting ray realization, helps aiming the supplementary shooting of stage property assorted display effect through the shooting, thereby improves the shooting precision.
As an alternative embodiment, displaying the firing ray with the firing sight as a starting point towards the firing direction of the assembled firing weapon may comprise the following steps:
s1, acquiring the position of a shooting port of the assembled shooting weapon;
s2, emitting detection rays from the position of the shooting port to the shooting direction of the assembled shooting weapon;
s3, determining the position where the detection ray intersects with the obstacle as a hitting position;
s4, calculating the distance value between the shooting port position and the hitting position, and determining the distance value as the length value of the shooting ray corresponding to the assembled shooting weapon;
and S5, taking the shooting aiming prop as a starting point, and displaying the shooting ray with the length value as a distance value towards the shooting direction of the assembled shooting weapon.
In an embodiment of the present invention, a detection ray may be emitted from a position of a firing port of the assembled shooting weapon in a firing direction of the assembled shooting weapon, wherein the detection ray may be set in a state invisible to a player or in a state visible to the player. If the detection ray is set to be in the invisible state of the player, the transparency of the detection ray can be adjusted to the highest value, or the detection ray can be generated only in the client or the server, and the display operation is not executed on the human-computer interaction interface. The intersection position of the detection ray and the barrier can be determined as a hitting position, the distance value between the shooting port position and the hitting position is determined as a length value of the shooting ray corresponding to the assembled shooting weapon, and therefore the end point of the shooting ray can be determined according to the starting point, the direction and the length value of the shooting ray, wherein the starting point of the shooting ray is the position where the shooting aiming prop is located, the direction of the shooting ray is the shooting direction of the assembled shooting weapon, and the determined end point of the shooting ray is the hitting position.
Referring to fig. 5, fig. 5 is a schematic diagram of generating an alternative firing ray according to an embodiment of the present invention, as shown in fig. 5, a firing port position 501 of an assembled firing weapon emits a detection ray in a firing direction, the detection ray intersects an obstacle at a hitting position 502, a distance value can be obtained according to the firing port position 501 and the hitting position 502, and the distance value is determined as a length value of the firing ray, as shown in the figure, a position 503 of a firing aiming prop is a starting point of the firing ray, the direction of the firing ray is the firing direction of the assembled firing weapon, and according to the length value of the firing ray, an end position 504 of the firing ray can be obtained, where the end position 504 is a position where the firing prop aims to indicate a bullet fired by the firing weapon at that time. It will be appreciated that the firing sight indicates that there is some positional deviation between the location at which the bullet fired by the firing weapon hits and the location at which the bullet actually fired by the firing weapon hits, due to the fact that there is some deviation between the location at which the firing sight is located and the location of the firing slot.
By implementing the optional implementation mode, the length value of the shooting ray can be determined according to the detection ray, so that the shooting ray is rendered and displayed according to the starting point position, the direction and the length value of the shooting ray, the display rendering of the shooting ray is realized through the calculation of the existing data, and the calculation load of the display effect is reduced.
As an alternative embodiment, controlling the firing weapon to perform the firing operation according to the adjusted emission parameters may comprise the steps of:
s1, determining the emission radius matched with the adjusted emission parameter;
and S2, controlling the bullet shot by the shooting weapon to fall into a target area, wherein the target area is an area which takes the hitting position as the center of a circle and takes the emission radius as the radius.
In an embodiment of the present invention, the adjusted emission parameters correspond to matched emission radii, and specifically, the bullet fired by the shooting weapon may fall into a preset circular area, that is, the target area, where a central point of the circular area is a hitting position, the hitting position is a point where the shooting ray indicates that the bullet fired by the assembled shooting weapon hits, and the radius of the circular area is the emission radius matched with the adjusted emission parameters.
Referring to fig. 6 and 7 together, fig. 6 is a schematic view of a region into which bullets fired by a shooting weapon fall when the shooting sight is not used, and fig. 7 is a schematic view of a region into which bullets fired by a shooting weapon fall when the shooting sight is used, and as shown in fig. 6, the range of the region into which the bullets fired by the shooting weapon fall is wide, and the distances between the bullets fired by the shooting weapon are long, that is, the aggregation degree is low, and the shot dispersion degree of the bullets is high, and as shown in fig. 7, the range of the region into which the bullets fired by the shooting weapon fall is narrow, and the distances between the bullets fired by the shooting weapon are short, that is, the aggregation degree is high.
By implementing the alternative implementation mode, the bullet shot by the shooting weapon can be controlled to fall into the target area, and the size of the target area is determined by the emission parameters, so that the size of the target area can be adjusted according to the emission parameters, the emission parameters can be adjusted to control the reduction of the range of the target area, namely the aggregation degree of bullet shooting is improved, and the shooting accuracy is improved.
As an alternative embodiment, after the bullet shot by controlling the shooting weapon to carry out the shooting operation falls into the preset area, the following steps can be further carried out:
s1, displaying the rendering result of the virtual bullet hole at the position where the bullet falls;
and S2, controlling to close the rendering result of the virtual bullet hole when the display duration of the rendering result of the virtual bullet hole reaches the preset duration.
By implementing the optional implementation mode, the rendering result of the virtual bullet hole can be displayed at the position where the bullet hits, and the rendering result of the virtual bullet hole is controlled to be closed under the condition that the display duration reaches the preset duration, so that the true degree of the shooting display picture is improved.
As an optional implementation manner, after the shooting aiming prop is displayed in the virtual scene corresponding to the game task, the following steps may be further performed:
and under the condition that the target virtual character using the shooting aiming prop is in a death state in the game task, controlling the shooting aiming prop to fall off so as to enable the virtual characters except the target virtual character in the virtual scene corresponding to the game task to pick up the shooting aiming prop.
In the embodiment of the invention, in the process of running one game task, if a target virtual character is attacked by other virtual characters, and when the damage value of the attack reaches the target damage value, the state of the target virtual character is switched to a death state, under the condition that the target virtual character is in the death state, a shooting aiming prop equipped by the target virtual character can fall off, and the virtual characters except the target virtual character can pick up the shooting aiming prop in a virtual scene.
By implementing the optional implementation mode, the shooting aiming prop can be controlled to fall and be picked up by other virtual characters under the condition that the target virtual character is in a death state, the playing method of the game is enriched, and the use rate of the shooting aiming prop is also improved.
As an alternative embodiment, in the case that the target virtual character using the shooting aim prop is in a dead state in the game task, after the shooting aim prop is controlled to fall, the following steps can be further performed:
s1, under the condition that the target virtual character is switched from a death state to a revival state in the game task, the authority of the target virtual character for aiming the prop by using the shooting is set to be allowed to use;
and S2, under the condition that the virtual characters except the target virtual character in the virtual scene corresponding to the game task pick up the shooting aiming prop and the virtual character picking up the shooting aiming prop is in a death state, setting the permission of the virtual character picking up the shooting aiming prop to use the shooting aiming prop as forbidden.
In the embodiment of the invention, when a target virtual character uses a shooting aiming prop in a game task, the target virtual character can be bound with the shooting aiming prop, when the target virtual character is in a death state, the target virtual character and the shooting aiming prop are controlled to be unbound, if the shooting aiming prop is picked up by other virtual characters under the condition that the target virtual character is in the death state, the shooting aiming prop is bound with a virtual character picking up the shooting aiming prop, if the shooting aiming prop is not picked up by other virtual characters under the condition that the target virtual character is in the death state, after the target virtual character is revived, the shooting aiming prop is automatically bound with the target virtual character again, the permission of the target virtual character using the shooting aiming prop is set to be allowed to be used, if the virtual character picking up the shooting aiming prop is in the death state after picking up operation, and unbinding the virtual character and the shooting aiming prop, and after the virtual character dies, if the virtual character reactivates, not executing the operation of rebinding, namely, under the condition that the virtual character is in a dead state, unbinding the virtual character and the shooting aiming prop and setting the authority of the virtual character for using the shooting aiming prop to be forbidden.
Referring to fig. 8, fig. 8 is an alternative firing diagram of the embodiment of the present invention, as shown in fig. 8, when the firing weapon is assembled for firing, the firing ray is directed to a certain point of the firing target, thereby reducing the range of the hitting position and improving the firing accuracy. Further, with respect to the distance value between the shooting target and the assembled shooting weapon, the greater the distance value, the greater the degree of emission, but the shooting ray is still directed to a certain point, instead of displaying only a circular area representing the shooting range.
Referring to fig. 9, fig. 9 is another alternative firing schematic diagram of the embodiment of the present invention, as shown in fig. 9, the bullets fired by the firing weapon all fall into the circular area shown in fig. 9, the circle center of the circular area is the hitting position indicated by the firing aiming prop, the radius of the circular area is the radius value matched with the emission parameter, after the bullets fired by the firing weapon fall into the circular area, a bullet hole special effect can be generated, and in addition, a firing special effect can be generated, and the firing special effect is used for dynamically representing the effect of bullet hitting.
Referring to fig. 10, fig. 10 is a flowchart illustrating an alternative operation control method according to an embodiment of the present invention, as shown in fig. 10, the following steps may be performed:
s1001, starting a game;
s1002, whether a laser sighting telescope is prepared or not is judged, if yes, step S1003 is executed, and if not, step S1002 is executed;
s1003, displaying infrared rays;
s1004, whether to fire or not is judged, if yes, step S1005 is executed, and if not, step S1004 is executed;
s1005, calculating distribution and launching bullets;
s1006, whether the obstacle is hit is judged, if yes, the step S1007 is executed, and if not, the step S1006 is executed;
s1007, displaying the bullet holes;
s1008, judging whether the bullet hole display time is finished, if so, executing a step S1009, and if not, executing the step S1008;
and S1009, the bullet hole disappears.
In the embodiment of the invention, in the process of running a game task, whether a player prepares a laser sighting telescope can be judged, wherein the laser sighting telescope is the shooting sighting item described in the embodiment, under the condition that a selection instruction triggered by the shooting sighting item by the player is detected, the player is judged to prepare the laser sighting telescope, the laser sighting telescope is controlled to emit infrared rays and display the infrared rays, wherein the infrared rays are the shooting rays described in the embodiment, under the condition that a firing instruction triggered by the player is detected, the emission parameters after the shooting weapon is adjusted are calculated, the shooting weapon is controlled to emit a bullet according to the adjusted emission parameters, under the condition that the bullet emitted by the shooting weapon is shot on an obstacle, the rendering result corresponding to a bullet hole is displayed on the obstacle, and the display time of the rendering result corresponding to the bullet hole reaches the preset time, and controlling the rendering result corresponding to the bullet hole to disappear.
Alternatively, in this embodiment, the Game application may be a Multiplayer Online tactical sports Game (MOBA) application, or may also be a Single-Player Game (SPG) application. The types of gaming applications described above may include, but are not limited to, at least one of: two-dimensional (2D) game applications, Three-dimensional (3D) game applications, Virtual Reality (VR) game applications, Augmented Reality (AR) game applications, Mixed Reality (MR) game applications. The above is merely an example, and the present embodiment is not limited to this.
Further, the Shooting Game application may be a Third Person Shooting Game (TPS) application, which is executed from the perspective of a Third-party character object other than a virtual character controlled by a current player, or a First Person Shooting Game (FPS) application, which is executed from the perspective of a virtual character controlled by a current player. Correspondingly, the sound source virtual object for generating sound during the game task running process may be, but is not limited to: a virtual character (also referred to as a player character) controlled by each game application client by a player, a Non-player character (NPC), a property object (such as a gun) controlled by the virtual character, and a carrier object (such as a vehicle) controlled by the virtual character. The above is merely an example, and this is not limited in this embodiment.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiments of the present invention, there is also provided an operation control apparatus for implementing the above-described operation control method. As shown in fig. 11, the apparatus includes:
the first display unit 1101 is used for displaying a shooting aiming prop in a virtual scene corresponding to a game task in the process of running a game task, wherein the shooting aiming prop is used for assisting a shooting weapon to perform shooting operation;
a first obtaining unit 1102, configured to obtain an enhancement coefficient matched with the shooting aiming prop;
a second obtaining unit 1103, configured to adjust emission parameters of the shooting weapon according to the strengthening coefficient, to obtain adjusted emission parameters, where the emission parameters are used to describe aggregation degrees of bullets shot by the shooting weapon;
and a control unit 1104 for controlling the shooting weapon to perform the shooting operation according to the adjusted emission parameters.
In the embodiment of the invention, optionally, different strengthening coefficients are matched for different shooting aiming props, wherein the shooting aiming prop with the larger strengthening coefficient has the larger adjustment degree on the emission parameters of the shooting weapon, namely, the aggregation degree of bullets emitted by the shooting weapon can be adjusted to be more aggregated, the accuracy is improved more, the process can meet various shooting requirements of players, and emission parameter adjustment modes with different strengths are provided.
In the embodiment of the invention, in the process of running one game task, the shooting aiming prop is displayed in a virtual scene corresponding to the game task and is used for assisting a shooting weapon to carry out shooting operation; acquiring a strengthening coefficient matched with the shooting aiming prop; adjusting the emission parameters of the shooting weapon according to the strengthening coefficient to obtain the adjusted emission parameters, wherein the emission parameters are used for describing the aggregation degree of bullets shot by the shooting weapon; and controlling the shooting weapon to carry out shooting operation according to the adjusted emission parameters. The process can adjust the emission parameters of the shooting weapon through the shooting aiming prop, so that the aggregation degree of bullets emitted by the adjusted shooting weapon is higher, the emission of the shooting weapon is reduced, and the shooting accuracy is improved.
As an optional implementation, the method further includes:
the second display unit is used for displaying a shooting item selection interface on the human-computer interaction interface in the process of running a game task before displaying the shooting aiming item in a virtual scene corresponding to the game task, wherein the shooting item selection interface at least comprises the shooting aiming item;
and the determining unit is used for determining a shooting weapon matched with the shooting aiming prop and triggering the first display unit to execute to display the shooting aiming prop in a virtual scene corresponding to the game task under the condition that a selection instruction triggered by the shooting aiming prop is detected.
Through implementing this kind of optional implementation, can select the shooting stage property by the shooting stage property selection interface that the player shows on man-machine interface, the player can select to use the shooting to aim the stage property, also can select not to use the shooting to aim the stage property, can realize self-defined selection according to specific recreation scene, the use degree of freedom of shooting to aim the stage property is higher.
As an alternative embodiment, the first display unit may include:
the acquisition module is used for assembling the shooting aiming prop and the shooting weapon in the process of running a game task at one game to obtain the assembled shooting weapon;
the first display module is used for displaying assembled shooting weapons in a virtual scene corresponding to a game task;
and the second display module is used for displaying the shooting rays towards the shooting direction of the assembled shooting weapon by taking the shooting aiming prop as a starting point, and the end point of the shooting rays is a point for indicating the hitting position of the assembled shooting weapon.
Through implementing this kind of optional implementation, can aim the time of the stage property at the player selection use shooting to the mode display equipment shooting weapon of stage property and shooting weapon combination to the shooting is aimed the visual of the function of stage property and is rendered through showing the shooting ray realization, helps aiming the supplementary shooting of stage property assorted display effect through the shooting, thereby improves the shooting precision.
As an alternative embodiment, the second display module includes:
the acquisition submodule is used for acquiring the position of a shooting port of the assembled shooting weapon;
the emission submodule is used for emitting detection rays from the position of the shooting port to the shooting direction of the assembled shooting weapon;
the determining submodule is used for determining the position where the detection ray intersects with the obstacle as a hitting position;
the calculating submodule is used for calculating a distance value between the position of the shooting opening and the hitting position and determining the distance value as a length value of the shooting ray;
and the display submodule is used for displaying the shooting ray with the length value as the distance value towards the shooting direction of the assembled shooting weapon by taking the shooting aiming prop as a starting point.
By implementing the optional implementation mode, the length value of the shooting ray can be determined according to the detection ray, so that the shooting ray is rendered and displayed according to the starting point position, the direction and the length value of the shooting ray, the display rendering of the shooting ray is realized through the calculation of the existing data, and the calculation load of the display effect is reduced.
As an alternative embodiment, the control unit comprises:
the determining module is used for determining the emission radius matched with the adjusted emission parameter;
the control module is used for controlling the bullet shot by the shooting weapon to fall into a target area, and the target area is an area which takes the hitting position as the center of a circle and takes the emission radius as the radius.
By implementing the alternative implementation mode, the bullet shot by the shooting weapon can be controlled to fall into the target area, and the size of the target area is determined by the emission parameters, so that the size of the target area can be adjusted according to the emission parameters, the emission parameters can be adjusted to control the reduction of the range of the target area, namely the aggregation degree of bullet shooting is improved, and the shooting accuracy is improved.
As an optional implementation, the method further includes:
the third display unit is used for displaying the rendering result of the virtual bullet hole at the position where the bullet falls after the bullet hit by controlling the shooting weapon to carry out the shooting operation falls into the preset area;
and the closing unit is used for controlling to close the rendering result of the virtual bullet hole under the condition that the display time length of the rendering result of the virtual bullet hole reaches the preset time length.
By implementing the optional implementation mode, the rendering result of the virtual bullet hole can be displayed at the position where the bullet hits, and the rendering result of the virtual bullet hole is controlled to be closed under the condition that the display duration reaches the preset duration, so that the true degree of the shooting display picture is improved.
As an optional implementation manner, the control unit is further configured to, after the shooting aiming prop is displayed in the virtual scene corresponding to the game task, control the shooting aiming prop to drop when a target virtual character using the shooting aiming prop is in a dead state in the game task, so that virtual characters other than the target virtual character in the virtual scene corresponding to the game task pick up the shooting aiming prop.
By implementing the optional implementation mode, the shooting aiming prop can be controlled to fall and be picked up by other virtual characters under the condition that the target virtual character is in a death state, the playing method of the game is enriched, and the use rate of the shooting aiming prop is also improved.
As an optional implementation, the method further includes:
the first setting unit is used for setting the permission of the target virtual character for using the shooting aiming prop to be allowed to use under the condition that the target virtual character using the shooting aiming prop is in a death state in a game task and the target virtual character is switched from the death state to a revival state in the game task after the shooting aiming prop is controlled to fall off;
and the second setting unit is used for setting the permission of the virtual character which picks up the shooting aiming prop to use the shooting aiming prop as forbidden under the condition that the virtual character except the target virtual character picks up the shooting aiming prop and the virtual character which picks up the shooting aiming prop is in a death state in the virtual scene corresponding to the game task.
According to yet another aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the operation control method, as shown in fig. 12, the electronic device includes a memory 1202 and a processor 1204, the memory 1202 stores therein a computer program, and the processor 1204 is configured to execute the steps in any one of the method embodiments by the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, in the process of running a game task, displaying a shooting aiming prop in a virtual scene corresponding to the game task, wherein the shooting aiming prop is used for assisting a shooting weapon to carry out shooting operation;
s2, acquiring an enhancement coefficient matched with the shooting aiming prop;
s3, adjusting the emission parameters of the shooting weapon according to the strengthening coefficient to obtain the adjusted emission parameters, wherein the emission parameters are used for describing the aggregation degree of bullets shot by the shooting weapon;
and S4, controlling the shooting weapon to carry out shooting operation according to the adjusted emission parameters.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 12 is only an illustration, 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, a Mobile Internet Device (MID), a PAD, and the like. Fig. 12 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 12, or have a different configuration than shown in FIG. 12.
The memory 1202 may be used to store software programs and modules, such as program instructions/modules corresponding to the operation control method and apparatus in the embodiments of the present invention, and the processor 1204 executes various functional applications and data processing by running the software programs and modules stored in the memory 1202, that is, implements the operation control method described above. The memory 1202 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, the memory 1202 can further include memory located remotely from the processor 1204, which can be connected to a terminal over 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 1202 may be, but not limited to, specifically configured to store information such as an operation instruction, state information of a first state (e.g., a first energy value), and state information of a second state (e.g., a second energy value). As an example, as shown in fig. 12, the above-mentioned memory 1202 may include, but is not limited to, a first display unit 1101, a first acquisition unit 1102, a second acquisition unit 1103, and a control unit 1104 in the above-mentioned operation control device. In addition, other module units in the operation control device may also be included, but are not limited to these, and are not described in detail in this example.
Optionally, the transmitting device 1206 is configured to receive or transmit data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmitting device 1206 includes a Network adapter (NIC) that can be connected to a router via a Network cable to communicate with the internet or a local area Network. In one example, the transmitting device 1206 is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1208, configured to display the first target action, the second target action, and corresponding keys; and a connection bus 1210 for connecting the respective module parts in the above-described electronic apparatus.
According to a further aspect of embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, in the process of running a game task, displaying a shooting aiming prop in a virtual scene corresponding to the game task, wherein the shooting aiming prop is used for assisting a shooting weapon to carry out shooting operation;
s2, acquiring an enhancement coefficient matched with the shooting aiming prop;
s3, adjusting the emission parameters of the shooting weapon according to the strengthening coefficient to obtain the adjusted emission parameters, wherein the emission parameters are used for describing the aggregation degree of bullets shot by the shooting weapon;
and S4, controlling the shooting weapon to carry out shooting operation according to the adjusted emission parameters.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially or partially implemented in the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, or network devices) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in 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 illustrative, and for example, a division of a unit is merely a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that it is obvious to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements should also be considered as the protection scope of the present invention.
Claims (15)
1. An operation control method characterized by comprising:
in the process of running a game task, displaying a shooting aiming prop in a virtual scene corresponding to the game task, wherein the shooting aiming prop is used for assisting a shooting weapon to carry out shooting operation;
acquiring a strengthening coefficient matched with the shooting aiming prop;
adjusting the emission parameters of the shooting weapon according to the strengthening coefficient to obtain the adjusted emission parameters, wherein the emission parameters are used for describing the aggregation degree of bullets shot by the shooting weapon;
and controlling the shooting weapon to carry out shooting operation according to the adjusted emission parameters.
2. The method of claim 1, wherein prior to displaying the shooting aim in the virtual scene corresponding to the game task, further comprising:
displaying a shooting prop selection interface on a human-computer interaction interface, wherein the shooting prop selection interface at least comprises a shooting aiming prop;
and under the condition that a selection instruction triggered by the shooting aiming prop is detected, determining a shooting weapon matched with the shooting aiming prop.
3. The method of claim 2, wherein displaying the shooting aim in the virtual scene corresponding to the game task comprises:
assembling the shooting aiming prop and the shooting weapon to obtain an assembled shooting weapon;
displaying the assembled shooting weapon in a virtual scene corresponding to the game task;
and displaying a shooting ray towards the shooting direction of the assembled shooting weapon by taking the shooting aiming prop as a starting point, wherein the end point of the shooting ray is a point for indicating the hitting position of the assembled shooting weapon.
4. The method of claim 3, wherein displaying firing rays toward a firing direction of the assembled firing weapon starting from the firing sight comprises:
acquiring the position of a shooting port of the assembled shooting weapon;
emitting detection rays from the position of the firing port to the firing direction of the assembled firing weapon;
determining the position of the intersection of the detection ray and the obstacle as a hitting position;
calculating a distance value between the position of the shooting opening and the hitting position, and determining the distance value as a length value of a shooting ray corresponding to the assembled shooting weapon;
and taking the shooting aiming prop as a starting point, and displaying the shooting ray with the length value being the distance value towards the shooting direction of the assembled shooting weapon.
5. The method of claim 3, wherein said controlling said firing weapon to perform a firing operation in accordance with said adjusted emission parameters comprises:
determining an emission radius matched with the adjusted emission parameter;
controlling the bullet shot by the shooting weapon to fall into a target area, wherein the target area is an area which takes the hitting position as the center of a circle and takes the emission radius as the radius.
6. The method of claim 5, wherein after the bullet fired by the firing operation of the firing weapon is controlled to fall into a preset zone, the method further comprises:
displaying the rendering result of the virtual bullet hole at the position where the bullet falls;
and under the condition that the display duration of the rendering result of the virtual bullet hole reaches the preset duration, controlling to close the rendering result of the virtual bullet hole.
7. The method of any one of claims 1 to 6, further comprising, after displaying the shooting aim in the virtual scene corresponding to the game task:
and under the condition that the target virtual character using the shooting aiming prop is in a death state in the game task, controlling the shooting aiming prop to fall off so as to enable the virtual characters except the target virtual character in the virtual scene corresponding to the game task to pick up the shooting aiming prop.
8. The method of claim 7, wherein after controlling the shooting aiming item to fall in the event that the target virtual character using the shooting aiming item is in a dead state during the game task, further comprising:
setting the authority of the target virtual character to use the shooting aiming prop to be allowed to use when the target virtual character is switched from the death state to the revival state in the game task;
and under the condition that the virtual roles except the target virtual role in the virtual scene corresponding to the game task pick up the shooting aiming prop and pick up the virtual role of the shooting aiming prop are in a death state, setting the permission of the shooting aiming prop for the virtual role of the shooting aiming prop to be forbidden to use.
9. An operation control device characterized by comprising:
the shooting aiming device comprises a first display unit, a second display unit and a shooting aiming unit, wherein the first display unit is used for displaying a shooting aiming prop in a virtual scene corresponding to a game task in the process of running a game task, and the shooting aiming prop is used for assisting a shooting weapon to carry out shooting operation;
the first acquisition unit is used for acquiring a strengthening coefficient matched with the shooting aiming prop;
the second acquisition unit is used for adjusting the emission parameters of the shooting weapon according to the strengthening coefficient to obtain the adjusted emission parameters, and the emission parameters are used for describing the aggregation degree of bullets shot by the shooting weapon;
and the control unit is used for controlling the shooting weapon to carry out shooting operation according to the adjusted emission parameters.
10. The apparatus of claim 9, further comprising:
the second display unit is used for displaying a shooting item selection interface on a human-computer interaction interface in the process of running a game task before displaying the shooting aiming item in a virtual scene corresponding to the game task, wherein the shooting item selection interface at least comprises the shooting aiming item;
and the determining unit is used for determining a shooting weapon matched with the shooting aiming prop and triggering the first display unit to execute the display of the shooting aiming prop in a virtual scene corresponding to the game task under the condition that a selection instruction triggered by the shooting aiming prop is detected.
11. The apparatus of claim 10, wherein the first display unit comprises:
the acquisition module is used for assembling the shooting aiming prop and the shooting weapon in the process of running a game task to obtain an assembled shooting weapon;
the first display module is used for displaying the assembled shooting weapon in a virtual scene corresponding to the game task;
and the second display module is used for displaying a shooting ray by taking the shooting aiming prop as a starting point and facing to the shooting direction of the assembled shooting weapon, and the end point of the shooting ray is a point for indicating the hitting position of the assembled shooting weapon.
12. The apparatus of claim 11, wherein the second display module comprises:
the acquisition submodule is used for acquiring the position of a shooting port of the assembled shooting weapon;
the emission submodule is used for emitting detection rays from the position of the shooting port to the shooting direction of the assembled shooting weapon;
the determining submodule is used for determining the position where the detection ray intersects with the obstacle as a hitting position;
the calculating submodule is used for calculating a distance value between the position of the shooting port and the hitting position and determining the distance value as a length value of a shooting ray;
and the display submodule is used for displaying the shooting ray with the length value as the distance value towards the shooting direction of the assembled shooting weapon by taking the shooting aiming prop as a starting point.
13. The apparatus of claim 11, wherein the control unit comprises:
the determining module is used for determining the emission radius matched with the adjusted emission parameter;
and the control module is used for controlling the bullet shot by the shooting weapon to fall into a target area, and the target area is an area which takes the hitting position as the center of a circle and takes the emission radius as the radius.
14. A storage medium comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 8.
15. 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 of any of claims 1 to 8 by means of the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911303965.7A CN111111171B (en) | 2019-12-17 | 2019-12-17 | Operation control method, operation control device, storage medium, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911303965.7A CN111111171B (en) | 2019-12-17 | 2019-12-17 | Operation control method, operation control device, storage medium, and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111111171A CN111111171A (en) | 2020-05-08 |
CN111111171B true CN111111171B (en) | 2021-03-26 |
Family
ID=70499442
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911303965.7A Active CN111111171B (en) | 2019-12-17 | 2019-12-17 | Operation control method, operation control device, storage medium, and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111111171B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111589096A (en) * | 2020-05-15 | 2020-08-28 | 深圳心颜科技有限责任公司 | Entity game data processing method, device, equipment, storage medium and entity game system |
CN111659116A (en) * | 2020-07-02 | 2020-09-15 | 腾讯科技(深圳)有限公司 | Virtual vehicle control method, device, equipment and medium |
CN114225419B (en) * | 2020-08-27 | 2023-06-23 | 腾讯科技(深圳)有限公司 | Virtual prop control method, device, equipment, storage medium and program product |
CN114100146A (en) * | 2020-08-31 | 2022-03-01 | 上海米哈游天命科技有限公司 | Method, device, equipment and medium for determining impact point position in shooting game |
CN112755526B (en) * | 2021-02-02 | 2022-11-25 | 腾讯科技(深圳)有限公司 | Virtual item control method, device, terminal and storage medium |
CN113262482B (en) * | 2021-06-03 | 2022-11-22 | 腾讯科技(深圳)有限公司 | Object control method and device, storage medium and electronic equipment |
CN113577762B (en) * | 2021-07-28 | 2024-10-18 | 网易(杭州)网络有限公司 | Method and device for picking up props in game, electronic equipment and readable medium |
CN114053700B (en) * | 2021-11-23 | 2024-09-03 | 网易(杭州)网络有限公司 | Game control method, device, equipment and storage medium |
CN114543588B (en) * | 2022-04-08 | 2023-11-21 | 河北砺兵科技有限责任公司 | Laser shooting training evaluation system and evaluation method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8342926B2 (en) * | 2008-07-13 | 2013-01-01 | Sony Computer Entertainment America Llc | Game aim assist |
CN103585751A (en) * | 2012-08-15 | 2014-02-19 | 华舰科技股份有限公司 | Aiming method for shooting game |
US8834245B2 (en) * | 2007-08-17 | 2014-09-16 | Nintendo Co., Ltd. | System and method for lock on target tracking with free targeting capability |
CN109224439A (en) * | 2018-10-22 | 2019-01-18 | 网易(杭州)网络有限公司 | The method and device of game aiming, storage medium, electronic device |
CN109939438A (en) * | 2019-02-19 | 2019-06-28 | 腾讯数码(天津)有限公司 | Track display method and device, storage medium and electronic device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102057246A (en) * | 2006-02-09 | 2011-05-11 | 路波史蒂芬公司 | Multi-color reticle for ballistic aiming |
US7552559B2 (en) * | 2006-07-31 | 2009-06-30 | Fred Day | Remotely-controlled adjustable zoom scope |
JP2013000232A (en) * | 2011-06-14 | 2013-01-07 | Konami Digital Entertainment Co Ltd | Game machine and computer program of the same |
-
2019
- 2019-12-17 CN CN201911303965.7A patent/CN111111171B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8834245B2 (en) * | 2007-08-17 | 2014-09-16 | Nintendo Co., Ltd. | System and method for lock on target tracking with free targeting capability |
US8342926B2 (en) * | 2008-07-13 | 2013-01-01 | Sony Computer Entertainment America Llc | Game aim assist |
CN103585751A (en) * | 2012-08-15 | 2014-02-19 | 华舰科技股份有限公司 | Aiming method for shooting game |
CN109224439A (en) * | 2018-10-22 | 2019-01-18 | 网易(杭州)网络有限公司 | The method and device of game aiming, storage medium, electronic device |
CN109939438A (en) * | 2019-02-19 | 2019-06-28 | 腾讯数码(天津)有限公司 | Track display method and device, storage medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN111111171A (en) | 2020-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
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 | |
US11826662B2 (en) | Ballistic trajectory display in a virtual environment | |
US20220168642A1 (en) | Method and apparatus for using virtual item, computer device, and storage medium | |
US9480921B2 (en) | Potential damage indicator of a targeted object | |
KR20210137199A (en) | Virtual object attack prompt method and apparatus, and terminal and storage medium | |
CN108310765B (en) | Image display method and device, storage medium and electronic device | |
CN110841290A (en) | Processing method and device of virtual prop, storage medium and electronic device | |
CN111202982A (en) | Control method and device of virtual prop, storage medium and electronic device | |
CN111265858A (en) | Operation control method, operation control device, storage medium, and electronic device | |
CN111035923B (en) | Operation method and device of virtual prop, storage medium and electronic device | |
CN110975283A (en) | Processing method and device of virtual shooting prop, storage medium and electronic device | |
US9033797B1 (en) | Multiple user viewing modes of an environment | |
WO2022143142A1 (en) | Control method and apparatus for human-computer interaction interface, device, and medium | |
JP2023528327A (en) | Item control method and its device, computer program and electronic device | |
US20220047948A1 (en) | Virtual prop obtaining method and apparatus, storage medium, and electronic device | |
CN113769394A (en) | Prop control method, device, equipment and storage medium in virtual scene | |
CN112221136B (en) | Feedback information display method and device, storage medium and electronic equipment | |
WO2023142617A1 (en) | Virtual environment-based ray display method and apparatus, device, and storage medium | |
CN111202983A (en) | Method, device, equipment and storage medium for using props in virtual environment | |
CN111001160B (en) | Control method and device of virtual operation object, storage medium and electronic device | |
CN111111165A (en) | Control method and device of virtual prop, storage medium and electronic device | |
CN112107859A (en) | Prop control method and device, storage medium and electronic equipment | |
CN111135566A (en) | Control method and device of virtual prop, storage medium and electronic device | |
CN113599822B (en) | Virtual prop control 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |