Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void LoadActors()
- {
- int time = GetTickCount();
- if(!cache_num_rows()) return true;
- for(int idx = 0, ids = 1; idx < cache_num_rows(); ++idx, ++ids)
- {
- cache_get_value_index_int(idx, 0, ActorsInfo[ids][aID]);
- cache_get_value_index_int(idx, 1, ActorsInfo[ids][aSkin]);
- cache_get_value_index_float(idx, 2, ActorsInfo[ids][aCord][0]);
- cache_get_value_index_float(idx, 3, ActorsInfo[ids][aCord][1]);
- cache_get_value_index_float(idx, 4, ActorsInfo[ids][aCord][2]);
- cache_get_value_index_float(idx, 5, ActorsInfo[ids][aCord][3]);
- cache_get_value_index_int(idx, 6, ActorsInfo[ids][aBible]);
- cache_get_value_index_int(idx, 7, ActorsInfo[ids][aAnim]);
- cache_get_value_index(idx, 8, ActorsInfo[ids][aName], 32);
- ActorsInfo[ids][aID] = CreateActor(ActorsInfo[ids][aSkin], ActorsInfo[ids][aCord][0], ActorsInfo[ids][aCord][1], ActorsInfo[ids][aCord][2], ActorsInfo[ids][aCord][3]);
- ApplyActorAnimation(ActorsInfo[ids][aID], ActorsInfo[ids][aBible], ActorsInfo[ids][aAnim], 4.1,1,1,1,1,1);
- new string[70];
- format(string, 70, "NPC: {"#WHITE"}%s\n\n{"#WHITE"}Взаимодействие {"#YL"}H", ActorsInfo[ids][aName]);
- LABELACTORS[ids] = CreateDynamic3DTextLabel(string, c_YELLOW, ActorsInfo[ids][aCord][0], ActorsInfo[ids][aCord][1], ActorsInfo[ids][aCord][2]+1.1,5.0);
- ++TOTALACTORS;
- }
- printf("[Load Actors]: loading %i bad %i (ms)", TOTALACTORS, GetTickCount() - time);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement