Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

2 Neutral

1 Follower

About .:HyPeX:.

  • Rank
    Lil' G


  • Gang
    BattleField 3 MTA
  • Location
    Argentina - Cd. Autonoma de Buenos Aires
  • Occupation
    School - Gonna learn Programming & web design
  • Interests
    Programming & web design

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Depends on the method, for the most part, youtube links all have the video name in the web page name. This is mine (Kinda old, but still works): Server addCommandHandler('ls',function(player,cmd,url) local url = url:gsub("www.", "") local url = url:gsub("https://", "") local url = url:gsub("http://", "") if string.find(url:lower(), "youtube.com") then local url = url:gsub('youtube.com','') local url = url:gsub('/watch%?v%=','') if string.find(url,'%&list%=') then outputChatBox('#ff0000youtube playlists are not allowed!',player,255,255,255,true) return
  2. I'm working out an IA which will control a helicopter, and mostly will just keep its rotation within the angles specified. So far said IA does fine when rotation is applied and height, keeping the helicopter suprisingly quiet. However, whenever i add any angle to the X or Y axis.. it works fine for the first.. 3 seconds? then the rotation axis of Y kicks in and it goes to whatever number and the maths no longer check out. (When the Y axis is flipped the X axis is affected aswell) so i'd like to know how can i properly keep them stable in a 0-360 basis.. and not have them flipping arround whe
  3. I found the issue. It was quite a dumb mistake.
  4. While it probably works, it doesnt apply to my case. It checks if anything is in the missile path, but if an object is moving and enters the path after it was fired, it wouldnt work. I.e. It doesnt take into consideration the target's movement.
  5. .:HyPeX:.


    I think id need to run tests, but i belive this should work due to how lua works.
  6. TL;DR, this script calculates two objects and their trajectory and checks if they intersect in any given point, however, it just works sometimes... and sometimes it doesnt. As you can see, the code DOES work, since it creates a marker where it is expected to hit the target (Where the collision warning was triggered), however, i'm able sometimes to just hit the target with my missiles flawlessly and the warning wont trigger. http://i.imgur.com/ha7hS6r.jpg EDIT: Some more images here and here . Script: local pos = localPlayer.position local veh = createVehicle(411, pos.x + 10, pos.
  7. I dont remember (It was over a year ago rofl), but on the new VPS i got this on i didnt have to touch anything and it worked fine. Probably that old one wasnt well set up?
  8. Values are correctly set, so far discovered its some sort of shader issue, 255,0,0 RGB will be red, 255,75,75 will turn blank
  9. Well, for some reason my shaders wont have the colors assigned.. script: dY = -5.3499999046326 dX = -4.4745998382568 Colors = { {255,75,75}, {75,255,75}, {75,75,255}, {255,255,255}, {0,0,0}, {255,255,75}, {255,75,255} } Shaders = {} for i=1,#Colors do Shaders[i] = dxCreateShader("colorShader.fx") local r,g,b = unpack(Colors[i]) --local r,g,b = tostring(r),tostring(g),tostring(b) dxSetShaderValue(Shaders[i],"r",r,g,b,1) dxSetShaderValue(Shaders[i],"g",r,g,b,1) dxSetShaderValue(Shaders[i],"b",r,g,b,1) dxSetShaderValue(Shaders[i],"a",r,g,b,1) end function te
  10. Well ive struggled with text quality for a while now and ive found something weird: Shaders increase text quality. Now, what i want to know is how big the performance impact is. And for those wondering, do a simple try, draw a text into a render target and then place the render target as a texture of the simple shader example. Then proceed to draw both the render and the shader, and the shader will have better quality. (In fact increasing the shader sub pixel increases the quality even a bit more, tho is barely noticeable). So anyone has an idea of how bad the performance impact is of doin
  11. Okay, so i got this working, but for some reason i get very big FPS drops on the first 1-4 loops (starting over), and this affects me becouse i just wanna draw one loop of out if, any idea on this? PD: Just checked, this thingie makes the GTA process go from 800mb to 1800mb RAM usage
  12. And i'm telling you i'm not using them.
  13. I'm not, i looked at them and asked a friend to make something similar, EPG's files are meant to use patters wich i do not want to. But, yeah becouse someone is using a similar shader name tag they're using your files, right?
  • Create New...