Skip to content

Commit

Permalink
pitdrone_speed_spit to control velocity
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikk155 committed Apr 7, 2024
1 parent 9904d57 commit beaf259
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions game/cfg/skills/skill_default.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@
"pitdrone_dmg_spit2": 10,
"pitdrone_dmg_spit3": 15,

"pitdrone_speed_spit1": 900,
"pitdrone_speed_spit2": 900,
"pitdrone_speed_spit3": 1100,

// Hgrunt Ally
"hgrunt_ally_health": 50,

Expand Down
2 changes: 1 addition & 1 deletion src/game/server/entities/NPCs/racex/pitdrone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ void CPitdrone::HandleAnimEvent(MonsterEvent_t* pEvent)
WRITE_BYTE(25); // noise ( client will divide by 100 )
MESSAGE_END();

CPitdroneSpike::Shoot(this, vecSpitOffset, vecSpitDir * 900, UTIL_VecToAngles(vecSpitDir));
CPitdroneSpike::Shoot(this, vecSpitOffset, vecSpitDir * GetSkillFloat( "pitdrone_speed_spit"sv, 900 ), UTIL_VecToAngles(vecSpitDir));

auto ammoSubModel = GetBodygroup(PitdroneBodygroup::Weapons);

Expand Down

0 comments on commit beaf259

Please sign in to comment.