summaryrefslogtreecommitdiffstats
path: root/src/core/FileLoader.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-13 10:38:05 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-13 10:38:05 +0200
commit81ea6f0258895e9087e0cb89cbd8bd30346974e2 (patch)
tree5cd55aa0bd44c45ff21d58692ff838cc7187a2e4 /src/core/FileLoader.cpp
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-81ea6f0258895e9087e0cb89cbd8bd30346974e2.tar
re3-81ea6f0258895e9087e0cb89cbd8bd30346974e2.tar.gz
re3-81ea6f0258895e9087e0cb89cbd8bd30346974e2.tar.bz2
re3-81ea6f0258895e9087e0cb89cbd8bd30346974e2.tar.lz
re3-81ea6f0258895e9087e0cb89cbd8bd30346974e2.tar.xz
re3-81ea6f0258895e9087e0cb89cbd8bd30346974e2.tar.zst
re3-81ea6f0258895e9087e0cb89cbd8bd30346974e2.zip
Diffstat (limited to 'src/core/FileLoader.cpp')
-rw-r--r--src/core/FileLoader.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/FileLoader.cpp b/src/core/FileLoader.cpp
index 09c62c35..aaa13c56 100644
--- a/src/core/FileLoader.cpp
+++ b/src/core/FileLoader.cpp
@@ -956,7 +956,7 @@ CFileLoader::LoadCarPathNode(const char *line, int id, int node, bool waterPath)
void
CFileLoader::Load2dEffect(const char *line)
{
- int id, r, g, b, a, type;
+ int id, r, g, b, a, type, ptype;
float x, y, z;
char corona[32], shadow[32];
int shadowIntens, lightType, roadReflection, flare, flags, probability;
@@ -1029,6 +1029,18 @@ CFileLoader::Load2dEffect(const char *line)
effect->attractor.flags = flags;
effect->attractor.probability = probability;
break;
+ case EFFECT_PED_ATTRACTOR:
+ sscanf(line, "%d %f %f %f %d %d %d %d %d %d %f %f %f %f %f %f",
+ &id, &x, &y, &z, &r, &g, &b, &a, &type,
+ &ptype,
+ &effect->pedattr.useDir.x,
+ &effect->pedattr.useDir.y,
+ &effect->pedattr.useDir.z,
+ &effect->pedattr.queueDir.x,
+ &effect->pedattr.queueDir.y,
+ &effect->pedattr.queueDir.z);
+ effect->pedattr.type = ptype;
+ break;
}
CTxdStore::PopCurrentTxd();