mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 22:20:33 +00:00
Do not spawn blood vfx on player if hit fader is enabled
This commit is contained in:
parent
b6abfb0145
commit
4086bc4848
@ -2936,6 +2936,9 @@ namespace MWWorld
|
|||||||
|
|
||||||
void World::spawnBloodEffect(const Ptr &ptr, const Vector3 &worldPosition)
|
void World::spawnBloodEffect(const Ptr &ptr, const Vector3 &worldPosition)
|
||||||
{
|
{
|
||||||
|
if (ptr.getRefData().getHandle() == "player" && Settings::Manager::getBool("hit fader", "GUI"))
|
||||||
|
return;
|
||||||
|
|
||||||
int type = ptr.getClass().getBloodTexture(ptr);
|
int type = ptr.getClass().getBloodTexture(ptr);
|
||||||
std::string texture;
|
std::string texture;
|
||||||
switch (type)
|
switch (type)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user