Jump to content


Photo

Hover/Flying Clipping


  • Please log in to reply
2 replies to this topic

#1 Krazy Skittles

Krazy Skittles
  • New Members
  • 4 posts

Posted 17 January 2017 - 04:30 AM

Heya all!

 

I am quite green when it comes to forums so please bare with me and hold the tomatoes!  Now, onto more pressing matters...

 

 

What I'm trying to achieve is having Karsh hover several meters above the water/terrain and only go close to the ground to engage targets.

 

My dilemma involves the 'Surfaces = AIR' in locomotor and its inability to recognize a structure in front of it.  Essentially this causes the unit to happily glide through any building and in rare cases will attack units from within the safety of a structure, that's no good.

 

Now I really hope that I am over thinking this and it's something simple, but hey, we'll see!

 

Here is the locomotor code for Karsh:

 

Locomotor KarshHoverLocomotor
    Surfaces                    = AIR
    MinSpeed                        = 50%
      TurnTime                      = 1500
      TurnTimeDamaged              = 1500
      Acceleration             = 1000  ; 1 second to accelerate to full speed.
    Lift                        = 100%
    LiftDamaged                 = 100%
    Braking              = 1000  ; 1 second to brake from full speed.
    MinTurnSpeed                = 30%
    PreferredHeight             = 25      ; cruise height
    PreferredAttackHeight       = 0 ; attack height
    AllowAirborneMotiveForce     = Yes
    ZAxisBehavior               = SURFACE_RELATIVE_HEIGHT
    Appearance                  = HOVER
    CloseEnoughDist            = 1.5
    AirborneTargetingHeight     = 35
End

 

 



#2 Titan Cronus

Titan Cronus

    Do unto Others...

  • Members
  • 693 posts
  • Location:Ireland
  • Projects:The Battle of the Pelennor Fields Mod.

Posted 17 January 2017 - 10:49 AM

Hey man.

 

It's been a while since I messed around with locomotors but I think it can be done with a "Surfaces = GROUND" locomotor. I think there is something like "ZAxisBehavior" that can be used to make things hover. Maybe try search the locomotor.ini for either "ZAxisBehavior" or "HOVER". This would solve you clipping issue as he would only be able to go where a normal hero could but it would cause issues by removing the swooping to attack and stopping him from going over water and mountians.


Edited by Titan Cronus, 17 January 2017 - 10:50 AM.

Battle of the Pelennor Fields

Made by 1 guy, has 13 Factions, 75+ Heroes, 150+ different units and 200+ Special abilities.

 

http://www.moddb.com...pelennor-fields


#3 Mathijs

Mathijs

    Post-modern Shaman

  • Network Leaders
  • 13,756 posts
  • Projects:Age of the Ring
  • Division:Revora
  • Job:Leader

Posted 17 January 2017 - 04:15 PM

I can't comment on your issue, but I can welcome you to T3A. Welcome!


No fuel left for the pilgrims





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users