|
|
Line 88: |
Line 88: |
| {{OBDtr| 0x1EA | int16 |FFFFA6| 00 00 | 0 | amount of phase cloaking that can be dropped }} | | {{OBDtr| 0x1EA | int16 |FFFFA6| 00 00 | 0 | amount of phase cloaking that can be dropped }} |
|
| |
|
| {{OBDtr| 0x1EC | int16 |71FFB8| 00 00 | 0 | unknown; always zero; used "nci"? }} | | {{OBDtr| 0x1EC | int16 |71FFB8| 00 00 | 0 | used "nci" (feature not used in Oni) }} |
| {{OBDtr| 0x1EE | int16 |71FFB8| 00 00 | 0 | unknown; always zero; dropped "nci"? }} | | {{OBDtr| 0x1EE | int16 |71FFB8| 00 00 | 0 | dropped "nci" (feature not used Oni) }} |
|
| |
|
| {{OBDtr| 0x1F0 | int32 |0000BF| 00 00 00 00 | 0 | team ID; the following teams are possible: | | {{OBDtr| 0x1F0 | int32 |0000BF| 00 00 00 00 | 0 | team ID; the following teams are possible: |
Line 117: |
Line 117: |
| {{OBDtr| 0x214 | int32 |4F7291| 04 00 00 00 | 4 | pursuit mode for strong awareness when alert level medium/high/combat }} | | {{OBDtr| 0x214 | int32 |4F7291| 04 00 00 00 | 4 | pursuit mode for strong awareness when alert level medium/high/combat }} |
| {{OBDtr| 0x218 | int32 |FFD6C1| 04 00 00 00 | 4 | pursuit mode for weak awareness when alert level medium/high/combat }} | | {{OBDtr| 0x218 | int32 |FFD6C1| 04 00 00 00 | 4 | pursuit mode for weak awareness when alert level medium/high/combat }} |
| {{OBDtr| 0x21C | int32 |FF5E5E| 00 00 00 00 | 0 | unknown (pm_pursue_lost?) }} | | {{OBDtr| 0x21C | int32 |FF5E5E| 00 00 00 00 | 0 | pursuit mode for lost contact (enemy was indentified, but then the enemy ran away) }} |
| |} | | |} |
|
| |
|
Line 127: |
Line 127: |
|
| |
|
| ;Pursuit modes: | | ;Pursuit modes: |
| :AI2 has 4 awareness modes: '''forgotten''', '''weak''', '''strong''', '''definite'''.
| | See [[Tricks behind Oni A.I.#Reactions on stimuli a.k.a. "What was that?!"|Reactions]] and [[Tricks behind Oni A.I.#Pursuit of enemy alias "I will find you..."|Pursuit of enemy]] to learn about meaning of CHAR pursuit values. |
| :Forgotten and definite are clear (either AI2 forgets about enemy or AI2 sees enemy with central vision field).
| |
| :Weak and strong are modes used when AI2 character pursues enemy. The moment AI2 char sees (with '''peripheral''' vision field) or hears enemy, it goes into pursue mode with this enemy. Strong is first, then (after timer finishes) it degrades to weak (and then to forgotten).
| |
| *values specified here in CHAR affect only pursuit that is called because of some '''SOUND contact'''. If AI2 heard some sound it does:
| |
| :*At the beginning of pursuit, AI2 chars tries to move as close to the point where enemy stood (or center of dangerous sound was) as possible. AI2 character has limited '''pursuit distance''', specified in [[CMBT]] profile it is using. If source of danger (or interest?) is too far away, AI2 char moves only so far where it can move from its current location according to the pursuit distance. For movement, pursuit mode 2 (GoTo) is used. Whole pursuit behavior depends on pathfinding, no "vectors of movement" or how should I call those green lines.
| |
| ::"Green lines": ai2_showpaths=1, when in MELE mode or dodging, AI2 has some short green line pointing in the direction of movement instead of regular brown pathfinding line.
| |
| :*Then AI2 performs pursuit mode 4 (Look) for some specified time (which is probably hardcoded in this pursuit mode's procedure). Awareness of enemy is strong.
| |
| :*After this initial Look mode ends, AI2 char starts its '''strong awareness''' pursuit mode, choice depends on alert level.
| |
| :*When timer for strong awareness fades, AI2 goes to weak awareness and starts using its '''weak awareness''' pursuit mode, choice depends on alert level again. Possible pursuit modes are listed below.
| |
| | |
| *pursuit caused by '''PERIPHERAL VISION contact''' + a few other things about pursuit mode:
| |
| *OK, how to start? Maybe like this: we (me?) really, REALLY need source. Because chance is 95% that peripheral vision is broken. 5% that AI2 engineer really meant it that way. I will refer in this text to lots of things as "bugs". If AI2 engineer really meant it that way, then I apologize, but no, that was not good way.
| |
| :*When AI2 has no contacts with enemy, it either does its job or stands idle. If AI2 sees enemy with central vision field ([[ONCC]]), it goes into "combat mode" (or how to call it) with this one enemy.
| |
| ::NOTE
| |
| ::*Looks like ONI works that way that each AI2 can be in "combat mode" only with ONE enemy, while other contacts are held as "threats"(see [[ONCC]] for info about "...threat"). So more AI2s can be in "combat mode" with one enemy, but one AI2 cannot be in "combat mode" with more enemies.
| |
| ::*Also, in combat mode, threat is set as "definite" one for enemy which has our AI2 "combat mode" with. When you run out of central vision field, AI2 still knows for a small amount of time your exact location before definite enemythreat timer runs out.
| |
| ::/NOTE
| |
| :*While in combat mode (melee or guns, it is similar) this AI2 is given exact location of enemy as flag where this AI2 should go. So it can run through ''whole level'' if no doors are locked, no gaps in way are and enemy is near the end of level. But you hardly see this. Why? Continue reading.
| |
| :*If enemy with which our AI2 has "combat mode" is in AI2's central vision field, everything is OK. AI2 is attacking enemy, combat mode. What is enemy tries to escape from central vision field??
| |
| :*Then usually AI2 will chase him for a while, then it will start its "pursuit" job specified in CHAR. But BUGS are ocasionally happening:
| |
| ::*AI2 chases enemy until it can see him with central vision field again. Can travel uexpectedly long distance.
| |
| ::*When AI2 Striker performs his front throw or when AI2 Tanker does his running attack (UNCLEAR TACKLE !), they remain in prone position, rotating head and saying their pursuit line. But they saw you second ago!
| |
| :*those examples lead us to conclusion that something is "quite not right". Yep. Now for peripheral vision pursuit:
| |
| :*AI2 which is alarmed by peripheral vision contact automatically goes (I don't know correct alert levels, sorry):
| |
| ::*broken Look mode; AI2 performs GoTo + Look combo (like in sound contact) but Look has broken timer. It has timer 600, good. But timer is NOT decreasing ^_^. Plus (maybe because that timer is not decreasing) AI2 does not perform rotation. It just stares forward and is stuck until other disturbance "wakes" it from this bug.
| |
| ::*Glance mode, which has the end. Good. But...wherever you stood, AI2 will always move to the point of contact (GoTo) and then perform Glance up to the sky ^_^. So it is basically trying to find you somewhere up, while you can be everywhere. I guess this happened to everyone at least once.
| |
| :*So we can see that peripheral pursuit stands on its own and is NOT affected by values in CHAR. It goes even further-it has broken link or what in "from combat mode to pursuit mode X" at all because if AI2 enemy sees you but cannot hear you (ai2_deaf=1) he will remain in "combat mode" with you, which means he will find you everywhere! Well this is not 100% correct, but works like this quite often. I think reason is that AI2 has NO PURSUIT MODE to get in because remember - peripheral vision does not use values from CHAR. And if it get into some pursuit after peripheral contact, it is either broken Look or bugged Glance X_X.
| |
| :*So bugs like suddenly ignoring enemies etc are caused by this IMO. AI2 '''saw''' you as last contact, didn't heard any sound from you (case of Striker's throw). So it got bugged.
| |
| :*Sound detection looks like it is working normally, transitions pursuit->combat and combat->pursuit seem to be OK. In fact 75% of AI2 interaction when it comes to pursuing is handled by sound system. Even bullets, explosions etc if they hit are taken as "sound:gunshot-heard" type of alerting action.
| |
| :*What more to add? We NEED source...ô_ô or Neo ^_^
| |
| | |
| --[[User:Loser|Loser]] 15:17, 10 August 2008 (CEST)
| |
| | |
| | |
| | |
| ;Useable values for pursuit modes:
| |
| *0 - No mode; looks like engine uses Look mode as "safe ring" from crash; maybe 0 is GoTo + Look ("starter" of AI2 pursuit mode, see above)???
| |
| *1 - '''Forget'''; works like "ai2_forget" command
| |
| *2 - '''GoTo'''; used by engine when char has to move to another place while in pursuit mode, if you set it in CHAR, it does nothing.
| |
| *3 - '''Wait'''; AI2 char keeps looking at the point where it looked before this mode started, waiting ^_^
| |
| *4 - '''Look'''; AI2 char keeps rotating whole body, looking around
| |
| *5 - '''Move'''; no effect when this value is set in CHAR, I don't have idea for what this is good if we have GoTo already. Maybe move randomly ???
| |
| *6 - '''Hunt'''; not implemented in Oni (as a few of us noticed, eh, EdT? ^_^). Looks like it is here (it has name, it does not make Oni crash etc), but main procedure is probably unfinished or what (or wrong linked)
| |
| *7 - '''Glance'''; AI2 char stands and rotates only as if player pressed "look" key ("v" by default) and tried to move the mouse. So no full-body turning, only "twisting" from extreme angle to extreme angle.
| |
| :speculations:
| |
| *9 - Find alarm?; this is interesting, becuase when you make AI2 char alarmed via "ai2_tripalarm" (or by alarm console), report will say that reason of high alert of AI2 is ''unknown: 9''. Maybe this mode means "find player, who is alarming whole place by doing his business here?"
| |
| | |
| Exe rip which contains (probably) all modes is in [[CMBT]], se near the end of the page.
| |
| | |
| --[[User:Loser|Loser]] 14:45, 31 July 2008 (CEST)
| |
|
| |
|
| ==Dialog from level0_Tools== | | ==Dialog from level0_Tools== |