# US 2021/0275914 A1 · Method and apparatus for controlling shooting of virtual object, electronic device, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0275914 A1
- Document ID: US20210275914A1
- Status: Published application
- Kind: A1
- Application number: 17/329,456
- Filed: 2021-05-25
- Published: 2021-09-09
- Earliest claimed: 2019-05-30
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Shuo Huan WU; Zhi Hong LIU
- Web page: https://patentgrep.com/patent/US20210275914A1

## CPC

- A63F 13/2145: the surface being also a display device, e.g. touch screens
- A63F 13/426: involving on-screen location information, e.g. screen coordinates of an area at which the player is aiming with a light gun
- A63F 13/52: involving aspects of the displayed game scene
- A63F 13/573: using trajectories of game objects, e.g. of a golf ball according to the point of impact
- A63F 13/577: using determination of contact between game characters or objects, e.g. to avoid collision between virtual racing cars
- A63F 13/837: Shooting of targets
- A63F 13/92: Video game devices specially adapted to be hand-held while playing
- A63F 2300/638: according to the timing of operation or a time limit
- A63F 2300/8076: Shooting
- A63F: CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR

## Abstract

Provided is a method for controlling shooting of a virtual object, including: obtaining a locking area of a first virtual object in a virtual scene; based on determining that an aiming point of a second virtual object being within the locking area for a target duration, displaying locking complete information at a position of the aiming point in the locking area, the locking complete information indicating that locking of the first virtual object is completed; and controlling automatic shooting of the second virtual object on the first virtual object, of which locking is completed, based on the aiming point being located in an under-attack area of the first virtual object, a size of the under-attack area being less than a size of the locking area.

## Claims

### Claim 1

A method for controlling shooting of a virtual object in a shooting game application, the method being performed by an electronic device and comprising:
obtaining a locking area of a first virtual object in a virtual scene;
based on determining that an aiming point of a second virtual object being within the locking area for a target duration, displaying locking complete information at a position of the aiming point in the locking area, the locking complete information indicating that locking of the first virtual object is completed; and
controlling automatic shooting of the second virtual object on the first virtual object, of which locking is completed, based on the aiming point being located in an under-attack area of the first virtual object, a size of the under-attack area being less than a size of the locking area.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining comprises:
determining that the aiming point is located in the locking area based on position coordinates of the aiming point of the second virtual object being within a coordinate range of the locking area.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the determining comprises:
emitting a ray in a viewing angle direction of the virtual scene from the position of the aiming point of the second virtual object; and
determining that the aiming point is located in the locking area based on the ray colliding with the locking area.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the displaying the locking complete information comprises:
starting timing based on the determining that the aiming point of the second virtual object is within the locking area; and
displaying the locking complete information at the position of the aiming point in the locking area based on the timing that reaches the target duration while the aiming point of the second virtual object maintains in the locking area.

### Claim 5 (depends on 4)

The method according to claim 4, further comprising, after the starting the timing:
displaying locking preparation information, indicating preparation of locking of the first virtual object, at the position of the aiming point of the second virtual object.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the locking preparation information includes at least two display items displayed around the position of the aiming point.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the locking complete information includes the at least two display items displayed around the position of the aiming point, and a display style of the at least two display items used in the locking complete information is different from a display style of the at least two display items used in the locking preparation information.

### Claim 8 (depends on 4)

The method according to claim 4, further comprising, after the starting the timing:
ending the timing based on the aiming point moving outside the locking area before the timing reaches the target duration.

### Claim 9 (depends on 1)

The method according to claim 1, further comprising:
obtaining a type of a virtual item controlled by the second virtual object; and
performing operations of obtaining the locking area, displaying the locking complete information, and controlling the automatic shooting based on the type of the virtual item being a target type.

### Claim 10 (depends on 1)

The method according to claim 1, wherein operations of obtaining the locking area, displaying the locking complete information, and controlling the automatic shooting are performed based on satisfaction of a condition that the first virtual object is not completely occluded in a viewing angle of the second virtual object.

### Claim 11 (depends on 10)

The method according to claim 10, further comprising:
determining that the first virtual object is not completely occluded based on any connecting line between a virtual camera of the second virtual object and the first virtual object not passing through any virtual article in the virtual scene; or
determining that the first virtual object is completely occluded based on all connecting lines between the virtual camera of the second virtual object and the first virtual object passing through any virtual article in the virtual scene.

### Claim 12 (depends on 1)

The method according to claim 1, further comprising, after the controlling the automatic shooting, controlling the second virtual object to stop the automatic shooting based on detection of any one of the following:
the aiming point moves outside the under-attack area of the first virtual object;
a quantity of projectiles of a virtual item controlled by the second virtual object is zero;
the first virtual object is completely occluded; and
the first virtual object is in an eliminated state or a seriously injured state.

### Claim 13 (depends on 1)

The method according to claim 1, further comprising:
continuously displaying the locking complete information at the position of the aiming point, based on a view-angle range of the second virtual object comprising a plurality of first virtual objects, one first virtual object being in an eliminated state or a seriously injured state, and the aiming point being located in a locking area of another first virtual object.

### Claim 14 (depends on 1)

The method according to claim 1, further comprising:
controlling the second virtual object to continuously perform the automatic shooting, based on a view-angle range of the second virtual object comprising a plurality of first virtual objects, one first virtual object being in an eliminated state or a seriously injured state, and the aiming point being located in an under-attack area of another first virtual object.

### Claim 15 (depends on 1)

The method according to claim 1, further comprising, prior to the controlling the automatic shooting:
obtaining the under-attack area of the first virtual object according to a distance between the first virtual object and the second virtual object; and
wherein the obtaining the locking area of the first virtual object comprises:
obtaining the locking area of the first virtual object according to the distance between the first virtual object and the second virtual object.

### Claim 16 (depends on 15)

The method according to claim 15, wherein the obtaining the under-attack area of the first virtual object comprises:
obtaining a target size of the under-attack area according to the distance between the first virtual object and the second virtual object; and
obtaining an area with the first virtual object being a center and a size being the target size as the under-attack area of the first virtual object.

### Claim 17

An apparatus for controlling shooting of a virtual object in a shooting game application, disposed in an electronic device, the apparatus comprising:
at least one memory configured to store program code; and
at least one processor configured to read the program code and operate as instructed by the program code, the program code comprising:
obtaining code configured to cause at least one of the at least one processor to obtain a locking area of a first virtual object in a virtual scene;
display code configured to cause at least one of the at least one processor to, based on determining that an aiming point of a second virtual object is within the locking area for a target duration, display locking complete information at a position of the aiming point in the locking area, the locking complete information indicating that locking of the first virtual object is completed; and
control code configured to cause at least one of the at least one processor to control automatic shooting of the second virtual object on the first virtual object, of which locking is completed, based on the aiming point being located in an under-attack area of the first virtual object, a size of the under-attack area being less than a size of the locking area.

### Claim 18 (depends on 17)

The apparatus according to claim 17, wherein the display code is further configured to cause at least one of the at least one processor to:
start timing based on the determining that the aiming point of the second virtual object is within the locking area; and
display the locking complete information at the position of the aiming point in the locking area based on the timing that reaches the target duration while the aiming point of the second virtual object maintains in the locking area.

### Claim 19 (depends on 1)

An electronic device, comprising one or more processors and one or more memories, the one or more memories storing at least one computer-readable instruction, the at least one computer-readable instruction being loaded and executed by the one or more processors to implement operations performed in the method according to claim 1.

### Claim 20

A non-transitory computer-readable storage medium, storing at least one computer-readable instruction, the at least one computer-readable instruction being executable by at least one processor to perform:
obtaining a locking area of a first virtual object in a virtual scene;
based on an aiming point of a second virtual object being within the locking area for a target duration, displaying locking complete information at a position of the aiming point in the locking area, the locking complete information indicating that locking of the first virtual object is completed; and
controlling automatic shooting of the second virtual object on the first virtual object, of which locking is completed, based on the aiming point being located in an under-attack area of the first virtual object, a size of the under-attack area being less than a size of the locking area.
