List of bugs and suggestions

Drake

  • Beta Tester Emeritus
  • Posts: 287
Re: List of bugs and suggestions
« Reply #30, on July 17th, 2016, 12:13 AM »
Quote from Stormeus on July 16th, 2016, 07:44 PM
Quote from Murdock on August 30th, 2015, 01:07 AM
  • A player can still be killed after applying all immunity flags
I can't reproduce this one. The only scenario I can get something like this to happen is if the immunity flags are set, the player uses /kill and respawns without resetting the immunity flags, which is intended behavior.
This was fixed by maxorator a month ago on my request.

Whitie

  • Newbie
  • Posts: 9

Kewun

  • Hero Member
  • Posts: 785

rww

  • VC:MP Beta Tester
  • LU-DM Team
  • Posts: 403
Re: List of bugs and suggestions
« Reply #33, on August 13th, 2016, 12:53 AM »
Quote
Having chainsaws as custom weapons does not work, the weapon plays the chainsaw animation but behaves as baseball bat.
idk, but now, I tested with @Xenon, and all with custom chainsaw works good.
Re: List of bugs and suggestions
« Reply #34, on January 6th, 2017, 09:32 AM »
I found bug with MVL.. We can enter to custom BF Injection only from passenger seat side, and can't enter to passenger seat.

Join to LU-DM Team Discord: https://discord.gg/PFwem6J

Eduardovich

  • New Member
  • Posts: 2
Re: List of bugs and suggestions
« Reply #35, on January 18th, 2017, 11:32 PM »
Devs, are you OMG or what? Why I can't use math library of squirrel?
Code: [Select]
AN ERROR HAS OCCURED [the index 'math' does not exist]

jWeb

  • Full Member
  • Posts: 145

Thijn

  • VC:MP Beta Tester
  • Posts: 1,687
Re: List of bugs and suggestions
« Reply #37, on January 19th, 2017, 07:27 AM »
Quote from Eduardovich on January 18th, 2017, 11:32 PM
Devs, are you OMG or what? Why I can't use math library of squirrel?
Code: [Select]
AN ERROR HAS OCCURED [the index 'math' does not exist]
Because you need to just use the functions provided by it. Of course there's a math library.

EK.IceFlake

  • Hero Member
  • "We are the champions my fellahs" - Sufyan/VK.SuFy
  • Posts: 1,761
Re: List of bugs and suggestions
« Reply #38, on January 19th, 2017, 01:57 PM »
Quote from Eduardovich on January 18th, 2017, 11:32 PM
Devs, are you OMG or what? Why I can't use math library of squirrel?
Code: [Select]
AN ERROR HAS OCCURED [the index 'math' does not exist]
The math library is very abstracted, which means that you could use all math functions without the 'Math.' prefix

KAKAN

  • Wiki Contributor
  • Posts: 3,340
oh no

jWeb

  • Full Member
  • Posts: 145
Re: List of bugs and suggestions
« Reply #40, on January 19th, 2017, 05:54 PM »Last edited on January 19th, 2017, 06:02 PM
Quote from EK.IceFlake on January 19th, 2017, 01:57 PM
The math library is very abstracted, which means that you could use all math functions without the 'Math.' prefix
Quote from KAKAN on January 19th, 2017, 05:04 PM

Quote from EK.IceFlake on January 19th, 2017, 01:57 PM
The math library is very abstracted, which means that you could use all math functions without the 'Math.' prefix
off-topic: This makes the Squirrel in-efficient too :p


Neither one of you are correct!

a) Please refresh you memory on what abstract means in programming or in general.
b) They're efficient because they don't have to push the root table on the stack, push a 'math' string to pop the math table on the stack, then push the function name on the stack then pop the function object from the math table and remove the math table from the stack and finally invoke the actual function. Basically having a man in the middle to slow things down.

Code: [Select]
math <- {
    abs = ::abs,
    acos = ::acos,
    asin = ::asin,
    atan = ::atan,
    atan2 = ::atan2,
    ceil = ::ceil,
    cos = ::cos,
    exp = ::exp,
    fabs = ::fabs,
    floor = ::floor,
    log = ::log,
    log10 = ::log10,
    pow = ::pow,
    rand = ::rand,
    sin = ::sin,
    sqrt = ::sqrt,
    srand = ::srand,
    tan = ::tan
}
// dummy code to allow the CPU to cache the program
for (local n = 0, x = 1; n < 10000000; ++n) {
    x = (n % (n / x)) + 1;
}
// benchmark scoped math functions
local time_1 = clock();
for (local n = 0; n < 10000000; ++n) {
    n = math.abs(n);
}
local end_1 = clock();
// benchmark global math functions
local time_2 = clock();
for (local n = 0; n < 10000000; ++n) {
    n = abs(n);
}
local end_2 = clock();
// output results
print("Scoped math functions: " + (end_1 - time_1));
print("Global math functions: " + (end_2 - time_2));

Code: [Select]
[SCRIPT]  Scoped math functions: 2.305
[SCRIPT]  Global math functions: 1.976

Xmair

  • Wiki Contributor
  • Posts: 953

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

Roman

  • New Member
  • Posts: 2

vito

  • Sr. Member
  • Posts: 404
Re: List of bugs and suggestions
« Reply #43, on March 24th, 2017, 11:37 AM »Last edited on April 19th, 2017, 10:54 AM
Suggestions:
1) Let server to read interior ID of player to detect so-called "wallhack".
2) Clientside function to rotate 2d object
3) Clientside player.Angle (at least for read-only) its very useful for alot of things.
4) Clientside radar markers
5) Since we have a nice clientside gui is it possible to add option to hide native gui (radar, health, weapon, wanted level and so on)

Bugs:
1) Using custom radar disc with opening map in the pause menu make game crash after back to game.
2) Client's memory is not cleaning after reconnect and all unpacked /store/ files will be added to client's memory again and again up to overlimit of application after each reconnection

T800

  • Newbie
  • Posts: 10
Re: List of bugs and suggestions
« Reply #44, on April 2nd, 2017, 06:28 PM »
I don't know, whether it's already suggested anywhere, but i think, implementing SSL support into the sockets plugin would be very useful, for example, when connecting to an IRC server via SSL, etc.