Weapon offsets?
#1

Where could I find offsets for attaching weapons to a player so they'd look just like "real"? Which dat file should I look at?
Reply
#2

Try this small code in a filterscript.

PHP код:

// When you attach the Object
new object[MAX_PLAYERS];
object[playerid] = SetPlayerAttachedObject(params);
EditPlayerObject(playeridobject[playerid]);



public 
OnPlayerEditAttachedObject(playeridresponse)
{
    if(
response)
    {
        new 
Float:pos[3];
        
GetObjectPos(object[playerid], pos[0], pos[1], pos[2]);
        
printf("Object offset is x = %f | y = %f | z = %f"pos[0], pos[1], pos[2]);
     }

But you have to be good in mathematics for the next part (Getting player pos then do operations to get the offsets), thing I'm not.
Reply
#3

You can attach them in the hand bone with 0 on all offsets, I am pretty sure it will look good.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)