
APT.all-test.MOUTBot.execute-mission.reload.soar Maven / Gradle / Ivy
# REW: 2002-09-27
# - Must be able to terminate operator if ammo never changes. Added
# condition for recognizing reload failures.
# JEL: 2002-12-6
# Moved to execute-mission so always available
# REW: 2003-01-24
# Something's rotten here .... this says reload should
# be proposed anytime there's a clip available, which is
# silly. Added -^rounds-available.
sp {execute-mission*propose*reload
(state ^name execute-mission
^top-state.self.weapons.selected-weapon
-^io.output-link.reload.error-code)
( -^rounds-available
^clips-available
-^type << grenade knife >>)
-->
(write (crlf) |Proposing operator reload...|)
( ^operator +, = 80)
( ^name reload
^actions.reload true)
}
sp {apply*reload*say*weapon-dry
(state ^operator
^top-state.comm )
( ^name reload)
-->
( ^communicate )
( ^name weapon-dry)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy