Skip to content

Commit

Permalink
add stukabat
Browse files Browse the repository at this point in the history
most of the code is copied from the alien controller. It dive bombs targets or flies in close for a melee attack if not high enough. It retreats into the sky after landing a hit. It can be flinched with any caliber higher than 9mm, which cancels its attack. Perching and corpse feeding not implemented.
  • Loading branch information
wootguy committed Dec 2, 2024
1 parent 15c5c8f commit 998b244
Show file tree
Hide file tree
Showing 7 changed files with 973 additions and 4 deletions.
1 change: 1 addition & 0 deletions dlls/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ set(MONSTER_ALIEN_SRC
monster/CShockRoach.cpp
monster/CShockTrooper.cpp
monster/CSqueakGrenade.cpp
monster/CStukabat.cpp
monster/CTentacle.cpp
monster/CTor.cpp
monster/CVoltigore.cpp
Expand Down
6 changes: 5 additions & 1 deletion dlls/game/skill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ skill_cvar_t skill_cvars[] = {
DECL_SKILL_CVAR(sk_controller_speedball, CVAR_TYPE_AI),
DECL_SKILL_CVAR(sk_controller_dmgball, CVAR_TYPE_DAMAGE),

// stukabat
DECL_SKILL_CVAR(sk_stukabat_health, CVAR_TYPE_HEALTH),
DECL_SKILL_CVAR(sk_stukabat_dmg_bite, CVAR_TYPE_DAMAGE),

// Nihilanth
DECL_SKILL_CVAR(sk_nihilanth_health, CVAR_TYPE_HEALTH),
DECL_SKILL_CVAR(sk_nihilanth_zap, CVAR_TYPE_DAMAGE),
Expand Down Expand Up @@ -349,7 +353,7 @@ void RefreshSkillData(bool mapSkills) {
hpDict["monster_sitting_scientist"] = gSkillData.sk_scientist_health;
hpDict["monster_snark"] = gSkillData.sk_snark_health;
hpDict["monster_sqknest"] = 100;
hpDict["monster_stukabat"] = gSkillData.sk_controller_health;
hpDict["monster_stukabat"] = gSkillData.sk_stukabat_health;
hpDict["monster_tentacle"] = 4000;
hpDict["monster_torch_ally_repel"] = gSkillData.sk_hgrunt_health;
hpDict["monster_turret"] = gSkillData.sk_turret_health;
Expand Down
4 changes: 4 additions & 0 deletions dlls/game/skill.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ struct skilldata_t
float sk_controller_speedball;
float sk_controller_dmgball;

// Stukabat
float sk_stukabat_health;
float sk_stukabat_dmg_bite;

// Nihilanth
float sk_nihilanth_health;
float sk_nihilanth_zap;
Expand Down
1 change: 0 additions & 1 deletion dlls/monster/CController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ class CController : public CTalkSquadMonster
};

LINK_ENTITY_TO_CLASS( monster_alien_controller, CController )
LINK_ENTITY_TO_CLASS( monster_stukabat, CController )

TYPEDESCRIPTION CController::m_SaveData[] =
{
Expand Down
Loading

0 comments on commit 998b244

Please sign in to comment.