Author Topic: [2238]Converting from C++ to AngelScript piece of code.  (Read 2851 times)

Offline SEGA_RUS

  • Arbeit macht frei
[2238]Converting from C++ to AngelScript piece of code.
« 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?
Skype - sega_75rus

Offline Wipe

  • Rotator
  • Random is god
Re: [2238]Converting from C++ to AngelScript piece of code.
« Reply #1 on: October 09, 2015, 09:56:52 pm »
Porting check_look.dll to AS is horrible idea.
Games are meant to be created, not played...

Offline SEGA_RUS

  • Arbeit macht frei
Re: [2238]Converting from C++ to AngelScript piece of code.
« Reply #2 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.
Skype - sega_75rus

Offline Wipe

  • Rotator
  • Random is god
Re: [2238]Converting from C++ to AngelScript piece of code.
« Reply #3 on: October 09, 2015, 10:38:13 pm »
Strip that code from dll and recompile?
Games are meant to be created, not played...

Offline SEGA_RUS

  • Arbeit macht frei
Re: [2238]Converting from C++ to AngelScript piece of code.
« Reply #4 on: October 11, 2015, 10:51:53 am »
Strip that code from dll and recompile?
Yes.
Skype - sega_75rus