[Include] YSI 4
#16

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.

Reply


Messages In This Thread
YSI 4 - by Misiur - 14.04.2015, 14:22
Re: YSI 4 - by Emmet_ - 14.04.2015, 18:04
Re: YSI 4 - by Crayder - 14.04.2015, 22:09
Re: YSI 4 - by $$inSane - 15.04.2015, 04:55
Re : YSI 4 - by DexX39 - 15.04.2015, 07:48
Re: YSI 4 - by Misiur - 16.04.2015, 12:04
Re: YSI 4 - by PaulDinam - 16.04.2015, 13:03
Re: YSI 4 - by Misiur - 16.04.2015, 13:58
Re: YSI 4 - by PaulDinam - 16.04.2015, 21:02
Re: YSI 4 - by Misiur - 16.04.2015, 21:48
Re: YSI 4 - by feheristi97 - 16.04.2015, 22:35
Re: YSI 4 - by Misiur - 16.04.2015, 22:42
Re: YSI 4 - by Ahmad45123 - 17.04.2015, 11:23
Re: YSI 4 - by RaeF - 18.04.2015, 11:48
Re: YSI 4 - by Misiur - 18.04.2015, 11:53
Re: YSI 4 - by Misiur - 03.05.2015, 13:46
Re: YSI 4 - by PT - 03.05.2015, 15:16
Re: YSI 4 - by theYiin - 03.05.2015, 18:29
Re: YSI 4 - by sammp - 03.05.2015, 19:36
Re: YSI 4 - by PT - 03.05.2015, 21:01
Re: YSI 4 - by Crayder - 03.05.2015, 21:39
Re: YSI 4 - by sammp - 03.05.2015, 22:10
Re: YSI 4 - by Crayder - 03.05.2015, 23:30
Re: YSI 4 - by ihatetn931 - 04.05.2015, 01:06
Re: YSI 4 - by RaeF - 04.05.2015, 04:11
Re: YSI 4 - by ihatetn931 - 04.05.2015, 05:00
Re: YSI 4 - by RaeF - 04.05.2015, 08:04
Re: YSI 4 - by ihatetn931 - 04.05.2015, 08:08
Re: YSI 4 - by FernandoLight - 18.05.2015, 19:29
Re: YSI 4 - by Misiur - 20.06.2015, 12:03
Re: YSI 4 - by kristo - 20.06.2015, 12:05
Re: YSI 4 - by Crayder - 20.06.2015, 15:20
Re: YSI 4 - by ball - 20.06.2015, 15:54
Re: YSI 4 - by kristo - 22.06.2015, 20:17
Re: YSI 4 - by Crayder - 23.06.2015, 02:44
Re: YSI 4 - by andyandyy8 - 24.06.2015, 09:25
Re: YSI 4 - by ZZ - 26.06.2015, 16:29
Re: YSI 4 - by Misiur - 26.06.2015, 18:32
Re: YSI 4 - by Misiur - 26.06.2015, 20:55
Re: YSI 4 - by DetoNater - 20.11.2016, 14:51
Re: YSI 4 - by GhostKiller123 - 03.01.2017, 06:36
Re: YSI 4 - by Konstantinos - 03.01.2017, 11:58
Re: YSI 4 - by ThomasTailor93 - 24.01.2017, 19:54
Re: YSI 4 - by PT - 24.01.2017, 19:58
Re: YSI 4 - by ThomasTailor93 - 24.01.2017, 20:12
Re: YSI 4 - by Penguin1997 - 24.01.2017, 21:55
Re: YSI 4 - by PT - 24.01.2017, 23:31
Re: YSI 4 - by ThomasTailor93 - 25.01.2017, 21:18
Re: YSI 4 - by Crayder - 25.01.2017, 21:27
Re: YSI 4 - by xogud807 - 26.01.2017, 01:19
Re: YSI 4 - by ThomasTailor93 - 26.01.2017, 13:48
Re: YSI 4 - by Crayder - 26.01.2017, 19:35
Re: YSI 4 - by Sjn - 19.04.2017, 14:13
Re: YSI 4 - by Freedom. - 28.07.2017, 13:13
Re: YSI 4 - by Misiur - 29.07.2017, 10:54
Re: YSI 4 - by Freedom. - 29.07.2017, 21:37
Re: YSI 4 - by Unrea1 - 31.07.2017, 21:08
Re: YSI 4 - by Y_Less - 01.08.2017, 09:54
Re: YSI 4 - by Unrea1 - 01.08.2017, 22:23
Re: YSI 4 - by Y_Less - 02.08.2017, 14:20
Re: YSI 4 - by Michalec - 06.08.2017, 19:42
Re: YSI 4 - by Misiur - 06.08.2017, 19:43
Re: YSI 4 - by Michalec - 06.08.2017, 19:45
Re: YSI 4 - by Misiur - 06.08.2017, 19:49
Re: YSI 4 - by Michalec - 06.08.2017, 19:56
Re: YSI 4 - by AbyssMorgan - 29.08.2017, 20:18
Re: YSI 4 - by AbyssMorgan - 29.08.2017, 20:24
Re: YSI 4 - by Misiur - 29.08.2017, 20:26
Re: YSI 4 - by Y_Less - 30.08.2017, 22:10
Re: YSI 4 - by Manyula - 25.12.2017, 09:56
Re: YSI 4 - by Y_Less - 27.12.2017, 19:28
Re: YSI 4 - by Misiur - 18.01.2018, 15:30
Re: YSI 4 - by Zeth - 18.01.2018, 15:32
Re: YSI 4 - by Manyula - 25.01.2018, 19:10
Re: YSI 4 - by Y_Less - 27.01.2018, 12:23
Re: YSI 4 - by wallee - 27.01.2018, 12:44
Re: YSI 4 - by sidney123 - 20.08.2018, 11:08
Re: YSI 4 - by 2Col - 20.08.2018, 11:17
Re: YSI 4 - by Y_Less - 20.08.2018, 11:28
Re: YSI 4 - by wallee - 08.09.2018, 06:55
Re: YSI 4 - by James Bob - 27.01.2019, 22:33

Forum Jump:


Users browsing this thread: 4 Guest(s)