CoraRubbo998

Joined 16 March 2025
1,121 bytes added ,  18:42, 4 July 2021
add Guard Scripts
Line 114: Line 114:     
The game doesn't always recognize that Bond entered the pink area (most likely because it's also a safe area, and script wise, that usually takes priority). So the game often uses white spawns instead.
 
The game doesn't always recognize that Bond entered the pink area (most likely because it's also a safe area, and script wise, that usually takes priority). So the game often uses white spawns instead.
 +
 +
=== Guard Scripts ===
 +
 +
there's a line of code that's very useful to us.
 +
 +
Long story short:
 +
1. After a guard spawns, he will run/jog until he's within a certain distance of Bond.
 +
2. If Bond is within a safe area, the script will jump into a second script, that tells the guard to jog until he's even closer to Bond.
 +
3. Once he's done jogging, a third script is entered. This is the one where the guard starts kneeling, which should be very familiar.
 +
 +
The interresting part is that there's only 2 ways the guard can get out of the third script (where he is unable to move anywhere), either the guard notices that Bond fired a bullet, or Bond is more than 500 units of distance away. 500 units is quite alot, if you draw a circle with 500 units as a radius, it will cover most of the level. So in Illu's run, the guards were positioned in the large warehouse, and the 500 unit radius easily covers the mainframe room from there, which prevents the guards from following him.
 +
 +
If you wait even longer, until all 7 guards have reached this area, you might be able to avoid killing any guards when leaving the mainframe area.
    
== Tutorials ==
 
== Tutorials ==