Jump to content

guix

Members
  • Content Count

    37
  • Joined

  • Last visited

Community Reputation

0 Neutral

About guix

  • Rank
    Rat

Recent Profile Visitors

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

  1. All of you having problems submitting translations or requesting new languages: contact Talidan on IRC: irc://irc.multitheftauto.com/#mta
  2. Obviously it was a mistake.
  3. You can do it with function atan2 Ok it's not easy when you don't know where to start, so here is a little example: function getAnglesBetweenPoints3D( x1, y1, z1, x2, y2, z2 ) x1 = x2 - x1 y1 = y2 - y1 x2 = math.atan2( x1, y1 ) * 57.29578 y2 = math.atan2( z2 - z1, math.sqrt( (x1 * x1) + (y1 * y1) ) ) * 57.29578 return x2, y2 end function displayAngles() local x1, y1, z1, x2, y2, z2 = getCameraMatrix( localPlayer ) local a1, a2 = getAnglesBetweenPoints3D( x1, y1, z1, x2, y2, z2 ) outputChatBox( string.format( "a1
  4. Hello, Using getCameraMatrix, you have the direction vector of where the player is looking
  5. Have you tried deleting gta_sa.set in My Documents/GTA San Andreas User Files
  6. In the tutorial section: https://forum.mtasa.com/viewtopic.php?f=148&t=52868
  7. Yes, that's how I found that push eax's length was 1 byte. I don't understand why you say 2 bytes? And I tried to change that number to 3, 6, really anything between 1 and 10, it's still crashing Also, by looking at other hooks in the same file, I see things like this in comments, for example: HookInstall ( HOOKPOS_CEventVehicleDamageCollision_Bike, (DWORD)HOOK_CEventVehicleDamageCollision_Bike, 6 ); ... void _declspec(naked) HOOK_CEventVehicleDamageCollision_Bike ( ) { // .006B8EC6 DC 1D F8 9E 85 00 fcomp ds:__real@0000000000000000 < Hook >
  8. Hello, I try to make a hook in CAutomobile::ProcessWheel (it's how I named sub_6AA290), however I can't make it work, it crash the game as soon as I join my server. In IDA disassembly, the part I want to hook is this: push eax ; f3 // 0x6AA666 push eax ; f2 // 0x6AA667 push ecx ; f1 // 0x6AA668 lea ecx, [esp+0F8h+m] ; this // 0x6AA669 fstp [esp+0F8h+var_F8] // 0x6AA66D call CMatrix__SetScales // 0x6AA670 CMatrix__SetScales is how I named sub_59AF00, the function prototype is (from what I understand):
  9. guix

    bar exp

    Hello, Press F8, type "debugscript 3" to see if there are errors such as level, Name or Expreq being nil.
  10. guix

    Question - Lua

    Hello, What do you mean? You can use most of Lua's stock functions, as far as I know only the os library has been removed.
  11. I never used regular expressions but it looks like Lua's patterns, only less useful, for example with string.match you can parse a line and store results into variables in a single function call (almost like sscanf). Not bad anyway, it's just not useful for me, might be for others
  12. Hello, you got it close: use sub instead (and add "end" after the if statement) http://codepad.org/9cM8U1zq
  13. Hello, Check in server's config file for setting "fpslimit".
×
×
  • Create New...