Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

code related to player attach to veichle

- - - - - tag_mg tag_player 3dmodels

  • Please log in to reply
8 replies to this topic

#1
OFFLINE   twt_thunder

twt_thunder

    Regular Member

  • Members
  • PipPipPip
  • 68 posts
13
A step in the right direction
  • LocationNorway

Just wonder if the player attach to tag_mg or tag_player on the tanks? or both?
Need to know this for my modelling biggrin.gif



#2
OFFLINE   TheSilencerPL

TheSilencerPL

    Advanced Member

  • Management
  • PipPipPipPip
  • 3098 posts
216
On the road to fame
  • LocationPoland

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;
    }


#3
OFFLINE   twt_thunder

twt_thunder

    Regular Member

  • Members
  • PipPipPip
  • 68 posts
13
A step in the right direction
  • LocationNorway

 

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 ;)


#4
OFFLINE   TheSilencerPL

TheSilencerPL

    Advanced Member

  • Management
  • PipPipPipPip
  • 3098 posts
216
On the road to fame
  • LocationPoland

Good luck :)



#5
OFFLINE   twt_thunder

twt_thunder

    Regular Member

  • Members
  • PipPipPip
  • 68 posts
13
A step in the right direction
  • LocationNorway

well still have a bit todo, but its gonna be something like this:

Attached File  gold_transport.png   162.18KB   0 downloads



#6
OFFLINE   TheSilencerPL

TheSilencerPL

    Advanced Member

  • Management
  • PipPipPipPip
  • 3098 posts
216
On the road to fame
  • LocationPoland

hehe, nice :)



#7
OFFLINE   twt_thunder

twt_thunder

    Regular Member

  • Members
  • PipPipPip
  • 68 posts
13
A step in the right direction
  • LocationNorway

released now with the other blitz

 

http://forums.warche...9489#post519489


Edited by twt_thunder, 18 January 2015 - 05:12 PM.


#8
OFFLINE   twt_thunder

twt_thunder

    Regular Member

  • Members
  • PipPipPip
  • 68 posts
13
A step in the right direction
  • LocationNorway

forget it, there is some error on the angles.. it runs sideways :D



#9
OFFLINE   twt_thunder

twt_thunder

    Regular Member

  • Members
  • PipPipPip
  • 68 posts
13
A step in the right direction
  • LocationNorway

Fixed now!

 

http://forums.warche...ll=1#post519823






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users