* Honkbots 0.9.0 Old code, needs testing. * Honkbots 0.9.1 Small Fixes - Part 1 * Honkbot 0.9.1b Fixes * Honkbots 0.9.2 Added sound cooldown, fixes. * Honkbots 0.9.5 Clown Box & Honkbot Assembly Code * 0.9.5.a oops * Honkbots 1.0.0 Final touches and fixes. Clown Box finished. Assembly functioning. Honkbots tested and ready to go. Its time. * Honkbots 1.0.1 Initialize and . = ..() * Honkbots 1.0.2 Fixes and Changes ==== Nerfed Brute/Thermal Resist Buffed Health (to avoid 1-shot) Added HONK_BOT define * Honkbots 1.0.3 Removed the cardboard assembly from death gibs. Admin Bwoink removed from emagged soundtrack. Honkbot now release an evil laugh when emagged. Fixed strange behaviors on emagged level 1 Added a check against stamping multiple cardboard sheets. Stamping a Clown Box now plays the bike horn, once. Clown Boxes no longer get automatically placed in hands. Various other fixes. * Honkbots 1.0.3a * Honkbots 1.0.3.b Fixes. * Honkbots 1.0.4 *Added an emote ping upon assembly creation. *Enabled either Theatre or Robotics for access. ((fixing needing both)) *Honkbots are now more forgiving after being hit. **Airhorn stun_attack now deals slight ear damage, for about 5 seconds. **Cardboard no longer drops upon death. Robot arms have 50% chance. **Using a new get_sfx() list when emagged. **Optimization and other minor fixes. * Honkbots 1.0.4.a Missed it. * Honkbots 1.0.4.b use(1) and (client) * Honkbots 1.0.4.c Moved proc * Honkbots 1.0.5 *Code Optimization *Renaming w/ Pen (how could I even forget this) *Assembly Defines I'm afraid I'm simply out of my depth with the suggested use(1) rework. * Honkbots 1.0.5.c Reworked cardboard stamping. It now works in the hands and on the ground, either solo or in stacks, and prevent itself being used in backpacks. * Honkbots 1.0.5.d Final * Honkbots 1.0.5.e comment * 1.0.5.f Optimization * Honkbots 1.0.5.g Missed requested stuff * Honkbots 1.0.6 Requested changes. * Honkbots 1.0.6a Oops. * Honkbots 1.0.6.c Bugfix - Prevent building in backpacks. Make sure they spawn on turf. * Honkbots 1.0.7 one less spawn(0) flag optimization else return ..() * Honkbots 1.0.7.a Get rids of a lot of client checks at the cost of automatic AI retoration. * Honkbots 1.0.7.b Added judgment_criteria() changed assess_threat to use judgment * Honkbots 1.0.7.c final = NONE
49 lines
1.7 KiB
Plaintext
49 lines
1.7 KiB
Plaintext
/*ALL DEFINES FOR AIS, CYBORGS, AND SIMPLE ANIMAL BOTS*/
|
|
|
|
#define DEFAULT_AI_LAWID "default"
|
|
|
|
//Bot defines, placed here so they can be read by other things!
|
|
#define BOT_STEP_DELAY 4 //Delay between movemements
|
|
#define BOT_STEP_MAX_RETRIES 5 //Maximum times a bot will retry to step from its position
|
|
|
|
#define DEFAULT_SCAN_RANGE 7 //default view range for finding targets.
|
|
|
|
//Mode defines
|
|
#define BOT_IDLE 0 // idle
|
|
#define BOT_HUNT 1 // found target, hunting
|
|
#define BOT_PREP_ARREST 2 // at target, preparing to arrest
|
|
#define BOT_ARREST 3 // arresting target
|
|
#define BOT_START_PATROL 4 // start patrol
|
|
#define BOT_PATROL 5 // patrolling
|
|
#define BOT_SUMMON 6 // summoned by PDA
|
|
#define BOT_CLEANING 7 // cleaning (cleanbots)
|
|
#define BOT_REPAIRING 8 // repairing hull breaches (floorbots)
|
|
#define BOT_MOVING 9 // for clean/floor/med bots, when moving.
|
|
#define BOT_HEALING 10 // healing people (medbots)
|
|
#define BOT_RESPONDING 11 // responding to a call from the AI
|
|
#define BOT_DELIVER 12 // moving to deliver
|
|
#define BOT_GO_HOME 13 // returning to home
|
|
#define BOT_BLOCKED 14 // blocked
|
|
#define BOT_NAV 15 // computing navigation
|
|
#define BOT_WAIT_FOR_NAV 16 // waiting for nav computation
|
|
#define BOT_NO_ROUTE 17 // no destination beacon found (or no route)
|
|
|
|
//Bot types
|
|
#define SEC_BOT 1 // Secutritrons (Beepsky) and ED-209s
|
|
#define MULE_BOT 2 // MULEbots
|
|
#define FLOOR_BOT 4 // Floorbots
|
|
#define CLEAN_BOT 8 // Cleanbots
|
|
#define MED_BOT 16 // Medibots
|
|
#define HONK_BOT 32 // Honkbots & ED-Honks
|
|
|
|
//AI notification defines
|
|
#define NEW_BORG 1
|
|
#define NEW_MODULE 2
|
|
#define RENAME 3
|
|
#define AI_SHELL 4
|
|
#define DISCONNECT 5
|
|
|
|
//Assembly defines
|
|
#define ASSEMBLY_FIRST_STEP 0
|
|
#define ASSEMBLY_SECOND_STEP 1
|