Jump to content

JeViCo

Members
  • Posts

    591
  • Joined

  • Last visited

  • Days Won

    1

JeViCo last won the day on April 21 2018

JeViCo had the most liked content!

3 Followers

Recent Profile Visitors

3,412 profile views

JeViCo's Achievements

Mack

Mack (28/54)

102

Reputation

  1. You probably need something like this: function drawStuff( alpha ) local alpha = alpha or 255 local color = tocolor( 255, 255, 255, alpha ) -- draw something end local gAlpha = 0 function fadeExample( ) -- goes from 0 to 255 drawStuff( gAlpha) gAlpha = gAlpha + 0.05 if gAlpha == 255 then removeEventHandler( "onClientRender", root, fadeExample ) end end addEventHandler( "onClientRender", root, fadeExample )
  2. Hi! Try to change your last argument from true to false According to wiki: if set to true after animation the last frame will be frozen, otherwise the animation will end and controls will return
  3. Thank you for mentioning this. I use only 0, 90, 180 & 270 degree rotations so it won't cause problems
  4. Totally forgot about IsInsideColShape function, thank you so much. You saved my day. It solved my problem
  5. Thank you for reply. It works for most objects however it does not when i use narrow objects like this garage door I think that i can use 3-dimensional table for all axis to be 100% sure that objects are not overlapping however i should create 30003 tables to cover the whole map and that's not cool at all. I thought I could solve my problem by using getDistanceBetweenPoints3D, but it all problems comes down to this
  6. You can simplify your getProgress function by using start tick: function getProgress(startTick, time) return (getTickCount() - startTick) / time end -- startTick specifies the starting point -- time - amount of time to use to finish the progress I would recommend you to use metatables to create simultaneous animations
  7. I've recently found out that onClientColshapeHit triggers only when object's center hit the colshape Functions like getElementsWithinColShape and isElementWithinColShape work on the same principle. It's kinda bad because it affects the whole gamemode i make and makes it impossible to complete. I tried to use isLineOfSightClear function however i should use it on each unit of a single object. 9x9x9 object cause performance loss so this is a bad idea. Is there any other ideas?
  8. I wouldn't have thought of it myself. As you would expect from a professional. Your help is invaluable, thank you so much
  9. Is there any way to recreate event that would trigger when the model replacement was finished successfull? My score is to create a small delay between each model replacement. Models consume different amount of time so i can't rely on timers. If i loop through a hundred of models in a row i'll 100% get "not enough memory" error.
  10. Solved. I copied liblua5.1.a library ( /usr/lib/i386-linux-gnu on my device ) next to the Makefile. Also i added -static -L./ flags before the flag -llua5.1 (Makefile)
  11. Up. Am i able to include the missing library as a part of module instead of referring to it?
  12. I've recently tested my module on Debian 9.11 server (VPS hosting) and got this error: MODULE: Unable to load mods/deathmatch/modules/ml_base.so (liblua5.1.so.0: cannot open shared object file: No such file or directory) I compiled and tested it on Ubuntu (local VM via VirtualBox) and it worked perfectly. Did i miss something in makefile? My current Makefile.mak: https://pastebin.com/k0Nhi9ya
×
×
  • Create New...