|
Neue Engine Features |
Top Previous Next |
|
ent_pvs (entity_number, mode)
Diese Anweisung liefert einen Pointer auf eine bestimmte Entity in der Liste der potentiell sichtbaren (transparenten oder nicht-transparenten) Entities, wodurch auf alle potentiell sichtbaren Entities zugegriffen werden kann.
var opaque_ents = 0; var transparent_ents = 0; var total_ents = 0;
// counts the number of opaque and transparent entities and displays the results on the screen function count_ents_startup() { wait (-1); int i = 1; you = ent_pvs(i, 0); // retrieve first opaque entity while (you) // repeat until all the opaque entities are counted { i++; opaque_ents += 1; you = ent_pvs(i, 0); // get the following opaque entity } i = 1; you = ent_pvs(i, 1); // retrieve first transparent entity while (you) // repeat until all the transparent entities are counted { i++; transparent_ents += 1; you = ent_pvs(i, 1); // get the following transparent entity } total_ents = opaque_ents + transparent_ents; }
PANEL* test_pan = { digits(50, 50, 4, *, 1, opaque_ents); digits(50, 70, 4, *, 1, transparent_ents); digits(50, 90, 4, *, 1, total_ents); flags = visible; }
MED Verbesserungen
MED unterstützt nun ein zweites UV set auf Skins, z.B. für Shadow Mapping. Dieses wird ebenfalls in der MDL7 Datei gespeichert.
Mouse_pointer Verbesserungen
Die mouse_pointer Variable unterstützt nun alle verfügbaren Windows Mauszeiger. Setzen Sie mouse_pointer auf Werte zwischen 1 und 30, um die entsprechende Bitmap zu sehen.
function mouse_startup() { mouse_mode = 2; mouse_pointer = 3; // play with this value while (1) { vec_set(mouse_pos, mouse_cursor); wait(1); } }
|