Jump to content
  • Advertisement

Alex Pavel

Member
  • Content Count

    9
  • Joined

  • Last visited

Community Reputation

108 Neutral

About Alex Pavel

  • Rank
    Newbie
  1. Alex Pavel

    Compile files with launcher

    My game use lzo compression.   i want to compile eix file with my launcher source, because i don't want to be decompressed.
  2. Hi dev's How can i compile some files with my launcher i talk about lzo index files.
  3. Hi dev's How can i apply transformation matrix to mesh?(in granny2)
  4. Hi dev's I have some problem with PyModule_AddIntConstant because max value for this function si long how can i make this unsigned long long?
  5. Alex Pavel

    Need some help to create a new function.

    D3DXVECTOR3 v3Distance = c_rv3TargetPosition - v3MainPosition; D3DXVec3Normalize(&v3Distance, &v3Distance); ... // the player jumps if( missed_the_target ) player_position = target_position - 230.0f * v3Distance; Thanks i will try this :D
  6. Alex Pavel

    Need some help to create a new function.

    The video , first scene is in my game and 2th scene is from official servers, i want to do Like official server. Without that function witch i need , player jumps forward with 230f and miss the target function need to move player backward with 230f-distance between target and player.
  7. Alex Pavel

    Need some help to create a new function.

    I don't want to warp may player to target. I have an animation this animation jump my player in air and go with 230f forward and if i am closer than 230f from target i miss the hit here is a video And the function witch i have poste teleport my player to target , i think it will be helpfull because take the main coord and target coord.
  8. Alex Pavel

    Need some help to create a new function.

    Hi , yes if player is closer than 20f i want to teleport it back with 10f so distance between player and target will be 30f. Sorry for wrong section i am new :D Move this topic please.
  9. Hi dev's I need some help to create a new function witch can move my player with some radians back. I have a function witch warp my player to target but i want to to move my player like if distance between my player and target is less then 20.0f to warp my player back with 10.0f Function:   void CActorInstance::ProcessMotionEventWarp(const CRaceMotionData::TMotionEventData * c_pData) { if (CRaceMotionData::MOTION_EVENT_TYPE_WARP != c_pData->iType) return; // FIXME : TMotionWarpEventData? ? ?? - [levites] static const float sc_fDistanceFromTarget = 270.0f; if (m_kFlyTarget.IsValidTarget()) { D3DXVECTOR3 v3MainPosition(m_x, m_y, m_z); const D3DXVECTOR3 & c_rv3TargetPosition = __GetFlyTargetPosition(); D3DXVECTOR3 v3Distance = c_rv3TargetPosition - v3MainPosition; D3DXVec3Normalize(&v3Distance, &v3Distance); TPixelPosition DestPixelPosition = c_rv3TargetPosition - (v3Distance * sc_fDistanceFromTarget); IBackground& rkBG=GetBackground(); if (!rkBG.IsBlock(DestPixelPosition.x, -DestPixelPosition.y)) SetPixelPosition(DestPixelPosition); LookAt(c_rv3TargetPosition.x, c_rv3TargetPosition.y); __OnWarp(); } else {} }
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!