Jump to content

code related to player attach to veichle


twt_thunder

Recommended Posts

  • Management

Is this what you mean (the comments)?


    if( entity->client && entity->s.eFlags & EF_MOUNTEDTANK ) {
        // zinx - moved tank hack to here
        // bani - fix tank bb
        // zinx - figured out real values, only tag_player is applied,
        // so there are two left:
        // mg42upper attaches to tag_mg42nest[mg42base] at:
        // 0.03125, -1.171875, 27.984375
        // player attaches to tag_playerpo[mg42upper] at:
        // 3.265625, -1.359375, 2.96875
        // this is a hack, by the way.
        entity->r.currentOrigin[0] += 0.03125 + 3.265625;
        entity->r.currentOrigin[1] += -1.171875 + -1.359375;
        entity->r.currentOrigin[2] += 27.984375 + 2.96875;
    }
Link to comment
Share on other sites

 

Is this what you mean (the comments)?

    if( entity->client && entity->s.eFlags & EF_MOUNTEDTANK ) {
        // zinx - moved tank hack to here
        // bani - fix tank bb
        // zinx - figured out real values, only tag_player is applied,
        // so there are two left:
        // mg42upper attaches to tag_mg42nest[mg42base] at:
        // 0.03125, -1.171875, 27.984375
        // player attaches to tag_playerpo[mg42upper] at:
        // 3.265625, -1.359375, 2.96875
        // this is a hack, by the way.
        entity->r.currentOrigin[0] += 0.03125 + 3.265625;
        entity->r.currentOrigin[1] += -1.171875 + -1.359375;
        entity->r.currentOrigin[2] += 27.984375 + 2.96875;
    }

So there is actually 3 tags then... Hmm have to look a bit more on the tanks.

I am creating a "security" blitz with an mg hole in the roof and I want this to work :)

 

Also planning a redo of my huey with guns on both sides if its possible, we'll see :D

 

thanx a lot!

 
owe you a favor ;)
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...