summaryrefslogtreecommitdiff
path: root/game/server/tf/bot_npc/bot_npc_mini.cpp
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/tf/bot_npc/bot_npc_mini.cpp
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/server/tf/bot_npc/bot_npc_mini.cpp')
-rw-r--r--game/server/tf/bot_npc/bot_npc_mini.cpp101
1 files changed, 101 insertions, 0 deletions
diff --git a/game/server/tf/bot_npc/bot_npc_mini.cpp b/game/server/tf/bot_npc/bot_npc_mini.cpp
new file mode 100644
index 0000000..a802721
--- /dev/null
+++ b/game/server/tf/bot_npc/bot_npc_mini.cpp
@@ -0,0 +1,101 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+// bot_npc_mini.cpp
+// A NextBot non-player derived actor
+// Michael Booth, March 2011
+
+#include "cbase.h"
+
+#ifdef TF_RAID_MODE
+
+#include "tf_player.h"
+#include "tf_gamerules.h"
+#include "tf_team.h"
+#include "tf_projectile_arrow.h"
+#include "tf_projectile_rocket.h"
+#include "tf_weapon_grenade_pipebomb.h"
+#include "tf_ammo_pack.h"
+#include "tf_obj_sentrygun.h"
+#include "nav_mesh/tf_nav_area.h"
+#include "bot_npc_mini.h"
+#include "NextBot/Path/NextBotChasePath.h"
+#include "econ_wearable.h"
+#include "team_control_point_master.h"
+#include "particle_parse.h"
+#include "CRagdollMagnet.h"
+#include "nav_mesh/tf_path_follower.h"
+#include "bot_npc_minion.h"
+#include "player_vs_environment/monster_resource.h"
+
+
+extern ConVar tf_bot_npc_reaction_time;
+extern ConVar tf_bot_npc_grenade_interval;
+extern float ModifyBossDamage( const CTakeDamageInfo &info );
+
+
+ConVar tf_raid_mini_rocket_boss_health( "tf_raid_mini_rocket_boss_health", "5000", 0/*FCVAR_CHEAT*/ );
+
+
+//-----------------------------------------------------------------------------------------------------
+// The Bot NPC mini-boss
+//-----------------------------------------------------------------------------------------------------
+LINK_ENTITY_TO_CLASS( bot_boss_mini_rockets, CBotNPCMiniRockets );
+PRECACHE_REGISTER( bot_boss_mini_rockets );
+
+
+//-----------------------------------------------------------------------------------------------------
+void CBotNPCMiniRockets::Precache()
+{
+ BaseClass::Precache();
+
+ int model = PrecacheModel( "models/bots/knight/knight_mini.mdl" );
+ PrecacheGibsForModel( model );
+
+ PrecacheScriptSound( "RobotMiniBoss.LaunchRocket" );
+}
+
+
+//-----------------------------------------------------------------------------------------------------
+void CBotNPCMiniRockets::Spawn( void )
+{
+ BaseClass::Spawn();
+
+ SetModel( "models/bots/knight/knight_mini.mdl" );
+
+ int health = tf_raid_mini_rocket_boss_health.GetInt();
+ SetHealth( health );
+ SetMaxHealth( health );
+}
+
+
+//-----------------------------------------------------------------------------------------------------
+// The Bot NPC mini-boss
+//-----------------------------------------------------------------------------------------------------
+LINK_ENTITY_TO_CLASS( bot_boss_mini_nuker, CBotNPCMiniNuker );
+PRECACHE_REGISTER( bot_boss_mini_nuker );
+
+ConVar tf_raid_mini_nuker_boss_health( "tf_raid_mini_nuker_boss_health", "5000", 0/*FCVAR_CHEAT*/ );
+
+
+//-----------------------------------------------------------------------------------------------------
+void CBotNPCMiniNuker::Precache()
+{
+ BaseClass::Precache();
+
+ int model = PrecacheModel( "models/bots/knight/knight_mini.mdl" );
+ PrecacheGibsForModel( model );
+}
+
+
+//-----------------------------------------------------------------------------------------------------
+void CBotNPCMiniNuker::Spawn( void )
+{
+ BaseClass::Spawn();
+
+ SetModel( "models/bots/knight/knight_mini.mdl" );
+
+ int health = tf_raid_mini_nuker_boss_health.GetInt();
+ SetHealth( health );
+ SetMaxHealth( health );
+}
+
+#endif // TF_RAID_MODE