fodev.net

FOnline Development => Questions and Answers => Topic started by: SEGA_RUS on October 08, 2015, 07:13:39 pm

Title: [2238]Converting from C++ to AngelScript piece of code.
Post by: SEGA_RUS on October 08, 2015, 07:13:39 pm
I really dunno how to implement it to AS.
Code: [Select]
void InitLookup() // generation
{
    uint8 malloc = SIZE_LIN * SIZE_LIN * MAX_ARR * sizeof(char);
    Lookup=malloc;
    for (int y = 0; y < SIZE_LIN; y++) for (int x = 0; x < SIZE_LIN; x++)
      Trace(MAX_TRACE, MAX_TRACE, x, y);
}
Anybody have any ideas?
Title: Re: [2238]Converting from C++ to AngelScript piece of code.
Post by: Wipe on October 09, 2015, 09:56:52 pm
Porting check_look.dll to AS is horrible idea.
Title: Re: [2238]Converting from C++ to AngelScript piece of code.
Post by: SEGA_RUS on October 09, 2015, 10:07:43 pm
Porting check_look.dll to AS is horrible idea.
Yes, but I don't any other way to disable sneak penaulty from wearing armor\weapons.
Title: Re: [2238]Converting from C++ to AngelScript piece of code.
Post by: Wipe on October 09, 2015, 10:38:13 pm
Strip that code from dll and recompile?
Title: Re: [2238]Converting from C++ to AngelScript piece of code.
Post by: SEGA_RUS on October 11, 2015, 10:51:53 am
Strip that code from dll and recompile?
Yes.