Commit 7bfe885b authored by AL's avatar AL

added howl effect

parent 9032e10f
......@@ -136,7 +136,7 @@ int CombatManager::ProcessInput(Keyboard::Event in_event) //why does it return
if (in_event.GetCode() == 'K') //for testing
{
BlurManager::AddBlur(1.2f);
EH::AddEffect3D(EH::Effect::GhoulHowl);
}
if (in_event.GetCode() == 'L') //for testing
{
......
......@@ -336,6 +336,22 @@ void EffectHandler::AddEffect3D(Effect e)
EffectHandler::AddEffect3D(e3ds1, L"Media\\Models\\Enemy_hit.obj",true);
break;
}
case Effect::GhoulHowl: //is called from ghoul skill Enrage
{
PositionData posData = { 4.1f, 1.2f, 1.11f, 0.0f, 3.0f * PI / 2.0f,PI / 2.0f };
Effect3DSequence e3ds2;
e3ds2.AddStage({ posData.pos.x + 0.01f,posData.pos.y,posData.pos.z, 1.5f ,0.6f,posData.rot.x,posData.rot.y,posData.rot.z }, 1.0f);
e3ds2.AddStage({ posData.pos.x + 0.01f,posData.pos.y,posData.pos.z, 1.5f ,1.0f,posData.rot.x,posData.rot.y,posData.rot.z }, 0.2f);
e3ds2.AddStage({ posData.pos.x + 0.01f,posData.pos.y,posData.pos.z, 1.5f ,0.0f,posData.rot.x,posData.rot.y,posData.rot.z }, 0.0f);
EffectHandler::AddEffect3D(e3ds2, L"Media\\Models\\Enemy_howl.obj", true);
Effect3DSequence e3ds1;
e3ds1.AddStage({ posData.pos.x,posData.pos.y,posData.pos.z , 1.4f ,0.8f,posData.rot.x,posData.rot.y,posData.rot.z }, 0.65f);
e3ds1.AddStage({ posData.pos.x - 1.0f,posData.pos.y,posData.pos.z,1.4f ,0.0f,posData.rot.x,posData.rot.y,posData.rot.z }, 0.0f);
EffectHandler::AddEffect3D(e3ds1, L"Media\\Models\\Enemy_howl.obj", true);
break;
}
case Effect::PlayerSwordAttack: //is called by class Cut : public Skill (method void Activate())
case Effect::PlayerSwordAttackUpgraded:
{
......
......@@ -206,6 +206,7 @@ public:
GhoulIntentShine_Buff,
GhoulIntentShine_Defence,
GhoulAttack,
GhoulHowl,
PlayerSwordAttack,
PlayerSwordAttackUpgraded,
PlayerSandThrowDamage,
......
......@@ -8,6 +8,7 @@
#include "SceneLight.h"
#include "CameraManager.h"
#include "BlurManager.h"
#include "EffectHandler.h"
class Ghoul_Bite : public Skill
{
......@@ -77,6 +78,7 @@ public:
dynamic_cast<EnemyCombat*>(owner)->SetState(EnemyCombat::State::GhoulRage);
SL::PendDistortion(SL::LightDistortionType::RednessBoost);
CM::PendScenario(CM::Scenario::GhoulRage);
EH::AddEffect3D(EH::Effect::GhoulHowl);
BlurManager::AddBlur(1.4f);
}
};
......
# Blender MTL File: 'None'
# Material Count: 1
newmtl Enemy_howl
Ns 49.300000
Ka 1.000000 1.000000 1.000000
Kd 0.270000 0.400000 1.200000
Ks 0.010000 0.010000 0.010000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2
map_Kd Enemy_howl.png
\ No newline at end of file
# Blender v2.81 (sub 16) OBJ File: ''
# www.blender.org
mtllib Enemy_howl.mtl
o Plane
v -1.000000 0.000000 1.000000
v 1.000000 0.000000 1.000000
v -1.000000 0.000000 -1.000000
v 1.000000 0.000000 -1.000000
vt 0.999900 0.999900
vt 0.000100 0.000100
vt 0.999900 0.000100
vt 0.000100 0.999900
vn 0.0000 1.0000 0.0000
usemtl Enemy_howl
s off
f 2/1/1 3/2/1 1/3/1
f 2/1/1 4/4/1 3/2/1
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment