[[Image:goldeneye_surface1_guard_spawn_location.png|border|500px|Surface 1 guard spawn location by room]]
[[Image:goldeneye_surface1_guard_spawn_location.png|border|500px|Surface 1 guard spawn location by room]]
+
+
== Technical Details ==
+
+
=== Guards ===
+
+
There are 5 [[Guards#Patrolling Guard|patrolling guards]] and, 4 normal guards. <ref>{{cite web | url=https://forums.the-elite.net/index.php?topic=18518.msg456102#msg456102|title=the-elite forum Goldeneye facts post on guard AI|author=Icy|access-date=July 16, 2021}}</ref>
+
+
There are 4 spawn guards that begin spawning after certain conditions are met. They have fairly complicated AI and are chasers.
+
+
The guard spawning script<ref name="surface 1 guards" /> looks like
+
+
<pre>
+
1. Wait 120 frames (2 seconds).
+
2. Wait for spawns to be enabled (described in my original post above).
+
3. Wait 120 frames (2 seconds).
+
4. If the guard is currently alive (hasn't finished death animation), go back to step #2.
+
5. If cinema is playing, go back to step #2.
+
6. If RNG is greater than 200 (21.48%), go to step #8.
+
7. If Unarmed/Hunting Knives/Throwing Knives/PP7/PP7 (Silenced)/Sniper Rifle is out, go back to step #2.
+
8. If RNG is greater than 50 (80.08%), go to step #10.
+
9. If Klobb/Grenade Launcher/KF7 is out, go back to step #2.