Game AI Pro 2
eBook - ePub

Game AI Pro 2

Collected Wisdom of Game AI Professionals

Steven Rabin, Steven Rabin

  1. 577 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Game AI Pro 2

Collected Wisdom of Game AI Professionals

Steven Rabin, Steven Rabin

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

Game AI Pro2: Collected Wisdom of Game AI Professionals presents cutting-edge tips, tricks, and techniques for artificial intelligence (AI) in games, drawn from developers of shipped commercial games as well as some of the best-known academics in the field. It contains knowledge, advice, hard-earned wisdom, and insights gathered from across the com

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Game AI Pro 2 è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Game AI Pro 2 di Steven Rabin, Steven Rabin in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Informatica e Grafica per computer. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2015
ISBN
9781498760423
Edizione
1
Argomento
Informatica
Section V

Tactics, Strategy, and Spatial Awareness

Chapter 27

Looking for Trouble

Making NPCs Search Realistically
Rich Welsh

27.1 Introduction

Searching is so second nature to us that apart from the inconvenience of having misplaced something, we’re naturally able to effectively track down missing items. What thought processes do we go through while we’re searching? How can we take these and apply them to our nonplayer characters (NPCs) in order to make them appear more realistic when they’re searching? If you’re searching for answers to these questions, then look no further!

27.2 Types of Searching

The main focus of this chapter is to outline the way in which NPCs search for hostile targets in a title that I am unable to name. Since the target in this game is a player character, the target will be referred to as “the player”; however, in terms of implementation, this could be any target that is hostile to the NPC. The assumption is also made that the player is actively hiding from hostile NPCs. Despite these assumptions, a lot of the principles described here are suitable for almost any type of search. With that in mind, there are two main types of search that can occur in the game.

27.2.1 Cautious Search

A cautious style of searching is one in which the NPC has been alerted, but does not know whether their target is hostile. This style of searching is generally used when the NPC has been alerted by a stimulus without any knowledge of the source, for example, if a player throws a bottle to draw attention and lure an NPC. While the NPC is aware of the noise, they are unaware of whether the source is a friend or foe.

27.2.2 Aggressive Search

An aggressive search is one where the NPC knows about the target they are searching for and, at the very least, that their target is a hostile one. In most cases, the NPC will have previously seen the player and the player will have successfully evaded the NPC. However, any NPC that has knowledge of their target should employ this style of search—this includes reinforcement NPCs who have just entered the engagement or NPCs who have been informed of their hostile target by an ally.

27.3 Triggering a Search

The first key to making a search seem realistic is triggering it at the right time and telegraphing that transition to the player. Since the player is usually still nearby when the search is triggered, it is likely that they are still able to see or hear the NPCs who are about to hunt for them. Therefore, a poor decision on starting the search will be obvious to the player.
While it may not seem as important as the search itself, telegraphing the transition into a searching state to the player is vital to get right in order for players to be able to identify what will and will not cause NPCs to react. In most games, this transition is signaled by some dialogue and occasionally an accompanying animation.

27.3.1 Initial Stimulus-Based Trigger

An initial stimulus-based trigger is one in which the NPC goes from an unaware state into a searching state due to an indirect stimulus such as a sound. If the NPC is able to see the target directly, then they would enter a combat state rather than search, so in this situation the player must have created some kind of stimulus that was sensed without a direct line of sight to the player.
Stimuli received by NPCs can be divided into two categories. Hostile stimuli, such as gunfire and explosions, will trigger an aggressive search response. Although the target isn’t known, it is assumed to be hostile from the type of stimulus received. Distraction stimuli on the other hand, for example, a bottle being thrown or a prop being knocked over, will trigger a cautious search.

27.3.2 Losing a Target

This method of triggering a search is one in which the NPCs had a direct line of sight to the target at some point—whether the player just briefly dashed across the NPC’s field of view or ran away when spotted or actively engaged in combat. When losing sight of a target, NPCs have knowledge of the last position and direction in which they were moving. Normally, if it were a person watching a target leave, they would be able to estimate the location of the target after losing sight. Simply using the target’s last known velocity to estimate a current position after a time can cause problems however, as characters (especially players) don’t move in perfectly straight lines.
One common problem with extrapolating a position in this manner arises when trying to...

Indice dei contenuti

Stili delle citazioni per Game AI Pro 2

APA 6 Citation

[author missing]. (2015). Game AI Pro 2 (1st ed.). CRC Press. Retrieved from https://www.perlego.com/book/1510423/game-ai-pro-2-collected-wisdom-of-game-ai-professionals-pdf (Original work published 2015)

Chicago Citation

[author missing]. (2015) 2015. Game AI Pro 2. 1st ed. CRC Press. https://www.perlego.com/book/1510423/game-ai-pro-2-collected-wisdom-of-game-ai-professionals-pdf.

Harvard Citation

[author missing] (2015) Game AI Pro 2. 1st edn. CRC Press. Available at: https://www.perlego.com/book/1510423/game-ai-pro-2-collected-wisdom-of-game-ai-professionals-pdf (Accessed: 14 October 2022).

MLA 7 Citation

[author missing]. Game AI Pro 2. 1st ed. CRC Press, 2015. Web. 14 Oct. 2022.