Information processing method, device, storage medium, processor and electronic device
By calculating the interval between shooting commands and comparing time limits, cheating behavior in online shooting games can be detected and blocked in real time, solving the problem of difficulty in real-time blocking of cheating in existing technologies and ensuring game fairness.
Patent Information
- Application Number
- CN202111556588.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-17
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2041-12-17
AI Technical Summary
Existing technologies are insufficient to detect and block cheating in online shooting games in real time, resulting in a loss of game fairness.
By acquiring the time interval between shooting commands, the remaining shooting time is calculated and compared with the preset time limit to determine the validity of the shooting operation and intercept cheating behavior in real time.
It enables timely interception of cheating, protects the gaming experience of legitimate players, and prevents the fairness of the game from being affected.
Smart Images

Figure CN114404946B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of games, and in particular to an information processing method, device, storage medium, processor and electronic device. Background Art
[0002] At present, a common cheating method in online shooting games is to use plug-in software to increase the shooting frequency in the game. This cheating method seriously undermines the fairness of the game and leads to a low experience for other players. The existing shooting frequency inspection method is to count the number of shots in a period of time and calculate the shooting frequency of the client player. If the actual shooting frequency of the player is significantly higher than the upper limit of the shooting frequency set by the game, it can be regarded as cheating by the player. However, the statistical method for detecting cheating methods cannot intercept illegal shooting requests in real time and has obvious lag.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] At least some embodiments of the present invention provide an information processing method, apparatus, storage medium, processor and electronic device to at least solve the technical problem in the related art that it is difficult to intercept shooting operations corresponding to illegal shooting requests in real time.
[0005] According to one embodiment of the present invention, there is provided an information processing method, which obtains a first time interval in response to a first shooting instruction, wherein the first time interval is the time interval between the first shooting instruction and a second shooting instruction, the first shooting instruction is a shooting instruction currently received, and the second shooting instruction is a shooting instruction received historically; determines a first time quota based on a first difference between a preset time interval and the first time interval, wherein the first time quota is the shooting time quota to be consumed; and determines whether a shooting operation corresponding to the first shooting instruction is valid based on a comparison result of the first time quota and a target time quota, wherein the target time quota is the remaining shooting time quota.
[0006] Optionally, based on the comparison result of the first time quota and the target time quota, it is determined whether the shooting operation corresponding to the first shooting instruction is valid, including: when the comparison result is that the first time quota is greater than the target time quota, determining that the shooting operation corresponding to the first shooting instruction is invalid; when the comparison result is that the first time quota is less than or equal to the target time quota, determining that the shooting operation corresponding to the first shooting instruction is valid.
[0007] Optionally, after determining that the shooting operation corresponding to the first shooting instruction is valid, the method further includes: updating the target time quota based on the first time quota.
[0008] Optionally, updating the target time quota based on the first time quota includes: determining a second time quota based on a second difference between the target time quota and the first time quota; and updating the target time quota based on the second time quota and an initial time quota, wherein the initial time quota is a target time quota that has not been updated.
[0009] Optionally, updating the target time quota based on the second time quota and the initial time quota includes: determining the smallest time quota between the second time quota and the initial time quota as the target time quota.
[0010] Optionally, the method further includes: in response to the first shooting instruction, acquiring a virtual weapon identifier corresponding to the first shooting instruction; and acquiring the preset time interval based on the virtual weapon identifier.
[0011] According to one embodiment of the present invention, there is also provided an information processing device, including: an acquisition module, used to acquire a first time interval in response to a first shooting instruction, wherein the first time interval is the time interval between the first shooting instruction and a second shooting instruction, the first shooting instruction is a shooting instruction currently received, and the second shooting instruction is a shooting instruction received historically; a first determination module, used to determine a first time quota based on a first difference between a preset time interval and the first time interval, wherein the first time quota is the shooting time quota to be consumed; a second determination module, used to determine whether the shooting operation corresponding to the first shooting instruction is valid based on a comparison result of the first time quota and a target time quota, wherein the target time quota is the remaining shooting time quota.
[0012] According to one embodiment of the present invention, a non-volatile storage medium is further provided, in which a computer program is stored, wherein the computer program is configured to execute any of the above-mentioned information processing methods when running.
[0013] According to one embodiment of the present invention, a processor is further provided, the processor being used to run a program, wherein the program is configured to execute any of the above-mentioned information processing methods when running.
[0014] According to one embodiment of the present invention, there is further provided an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any of the above information processing methods.
[0015] First, in response to a first shooting instruction, a first time interval between the first shooting instruction and the second shooting instruction is obtained. By using a first difference between a preset time interval and the first time interval, the shooting time quota to be consumed, i.e., the first time quota, can be determined. By comparing the first time quota with the target time quota, it can be determined whether cheating occurs in the game operation of the player. If cheating occurs, it can be determined that the shooting operation corresponding to the first shooting instruction is invalid, so as to achieve the purpose of intercepting the shooting operation corresponding to the illegal shooting request. By judging whether the shooting operation corresponding to the first shooting instruction is valid by using the target time quota, the shooting operation corresponding to the abnormal shooting instruction can be intercepted in time to avoid affecting the game experience of the legitimate players in the game, thereby solving the technical problem in the related art that it is difficult to intercept the shooting operation corresponding to the illegal shooting request in real time. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0017] Figure 1 It is a hardware structure block diagram of a mobile terminal of an information processing method according to an embodiment of the present invention;
[0018] Figure 2 is a flow chart of an information processing method according to an embodiment of the present invention;
[0019] Figure 3 is a flow chart of another information processing method according to an embodiment of the present invention;
[0020] Figure 4 is a schematic diagram of an information processing device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0023] The method embodiment can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, the mobile terminal can be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID for short), a PAD, a game console and other terminal devices. Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of an information processing method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microprocessor (MCU), a programmable logic device (FPGA), a neural network processor (NPU), a tensor processor (TPU), an artificial intelligence (AI) type processor, etc.) and a memory 104 for storing data. Optionally, the mobile terminal may also include a transmission device 106 for communication functions, an input and output device 108, and a display device 110. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0024] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the information processing method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above-mentioned information processing method is realized. The memory 104 may include a high-speed random access memory, and may also include a 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 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0025] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0026] The inputs in the input / output device 108 may come from a plurality of human interface devices (HIDs), such as keyboards and mice, game controllers, and other dedicated game controllers (such as steering wheels, fishing rods, dance mats, remote controls, etc.). In addition to providing input functions, some human interface devices may also provide output functions, such as force feedback and vibration of game controllers, audio output of controllers, etc.
[0027] The display device 110 may be, for example, a head-up display (HUD), a touch-screen liquid crystal display (LCD), and a touch display (also referred to as a "touch screen" or "touch display screen"). The LCD may enable a player to interact with a player interface of the mobile terminal. In some embodiments, the mobile terminal has a graphical player interface (GUI), and a player may interact with the GUI by finger contact and / or gestures on a touch-sensitive surface, wherein the human-computer interaction functions here may optionally include the following interactions: creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital videos, playing digital music, and / or web browsing, etc. The executable instructions for executing the above-mentioned human-computer interaction functions are configured / stored in a computer program product or a readable storage medium executable by one or more processors.
[0028] The information processing method in one embodiment of the present disclosure can be run on a local terminal device or a server. When the information processing method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0029] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game method based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the image display method are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the player side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0030] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical player interface, that is, the game program is downloaded and installed and run by an electronic device in a conventional manner. The local terminal device may provide the graphical player interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical player interface, the graphical player interface includes a game screen, and the processor is used to run the game, generate a graphical player interface, and control the display of the graphical player interface on the display screen.
[0031] In a possible implementation, the embodiment of the present invention provides an information processing method. Figure 2 is a flow chart of an information processing method according to one embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:
[0032] Step S202: In response to a first shooting instruction, obtaining a first time interval.
[0033] The first time interval is the time interval between the first shooting instruction and the second shooting instruction, the first shooting instruction is the shooting instruction currently received, and the second shooting instruction is the shooting instruction received in history.
[0034] The first shooting instruction mentioned above may be an instruction sent when the player needs to shoot with a weapon, wherein the first shooting instruction corresponds to one shooting operation.
[0035] The first time interval mentioned above is used to describe the time interval between two receiving shooting instructions.
[0036] The second shooting instruction may be a shooting instruction received last time, or may be a shooting instruction received at any time in history. Those skilled in the art may flexibly set the instruction as required.
[0037] In an optional embodiment, when a player needs to perform a shooting operation, he can first send a first shooting instruction. At this time, the first shooting instruction sent by the player and the second shooting instruction sent by the player last time can be obtained, and the first time interval between the first shooting instruction and the second shooting instruction can be obtained, so as to determine whether there is an abnormality in the two shooting instructions sent by the player according to the first time interval. If the first time interval between the first shooting instruction and the second shooting instruction is short, the player may use a plug-in to achieve a higher frequency of shooting operations. If the first time interval between the first shooting instruction and the second shooting instruction is long, the player's network may be delayed, resulting in the execution of normal shooting operations.
[0038] Step S204: determining a first time quota according to a first difference between a preset time interval and a first time interval.
[0039] Among them, the first time quota is the shooting time quota to be consumed.
[0040] The preset time interval may be the shortest shooting time interval of the weapon corresponding to the preset shooting command. Specifically, whether the first shooting command sent by the player is normal can be determined by the first difference between the preset time interval and the first time interval, and the shooting time quota to be consumed can be determined according to the first difference.
[0041] The first time quota is the shooting time quota to be consumed by executing the first shooting instruction. It should be noted that before each game, a player can be given an initial shooting time quota. When the frequency of shooting instructions is high, the initial shooting time quota can be deducted according to the first time quota. When the shooting time quota is 0, it means that the player has a large number of abnormal operations. At this time, the shooting operations corresponding to the subsequent shooting instructions of the player are invalid. The abnormal operation player can be handled in time to avoid affecting the game experience of other players.
[0042] In an optional embodiment, the first difference between the preset time interval and the first time interval (i.e., the difference between the preset time interval and the first time interval) can be obtained to determine the first time limit, and the first time limit is used to detect whether the player's operation is abnormal. Specifically, if the first time limit is large, it means that the interval between the first shooting instruction and the second shooting instruction is short, which means that the player is more likely to perform abnormal operations. At this time, the longer the shooting time limit to be consumed corresponding to the first shooting instruction, when the shooting time limit is consumed, the shooting operations corresponding to the shooting instructions subsequently sent by the player are invalid. If the first time limit is small or negative, it means that the interval between the first shooting instruction and the second shooting instruction is long, which means that the player's network may be unstable and cause network delays. At this time, the player's shooting time limit can be supplemented to reduce misjudgment of legal gameplay.
[0043] Step S206, based on the comparison result between the first time quota and the target time quota, determining whether the shooting operation corresponding to the first shooting instruction is valid.
[0044] Among them, the target time quota is the remaining shooting time quota.
[0045] In an optional embodiment, at the beginning of the game, each player is assigned an initial shooting time quota as a target time quota. When the shooting time quota to be consumed is greater than the remaining shooting time quota, it means that the player has performed too many abnormal operations, and it can be determined that the player is using a plug-in to play the game. At this time, the shooting operations corresponding to the first shooting instructions subsequently sent by the player are invalid, so as to avoid abnormal players affecting the gaming experience of other players.
[0046] In another optional embodiment, if the shooting time quota to be consumed is less than the target time quota, it means that the remaining shooting time quota has not been consumed. At this time, it can be determined that the shooting operation corresponding to the first shooting instruction is valid, and the target time quota can be updated according to the shooting time quota to be consumed. Specifically, when the network delay increases, the shooting time quota to be consumed may be a negative number. At this time, the target time quota can be supplemented for the player; when network packet heaps occur or the network delay decreases, a certain shooting time quota will be consumed. At this time, the player's target time quota can be deducted; by supplementing or deducting the target time quota, the impact of network instability on the player can be resisted, the misjudgment rate of legitimate players is greatly reduced, and abnormal players can be quickly detected.
[0047] Through the above steps, first respond to the first shooting instruction, obtain the first time interval between the first shooting instruction and the second shooting instruction, and determine the shooting time quota to be consumed, that is, the first time quota, by comparing the first time quota with the target time quota, and determine whether the player's game operation has cheating behavior. If cheating behavior occurs, it can be determined that the shooting operation corresponding to the first shooting instruction is invalid, so as to achieve the purpose of intercepting the shooting operation corresponding to the illegal shooting request. By judging whether the shooting operation corresponding to the first shooting instruction is valid through the target time quota, the shooting operation corresponding to the abnormal shooting instruction can be intercepted in time to avoid affecting the game experience of the legitimate players in the game, thereby solving the technical problem of the difficulty in real-time interception of the shooting operation corresponding to the illegal shooting request in the related technology.
[0048] Optionally, based on the comparison result of the first time quota and the target time quota, it is determined whether the shooting operation corresponding to the first shooting instruction is valid, including: when the comparison result is that the first time quota is greater than the target time quota, determining that the shooting operation corresponding to the first shooting instruction is invalid; when the comparison result is that the first time quota is less than or equal to the target time quota, determining that the shooting operation corresponding to the first shooting instruction is valid.
[0049] In an optional embodiment, when the comparison result is that the first time quota is greater than the target time quota, it means that the accumulated shooting time quota consumed before is high, that is, there are many abnormal shooting operations. At this time, the player can be determined to be an illegal player. This player may use cheating software such as plug-ins to increase the shooting frequency, resulting in a high amount of shooting time consumed. For this player, it can be determined that the current shooting instruction and the shooting operations corresponding to the subsequent shooting instructions are invalid shooting operations. It should be noted that the invalid shooting operation means that the player's shooting operation in the game scene does not cause substantial damage to other game characters. It can be manifested as hitting other game characters through bullets in the gun, but unable to cause substantial damage to other game characters (of course, it can also be manifested as the shooting operation cannot trigger a shooting event, that is, the bullet cannot be fired).
[0050] In another optional embodiment, when the comparison result is that the first time quota is less than or equal to the target time quota, it is determined that the shooting operation corresponding to the first shooting instruction is valid. If the first time quota is less than the target time quota, it means that the shooting time quota to be consumed is less than the remaining shooting time quota, and at this time, it can be determined that the shooting operation corresponding to the first shooting instruction is valid.
[0051] Optionally, after determining that the shooting operation corresponding to the first shooting instruction is valid, the method further includes: updating the target time quota based on the first time quota.
[0052] In an optional embodiment, after determining that the shooting operation corresponding to the first shooting instruction is valid, the shooting operation corresponding to the first shooting instruction can be executed. At this time, the first time quota can be consumed, and the remaining shooting time quota is updated according to the consumed first time quota, that is, the target time quota is updated. When the shooting instruction is received subsequently, it can be judged whether the shooting operation corresponding to the subsequently received shooting instruction is valid by comparing the shooting time quota to be consumed and the shooting time quota remaining after the update.
[0053] Optionally, updating the target time quota based on the first time quota includes: determining a second time quota based on a second difference between the target time quota and the first time quota; and updating the target time quota based on the second time quota and an initial time quota, wherein the initial time quota is a target time quota that has not been updated.
[0054] In an optional embodiment, the second time amount can be determined based on a second difference between the target time amount and the first time amount (i.e., the difference between the target time amount and the first time amount). If the network delay increases, the calculated second time amount is a negative number less than 0. At this time, the remaining shooting time amount for the player can be supplemented according to the second time amount, that is, the target time amount is increased. By increasing the remaining shooting time amount, the impact of network instability can be resisted, and the probability of misjudgment of legitimate players can be reduced.
[0055] Further, when the calculated second time quota is a number greater than 0, at this time, the remaining shooting time quota of the player can be deducted according to the second time quota, that is, the target time quota can be deducted. By deducting the remaining shooting time quota, when the player's operation is abnormal, a corresponding record can be made for the player's abnormal operation. When a certain value is reached, it is determined that the shooting operation corresponding to the player's shooting instruction is invalid. However, it should be noted that the abnormal operation may occur due to delayed packet accumulation or delayed reduction in the network. Therefore, in the case of unstable network, even if the delay increases or decreases, the influence of network instability can be resisted by supplementing and deducting the remaining shooting time quota, and the probability of misjudgment of legitimate players can be reduced. Among them, packet accumulation refers to the situation where data packets are accumulated in the data buffer area due to the server's failure to process in time.
[0056] The above-mentioned initial time quota may be the target time quota given to the player at the beginning of the game. For example, the initial time quota may be set to 2 seconds.
[0057] In an optional embodiment, in order to limit the replenishment of the remaining shooting time quota, the target time quota can be updated by comparing the second time quota with the initial time quota. Specifically, the smaller time quota between the second time quota and the initial time quota can be selected as the updated target time quota to avoid the updated target time quota being greater than the initial time quota initially given to the player.
[0058] Optionally, updating the target time quota based on the second time quota and the initial time quota includes: determining the smallest time quota between the second time quota and the initial time quota as the target time quota.
[0059] In an optional embodiment, the second time quota and the initial time quota may be compared to determine the minimum time quota between the two as the target time quota, thereby preventing the updated target time quota from being greater than the initial time quota set initially.
[0060] Optionally, the method further includes: in response to the first shooting instruction, acquiring a virtual weapon identifier corresponding to the first shooting instruction, and acquiring a preset time interval based on the virtual weapon identifier.
[0061] In an optional embodiment, the shooting frequency of each virtual weapon is different. For example, the shooting frequency of a pistol is lower, while the shooting frequency of a submachine gun is higher. Therefore, for different virtual weapons, different preset time intervals are required as a judgment basis. Specifically, the preset time interval can be obtained according to the weapon identifier corresponding to the weapon currently used by the player in the game.
[0062] Combine the following Figure 3 A preferred embodiment of the present invention is described in detail. Figure 3 As shown, the method may include the following steps:
[0063] Step S301, at the start of the game, an initial time quota may be assigned to a target time quota;
[0064] Optionally, during the game, the server may maintain a target time quota (abbreviated as q) for the player. At the start of the game, the server may assign the player a target time quota q=q_init, where q_init is the initial time quota.
[0065] Step S302, each time the server receives a shooting instruction from the player, it calculates the first time quota;
[0066] The first time quota is the shooting time quota that needs to be consumed, wherein the first time quota = the preset time interval - the first time interval, that is, dq = dt_conf - dt_real. The first time interval is the actual shooting time interval.
[0067] Step S303, determining whether the first time limit is greater than the target time limit, if so, executing step S304, if not, executing step S305;
[0068] Step S304, determining that the shooting is invalid.
[0069] Step S305, determining the minimum value of the difference between the target time limit and the first time limit and the initial time limit, and assigning the player's target time limit based on the minimum value.
[0070] Optionally, if the network delay increases, the first time interval will also increase, then the first time interval is larger than the preset time interval, and the calculated first time quota is less than zero, the server will give the player additional shooting time quota.
[0071] Optionally, if network packet stacking or delay reduction occurs, the first time interval will become smaller, then the first time interval will be smaller than the preset time interval, and the calculated first time amount will be greater than zero. At this time, the server will deduct the player's shooting time amount.
[0072] When the network is unstable, the delay will increase and decrease alternately. Through the above steps, the influence of network instability can be resisted by supplementing and deducting time quotas. Specifically, when the network delay increases, a certain shooting time quota can be supplemented to the player to avoid excessive consumption of shooting time quotas due to network delays, thereby affecting legal players and reducing misjudgment of legal players. At the same time, for illegal players, since they increase the shooting frequency through illegal operations, their first time interval, that is, the actual shooting time interval, will be significantly reduced relative to normal conditions. When the average value of the consumed time quota is greater than 0, the shooting interval quota will be consumed, resulting in the invalidation of the player's subsequent shooting request, so as to achieve the purpose of quickly detecting illegal players and restricting illegal players.
[0073] It should be noted that for different shooting weapons, a ShootChecker can be respectively implemented, and the preset shooting time interval dt_config and the initial shooting interval quota init_quota can be passed into the shooting checker. In the actual game scenario, the initial shooting interval quota init_quota can be set. For multiple types of shooting weapons, the initial shooting time interval quota can be set to a value (for example, 2 seconds), or different initial shooting time interval quotas can be set for different types of shooting weapons. Every time the player issues a shooting request, the do_shoot_check function in the ShootChecker of the shooting weapon can be called to determine the legality of the shooting.
[0074] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.
[0075] In this embodiment, a shooting operation device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions that have been made will not be repeated. As used below, the terms "unit" and "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0076] Figure 4 is a schematic diagram of an information processing device according to one embodiment of the present invention. Figure 4 As shown, the device includes: a first acquisition module 402 , a first determination module 404 , and a second determination module 406 .
[0077] Among them, the first acquisition module is used to respond to the first shooting instruction and obtain the first time interval, wherein the first time interval is the time interval between the first shooting instruction and the second shooting instruction, the first shooting instruction is the shooting instruction currently received, and the second shooting instruction is the shooting instruction received historically; the first determination module is used to determine the first time quota based on the first difference between the preset time interval and the first time interval, wherein the first time quota is the shooting time quota to be consumed; the second determination module is used to determine whether the shooting operation corresponding to the first shooting instruction is valid based on the comparison result of the first time quota and the target time quota, wherein the target time quota is the remaining shooting time quota.
[0078] Optionally, the second determination module includes: a first determination unit and a second determination unit.
[0079] Among them, the first determination unit is used to determine that the shooting operation corresponding to the first shooting instruction is invalid when the comparison result is that the first time limit is greater than the target time limit; the second determination unit is used to determine that the shooting operation corresponding to the first shooting instruction is valid when the comparison result is that the first time limit is less than or equal to the target time limit.
[0080] Optionally, the device also includes: an updating module.
[0081] The updating module is used to update the target time quota based on the first time quota.
[0082] Optionally, the updating module includes: a third determining unit and an updating unit.
[0083] Among them, the third determination unit is used to determine the second time quota according to the second difference between the target time quota and the first time quota; the updating unit is used to update the target time quota based on the second time quota and the initial time quota, wherein the initial time quota is the target time quota that has not been updated.
[0084] Optionally, the updating unit is further configured to determine the smallest time quota between the second time quota and the initial time quota as the target time quota.
[0085] Optionally, the device further includes: a second acquisition module and a third acquisition module.
[0086] The second acquisition module is used to respond to the first shooting instruction and acquire the virtual weapon identification corresponding to the first shooting instruction; the third acquisition module is used to acquire the preset time interval based on the virtual weapon identification.
[0087] It should be noted that the above-mentioned units and modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to this: the above-mentioned units and modules are all located in the same processor; or, the above-mentioned units and modules are located in different processors in any combination.
[0088] An embodiment of the present invention further provides a non-volatile storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0089] Optionally, in this embodiment, the non-volatile storage medium may be configured to store a computer program for performing the following steps:
[0090] S1, in response to a first shooting instruction, obtaining a first time interval, wherein the first time interval is a time interval between the first shooting instruction and a second shooting instruction, the first shooting instruction is a currently received shooting instruction, and the second shooting instruction is a historically received shooting instruction;
[0091] S2, determining a first time quota according to a first difference between the preset time interval and the first time interval, wherein the first time quota is a shooting time quota to be consumed;
[0092] S3, based on the comparison result of the first time quota and the target time quota, determining whether the shooting operation corresponding to the first shooting instruction is valid, wherein the target time quota is the remaining shooting time quota.
[0093] Optionally, in this embodiment, the above-mentioned non-volatile storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0094] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0095] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0096] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0097] S1, in response to a first shooting instruction, obtaining a first time interval, wherein the first time interval is a time interval between the first shooting instruction and a second shooting instruction, the first shooting instruction is a currently received shooting instruction, and the second shooting instruction is a historically received shooting instruction;
[0098] S2, determining a first time quota according to a first difference between the preset time interval and the first time interval, wherein the first time quota is a shooting time quota to be consumed;
[0099] S3, based on the comparison result of the first time quota and the target time quota, determining whether the shooting operation corresponding to the first shooting instruction is valid, wherein the target time quota is the remaining shooting time quota.
[0100] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0101] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0102] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0103] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0104] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0105] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0106] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0107] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. An information processing method, It is characterized in that include: In response to a first shooting instruction, a first time interval is acquired, wherein the first time interval is a time interval between the first shooting instruction and a second shooting instruction, the first shooting instruction is a currently received shooting instruction, and the second shooting instruction is a historically received shooting instruction; Determining a first time quota according to a first difference between a preset time interval and the first time interval, wherein the preset time interval is a preset shortest shooting time interval of a weapon corresponding to a shooting instruction, and the first time quota is a shooting time quota to be consumed; In the case where the first time quota is greater than the target time quota, determining that the shooting operation corresponding to the first shooting instruction is invalid, wherein the target time quota is the remaining shooting time quota; When the first time quota is less than or equal to the target time quota, it is determined that the shooting operation corresponding to the first shooting instruction is valid.
2. The information processing method according to claim 1, It is characterized in that After determining that the shooting operation corresponding to the first shooting instruction is valid, the method further includes: The target time amount is updated based on the first time amount.
3. The information processing method according to claim 2, It is characterized in that Updating the target time quota based on the first time quota includes: determining a second time quota according to a second difference between the target time quota and the first time quota; The target time quota is updated based on the second time quota and the initial time quota, wherein the initial time quota is the target time quota that has not been updated.
4. The information processing method according to claim 3, It is characterized in that Based on the second time quota and the initial time quota, updating the target time quota includes: The minimum time quota between the second time quota and the initial time quota is determined as the target time quota.
5. The information processing method according to claim 1, It is characterized in that The method further comprises: In response to the first shooting instruction, acquiring a virtual weapon identifier corresponding to the first shooting instruction; The preset time interval is acquired based on the virtual weapon identifier.
6. An information processing device, It is characterized in that include: an acquisition module, configured to acquire a first time interval in response to a first shooting instruction, wherein the first time interval is a time interval between the first shooting instruction and a second shooting instruction, the first shooting instruction is a currently received shooting instruction, and the second shooting instruction is a historically received shooting instruction; A first determination module, configured to determine a first time quota based on a first difference between a preset time interval and the first time interval, wherein the preset time interval is a preset shortest shooting time interval of a weapon corresponding to a shooting instruction, and the first time quota is a shooting time quota to be consumed; The second determination module is used to determine that the shooting operation corresponding to the first shooting instruction is invalid when the first time quota is greater than the target time quota, wherein the target time quota is the remaining shooting time quota; and to determine that the shooting operation corresponding to the first shooting instruction is valid when the first time quota is less than or equal to the target time quota.
7. A non-volatile storage medium, It is characterized in that The non-volatile storage medium stores a computer program, wherein the computer program is configured to execute the information processing method described in any one of claims 1 to 5 when running.
8. A processor, It is characterized in that The processor is used to run a program, wherein the program is configured to execute the information processing method described in any one of claims 1 to 5 when run.
9. An electronic device comprising a memory and a processor, It is characterized in that The memory stores a computer program, and the processor is configured to run the computer program to execute the information processing method described in any one of claims 1 to 5.
