03.05.2015, 13:46
Today I received a big update to y_iterate: https://github.com/Misiur/YSI-Includ...3e80f368746905
Quote:
New iterators: "Vehicle" - Any vehicle created on the server. "LocalVehicle" - Any vehicle created in the current script. "Actor" - Any actor created on the server (0.3.7+). "LocalActor" - Any actor created in the current script. "Powers(base)" - Loop through a power series: foreach (new i : Powers(2)) { // 1, 2, 4, 8, 16, ... } "Fib()" - Fibonacci sequence. Can't be nested. "Random(count, min = 0, max = cellmax)" - "Count" random numbers between "min" and "max". If only one range parameter is given, it is the max, if two are given, they are "min, max". Can't be nested. "Null(arr[])" - Every index in to the given array where the slot is zero. "NonNull(arr[])" - Every index in to the given array where the slot is not zero. "Until(value, arr[])" - Loop through the array until the given value is hit. "Filter(value, arr[])" - Every index in to the given array where the slot equals "value". New (or improved) compile-time options: "FOREACH_NO_PLAYERS" - Disable "Player". "FOREACH_NO_BOTS" - Disable "NPC", "Bot", and "Charater". "FOREACH_NO_VEHICLES" - Disable "Vehicle", and "LocalVehicle". "FOREACH_NO_ACTORS" - Disable "Actor", and "LocalActor". "FOREACH_NO_LOCALS" - Disable "LocalVehicle" and "LocalActor". "YSI_NO_MASTER" - "Actor" and "LocalActor" are identical, as are "Vehicle" and "LocalVehicle" (no multi-script support, similar to "FIXES_IsSingle"). Other features: "NESTED_ELLIPSIS" supported instead of "Iter_Init" (unless you have 3+ dimensions in the array). Version bump to 41. Simplified script init code vastly. |