diff --git a/dScripts/CppScripts.cpp b/dScripts/CppScripts.cpp index f7faa9aa..5f5f4373 100644 --- a/dScripts/CppScripts.cpp +++ b/dScripts/CppScripts.cpp @@ -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 diff --git a/dScripts/ai/SPEC/SpecialPowerupSpawner.cpp b/dScripts/ai/SPEC/SpecialPowerupSpawner.cpp index a3797af7..5abf9219 100644 --- a/dScripts/ai/SPEC/SpecialPowerupSpawner.cpp +++ b/dScripts/ai/SPEC/SpecialPowerupSpawner.cpp @@ -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);