mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-17 05:44:07 +00:00
ped attractor: start
This commit is contained in:
parent
dc444b9ca0
commit
81ea6f0258
7 changed files with 813 additions and 14 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue