• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Solved] disconnect when unit attacks

Status
Not open for further replies.
Level 31
Joined
Jul 10, 2007
Messages
6,306
A unit is ordered to a point. That unit has an attack on it, but it is simply ordered to move. An enemy blocks that point off somehow. The unit tries to get there, but then fails. It then attacks an enemy's obstruction in order to unblock and then moves to the point again. Immediately on the order to attack, random player immediately disconnects.


How do I fix this?


The attack is purely done by Blizzard's stuff, all I do is order the unit to move and it does the rest.


I tried catching the order event and ordering the unit to stop and then attack its target, but that didn't help: the player still disconnected.


edit
Fixed! >: O
 
Last edited:
Level 31
Joined
Jul 10, 2007
Messages
6,306
It was that exact problem that I mentioned in the first post. That exact problem caused the desync. Blizzard foolishly orders the unit to attack without ordering the unit to stop first. It is a wtf by Blizzard. I hooked into ACQUIRE_TARGET so that I could stop the attack completely. I'd kill the target unit and order the unit to stop and then move on >: P, thus avoiding the attack altogether. It also seems to work as a near instant block detector (takes like a split second for it to detect a block o-o).
 
Status
Not open for further replies.
Top