mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 03:12:36 +01:00
Script: Correct colour/size for object-radar-blips
This commit is contained in:
parent
635d10abfa
commit
270b0ce8be
@ -152,15 +152,19 @@ inline BlipData& createObjectBlip(const ScriptArguments& args, GameObject* objec
|
||||
switch(object->type()) {
|
||||
case GameObject::Vehicle:
|
||||
data.type = BlipData::Vehicle;
|
||||
data.colour = 0; // @todo 4 in Vice City
|
||||
break;
|
||||
case GameObject::Character:
|
||||
data.type = BlipData::Character;
|
||||
data.colour = 1; // @todo 4 in Vice City
|
||||
break;
|
||||
case GameObject::Pickup:
|
||||
data.type = BlipData::Pickup;
|
||||
data.colour = 6; // @todo 4 in Vice City
|
||||
break;
|
||||
case GameObject::Instance:
|
||||
data.type = BlipData::Instance;
|
||||
data.colour = 6; // @todo 4 in Vice City
|
||||
break;
|
||||
default:
|
||||
data.type = BlipData::Location;
|
||||
@ -168,7 +172,9 @@ inline BlipData& createObjectBlip(const ScriptArguments& args, GameObject* objec
|
||||
break;
|
||||
}
|
||||
data.target = object->getScriptObjectID();
|
||||
data.display = BlipData::ShowBoth;
|
||||
data.texture = "";
|
||||
data.size = 3;
|
||||
auto blip = args.getState()->addRadarBlip(data);
|
||||
return args.getState()->radarBlips[blip];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user