Pet stay behind instead of South East

charlie2999

Dalayan Beginner
Hey.
I was wondering if it would be a big deal to change it so that pets follow behind you instead of going to the South East of your current position.

This annoys me quite a bit, are there some advantages of this that I dont see.?.
Always seems to be in the way for me.

Most of the time im moving forwards in a zone and would prefeer him to be behind me and out of the way untill I send him in.

Thanks!
 
Haha.

Seriously though, you have an X coordinate, a Y coordinate, and a heading value between 0 and 2047 (256*8-1). All you need to do is generate a new X and Y from those. Get to it!
 
I have to assume some things to calculate this.

Assuming heading 0 is due north, and 1024 due south

Assuming the charatcter is standing say at x150 and y150.

Assuming pet stands to the SE 10 spots away. The pet would now be at x160,
y160.

If we want to put pet directly behind the character, using the 2047 possible headings and character always standing at x150, y150...

(Note: Please forgive Vb type code...)

Select case CharacterHeading
case is 0 to 128
petX = charX
petY = charY+10

case is 1921 to 2047
petX = charX
petY = charY+10

case is 129 to 384
petX = charX-10
petY = charY+10

case is 385 to 640
petX = charX-10
petY = charY

case is 641 to 896
petX = charX-10
petY = charY-10

case is 897 to 1152
petX = charX
petY = charY-10

case is 1153 to 1408
petX = charX+10
petY = charY-10

case is 1409 to 1664
petX = charX+10
petY = charY

case is 1665 to 1920
petX = charX+10
petY = charY+10

end select

Calculations could be better with more info
 
Last edited:
Heading 0 is north, yes. And pets do currently move 10 by 10 points away (which is more than 10 units of distance, technically).

Also thinking on it I think it would be kind of odd having pets directly behind everyone all the time. Behind and to the left or behind and to the right would probably look better.
 
Or just directly to the left or right. I think ideally it would be a calculation which basically draws a 90 degree angle (curve? whatever) with the heading value of the player (whatever it may be) effectively being at 0 degrees. And then uses that to find discreet x and y coordinates somehow.

The generic behindness check is kinda sorta like that, using ugly math to take two sets of coordinates (yours and the target's, for example) and figure out the number of degrees away one set is from the other with the heading of one being counted as 0 degrees (or maybe it's counted as 180 degrees, idk what I'm looking at here). Except this would be different because the second set of coordinates is what we'd be trying to generate.

Where is Taru and/or Animand.
 
Hmmm...

Well, if the mechanics of the game allows placing pet a set amount of points away from character in a set direction, then all is needed is ..

For directly behind character
PetHeading=CharacterHeading-1024
If PetHeading < 0 then PetHeading = PetHeading+2048
Move the Pet 10 points in that direction and then Change PetHeading again back to face Character or nearest foe or whatever.

For Behind and to the left
PetHeading=(CharacterHeading-1024) +256
If PetHeading < 0 ...
Move the Pet...

For Behind and to the right
PetHeading=(CharacterHeading-1024) -256
If PetHeading < 0 ...
Move the Pet...

I personally would prefer To the right and slightly behind
PetHeading=(CharacterHeading-1024) -384
If PetHeading < 0 ...
Move the Pet...
 
Last edited:
I found out that most of what I needed could be cribbed directly from the behindness calc. Needed some adjusting from people who know a little more than nothing about trig, but all in all another victory for copy+paste.

Now the question is: would the annoyance of having to tell your pet to sit/guard or f9/scroll back view a lot whenever you wanted to hand it something be worth having it at your side whenever in follow mode rather than always to the south-east?
 
Well the next step may be a bit too far but fun to figure.

/cm pet position 1-9

1 being to the right or at 90°
2 as to the right and a bit behind or at 112.5°

Ect adding 22.5° until position 9 being to the left or at 270°

A bit over the top but a nice custom toy for pet classes

Oops was writing this before your last post
 
Last edited:
" Milk attack "... "Yay we won!" "Milk SIT!" that's what i've always done. my pet doesnt always bug out but when it does just simply push sit and problem is solved!
 
There would be some annoyance, although Taru and I have both suggested similar changes. If you are willing to have a command to have the pet behind you, the problem could be solved as easily with a command to have the pet toggle between Southeast and Northwest of you. That alone would easily move your pet out of the way whenever you need without making him circle you when you turn (and annoying your group or raid).

But this goes directly back to the question of how annoying this would be to a player wanting to give his pet something or making pets run in circles when their owners turn. We'd pretty much just need player opinions on developing the functionality, because the crude code above is easily sufficient to the task. No need for fancy math to keep a pet out of your way, just a little fine tuning.

To be honest, even a solution like /cm petside that toggles him being Northwest and Southeast would be highly regarded and a quick fix. A little player polling and testing could hammer out a solution for pet following that everyone likes and is no more difficult than above.
 
I would be happy if there was just a command that made the pet behave as if it turned on auto follow.
But it would be awesome if it was always behind you.
 
Last edited:
I still just think it would look silly to have pets constantly sniffing at their owner's butts all the time. I could try to approximate an auto-follow-like thing, but that's gonna be the same as "directly behind" 99% of the time. Plus having a charm pet always following in the perfect position to stun you when it breaks seems less than ideal. It would solve the handing stuff to pet issue though I guess, as long as people could learn to back up beforehand.

The math for having the pet at your side is relatively simple and already works; I don't think having to add a new command to toggle the pet between SE and NW would really be great. Most people wouldn't know about it, and even for those who did it would be a bit dumb having to toggle it whenever you turn a corner in a dungeon or whatever. Learning to use /pet guard or /pet sit to hand your pet something might be a little more annoying (and enforced), but it doesn't seem to me that pets get stuff handed to them all that frequently.
 
Can you just put pets 5000 feet beneath the world and have them blink in assuming the mage is within range of the mob. who cares about pet kiting or anything like that.
 
Or pet buffing or item-handing, yea!

Auto-follow-style code works well and is extremely simple. Maybe we'll go with that? Would also make pet always try to be in line of sight while in follow mode, anti-charm pet stuck-in-wall-and-summoning-you code.
 
Is there anything you can do to make pets not able to be targeted via fast target/autotarget ?
 
Back
Top Bottom