CN-122006238-A - Bullet switching method, bullet switching device, electronic equipment and program product
Abstract
The disclosure provides a bullet switching method, which comprises the steps of displaying a bullet switching control in a game interface, switching bullet types matched with a virtual firearm from a first bullet type to a second bullet type in response to switching operation of the bullet switching control, and controlling the virtual firearm to execute attack behaviors according to the bullets of the second bullet type in response to an attack instruction. The player can flexibly switch the bullet types used by the virtual firearm according to the currently held bullet resources or tactical requirements, and the technical problem that the firearm cannot be used due to the lack of matched bullets in the related technology is solved.
Inventors
- SU YUPENG
Assignees
- 网易(杭州)网络有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260226
Claims (17)
- 1. A method for bullet switching, the method comprising: displaying bullet switching controls in the game interface; Switching the bullet type matched with the virtual firearm from the first bullet type to the second bullet type in response to a switching operation for the bullet switching control; And responding to the attack instruction, controlling the virtual firearm to execute attack according to the bullet of the second bullet type.
- 2. The method of claim 1, wherein the step of displaying a bullet switch control in a game interface comprises: Determining that the virtual firearm is configured with a target accessory, displaying a bullet switch control corresponding to the virtual firearm in the game interface, wherein the target accessory is configured to fire bullets of a first bullet type or assemble bullets of a second bullet type.
- 3. The method of claim 2, wherein prior to the step of determining that the virtual firearm is configured with a target accessory, the method further comprises: controlling assembly of the target accessory to the virtual firearm in response to an accessory assembly instruction for the virtual firearm.
- 4. The method of claim 1, wherein the switching the virtual firearm-matched bullet type from a first bullet type to a second bullet type in response to a switching operation for the bullet switching control comprises: Triggering a bullet changing action in response to a switching operation for the bullet switching control; and after the bullet exchanging action is finished, switching the bullet type matched with the virtual firearm from the first bullet type to the second bullet type.
- 5. The method according to claim 4, wherein the method further comprises: and displaying a bullet type switching prompt in the game interface after the bullet changing action is finished, wherein the bullet type switching prompt comprises a bullet caliber description of the second bullet type.
- 6. The method of claim 1, wherein the first bullet type is a first caliber bullet type and the second bullet type is a second caliber bullet type, wherein the first caliber is different from the second caliber.
- 7. The method of claim 6, wherein the second injury value and/or second firing rate value of the virtual firearm when performing an attack from a bullet of the second bullet type is different than the first injury value and/or first firing rate value of the virtual firearm when performing an attack from a bullet of the first bullet type.
- 8. The method of claim 6, wherein the capacity of the virtual firearm packing the first caliber bullet type is a first capacity threshold and the capacity of the virtual firearm packing the second caliber bullet type is a second capacity threshold, wherein the first capacity threshold is different from the second capacity threshold.
- 9. The method according to claim 1, wherein the method further comprises: Obtaining bullet type information in a knapsack; and determining the state of the bullet switching control according to the bullet type information.
- 10. The method of claim 9, wherein the determining the status of the bullet switch control from the bullet type information comprises at least one of: Setting the bullet switch control to an inoperable state and setting the virtual firearm-matched bullet type to the first bullet type or the second bullet type when the bullet type information indicates that only bullets of the first bullet type or the second bullet type are owned in the backpack; Setting the bullet switching control to an inoperable state and setting the bullet type matched with the virtual firearm to a first default type when the bullet type information indicates that the bullets of the first bullet type and the bullets of the second bullet type are not present in the backpack, wherein the first default type is the first bullet type or the second bullet type; When the bullet type information indicates that the bullets of the first bullet type and the bullets of the second bullet type are simultaneously owned in the backpack, the bullet switching control is set to be in an operable state, and the bullet type matched with the virtual firearm is set to be a second default type, wherein the second default type is the first bullet type or the second bullet type.
- 11. The method according to claim 1, wherein the method further comprises: When detecting that the number of the bullet spares corresponding to the current bullet type of the virtual firearm meets a first number threshold, automatically triggering a bullet changing action if a first virtual character has another bullet type of bullets, wherein the other bullet type is a bullet type except the current bullet type in the first bullet type and the second bullet type; and after the bullet changing action is finished, switching the bullet type matched with the virtual firearm from the current bullet type to the other bullet type.
- 12. Method according to any of claims 4 or 10, characterized in that the virtual firearm is filled with a bullet of the second bullet type after the end of the changing action.
- 13. A method according to claim 3, characterized in that the method further comprises: Removing the target accessory from the virtual firearm in response to an accessory change instruction for the virtual firearm; and canceling to display the bullet switching control.
- 14. The method according to claim 1, wherein the method further comprises: and after the bullet type matched with the virtual firearm is switched from the first bullet type to the second bullet type, updating game attribute parameters of the virtual firearm.
- 15. A bullet switching device, the device comprising: the control display module is used for displaying bullet switching controls in the game interface; a switching module for switching the bullet type matched with the virtual firearm from a first bullet type to a second bullet type in response to a switching operation for the bullet switching control; And the attack module is used for responding to the attack instruction and controlling the virtual firearm to execute attack behaviors according to the bullets of the second bullet type.
- 16. An electronic device comprising a processor and a memory, the memory storing a computer program, characterized in that the processor implements the method of any one of claims 1 to 14 when executing the computer program.
- 17. A computer program product having a computer program stored thereon, which, when executed by a processor, implements the method of any of claims 1 to 14.
Description
Bullet switching method, bullet switching device, electronic equipment and program product Technical Field The disclosure relates to the technical field of games, and in particular relates to a bullet switching method, a bullet switching device, electronic equipment and a program product. Background Shooting games are a type of game that is currently very popular, where players fight other battle players in virtual scenes by controlling virtual characters to pick up firearms, bullets, etc., and ultimately the surviving team or individual wins. In the related art, all firearms in the office can generally use only a single bullet type with which the firearm can be equipped. For example, some assault guns use only bullets of a particular caliber and are not compatible with other calibers. This results in the frequent occurrence of a situation in which during play the player picks up a powerful firearm, but either the backpack has no corresponding proprietary bullet, or the backpack has a large number of other types of bullets, but cannot fit onto the currently held firearm. Such a strict correspondence limits the utilization of the material, so that the player needs to spend more effort to find the resources of a particular match when gathering the material. Disclosure of Invention The disclosure aims to provide a bullet switching method, a bullet switching device, an electronic device and a program product, so as to solve the technical problem that in the related art, a firearm can only use a single type of bullet, so that the combat experience is poor. In a first aspect, the present disclosure provides a bullet switching method including displaying a bullet switching control in a game interface, switching a bullet type matched with a virtual firearm from a first bullet type to a second bullet type in response to a switching operation for the bullet switching control, and controlling the virtual firearm to execute an attack behavior according to a bullet of the second bullet type in response to an attack instruction. The bullet switching device comprises a control display module, a switching module and an attack module, wherein the control display module is used for displaying bullet switching controls in a game interface, the switching module is used for switching bullet types matched with a virtual firearm from a first bullet type to a second bullet type in response to switching operation of the bullet switching controls, and the attack module is used for controlling the virtual firearm to execute attack actions according to the bullets of the second bullet type in response to attack instructions. In a third aspect, the present disclosure provides an electronic device comprising a processor and a memory, the memory storing a computer program, the processor being implemented to perform the steps of any one of the bullet switching methods described above when executing the computer program. In a fourth aspect, the present disclosure provides a computer program product having a computer program stored thereon, which when executed by a processor is implemented to perform the steps in the bullet switching method of any of the above. The present disclosure provides a bullet switching method, apparatus, electronic device and program product, so that a player can flexibly switch bullet types used by a virtual firearm according to currently held bullet resources or tactical requirements, and the technical problem that the firearm cannot be used due to lack of matched bullets in the related art is solved. Drawings FIG. 1 shows a schematic diagram of a system architecture in an embodiment of the present disclosure; FIG. 2 illustrates a flow chart of a method of bullet switching in an embodiment of the present disclosure; FIG. 3 illustrates an interface schematic showing a bullet switch control in an embodiment of the present disclosure; FIG. 4 illustrates an interface schematic diagram of a bullet switch control not shown in an embodiment of the present disclosure; FIG. 5 illustrates an interface schematic of a backpack interface in an embodiment of the present disclosure; FIG. 6 illustrates an interface diagram showing a bullet type switching prompt in one embodiment of the present disclosure; FIG. 7 illustrates a schematic diagram of a bullet switch control in a different operational state in an embodiment of the present disclosure; FIG. 8 shows a schematic diagram of a bullet switching device in an embodiment of the present disclosure; fig. 9 shows a schematic diagram of an electronic device in an embodiment of the disclosure. Detailed Description Exemplary embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings. The drawings are schematic illustrations of the present disclosure and are not necessarily drawn to scale. Some of the block diagrams shown in the figures may be functional entities and do not necessarily correspond to physically or logical