fix consolidation

add speed buff
This commit is contained in:
Aaron Kimbre 2023-04-09 09:38:56 -05:00
parent 5cdff8bcaf
commit 172b398b7b
2 changed files with 4 additions and 1 deletions

View File

@ -888,6 +888,8 @@ CppScripts::Script* CppScripts::GetScript(Entity* parent, const std::string& scr
script = new SpecialPowerupSpawner(5);
else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_ARMOR-POWERUP-SPAWNER.lua")
script = new SpecialPowerupSpawner(80);
else if (scriptName == "scripts\\ai\\SPEC\\L_SPECIAL_SPEED_BUFF_SPAWNER.lua")
script = new SpecialPowerupSpawner(500);
// handle invalid script reporting if the path is greater than zero and it's not an ignored script
// information not really needed for sys admins but is for developers

View File

@ -19,7 +19,8 @@ void SpecialPowerupSpawner::OnProximityUpdate(Entity* self, Entity* entering, co
SkillComponent* skillComponent;
if (!self->TryGetComponent(eReplicaComponentType::SKILL, skillComponent)) return;
skillComponent->CastSkill(13, entering->GetObjectID());
Game::logger->Log("SpecialPowerupSpawner", "casting skill %i", this->m_SkillId);
skillComponent->CastSkill(this->m_SkillId, entering->GetObjectID());
self->SetVar(u"bIsDead", true);
self->Smash(entering->GetObjectID(), eKillType::SILENT);