X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fdefault%2Fbot.qh;h=98b2ae3df78fb4d970ffd60528d65339b834f687;hb=9ff975c1d5a91d3e27ea7f77c30375b50f2c15a6;hp=f615c040360f7f2bbbc85f296137c60c1c8c2765;hpb=53ae0010b81fef4c01ccea1ab46be6dcd1bfb81f;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/default/bot.qh b/qcsrc/server/bot/default/bot.qh index f615c0403..98b2ae3df 100644 --- a/qcsrc/server/bot/default/bot.qh +++ b/qcsrc/server/bot/default/bot.qh @@ -16,7 +16,7 @@ const int AI_STATUS_JETPACK_FLYING = BIT(9); const int AI_STATUS_JETPACK_LANDING = BIT(10); const int AI_STATUS_STUCK = BIT(11); // Cannot reach any goal -.float isbot; // true if this client is actually a bot +.bool isbot; // true if this client is actually a bot .int aistatus; // Skill system @@ -62,6 +62,7 @@ entity bot_list; .float bot_pickup; .float bot_pickupbasevalue; +.bool bot_pickup_respawning; .float bot_canfire; .float bot_strategytime; @@ -75,14 +76,19 @@ float botframe_spawnedwaypoints; float botframe_nextthink; float botframe_nextdangertime; float bot_cvar_nextthink; -float bot_ignore_bots; // let bots not attack other bots (only works in non-teamplay) + +int _content_type; +#define IN_LAVA(pos) (_content_type = pointcontents(pos), (_content_type == CONTENT_LAVA || _content_type == CONTENT_SLIME)) +#define IN_LIQUID(pos) (_content_type = pointcontents(pos), (_content_type == CONTENT_WATER || _content_type == CONTENT_LAVA || _content_type == CONTENT_SLIME)) +#define SUBMERGED(pos) IN_LIQUID(pos + autocvar_sv_player_viewoffset) +#define WETFEET(pos) IN_LIQUID(pos + eZ * (m1.z + 1)) /* * Functions */ entity bot_spawn(); -float bot_fixcount(); +bool bot_fixcount(); void bot_think(entity this); void bot_setnameandstuff(entity this);