You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A couple quick questions about developing on this SDK:
Is there a way to access the a hero's attack range? I see CDotaBaseNPC has a GetAttackRange() function, but I didn't see this for CDotaPlayers, so I was wondering if there is any way of accessing that.
Let's say I want to send a "move" or "attack" command for my local player to a creep unit or hero unit. How would I do that? (I think previously there was a prepareUnitOrders that was devirtualized, is the new method just sending the packet / sendMsg now?).
The text was updated successfully, but these errors were encountered:
1- I would just use the datamap offsets for most things.
2- Yeah you could just send a protobuf, the prepareUnitOrders() hook really wasn't that useful to me. It did get devirtualized, that is correct, so I just removed it. You could also sig the function and call it manually if you really wanted, and honestly could get away with hardhooking it on linux.
Also understand that CDotaPlayers do not have an attack range, the CBasePlayer/CDotaPlayer is just an "eye in the sky" that can send orders to heroes.
I learned the hardway awhile ago about the CDotaPlayer and CDotaBaseNPC while reversing (which I suck at) lol.
Looks like I can just iterate on the entitylist and match that to my CDotaPlayer to find the relevant CDotaBaseNPC for my hero.
I'll use the datamap offset most likely for all these CBaseNPC / hero offsets, unless the SDK has a getter function already.
How would I go about sending a protobuf directly and not hooking prepareUnitOrders()? I can probably call prepareUnitOrders (if that's easier), but I'd imagine that it'd be a lot harder to send a protobuf directly (for code maintenance reasons when there are updates). But I don't know.
A couple quick questions about developing on this SDK:
Is there a way to access the a hero's attack range? I see CDotaBaseNPC has a GetAttackRange() function, but I didn't see this for CDotaPlayers, so I was wondering if there is any way of accessing that.
Let's say I want to send a "move" or "attack" command for my local player to a creep unit or hero unit. How would I do that? (I think previously there was a prepareUnitOrders that was devirtualized, is the new method just sending the packet / sendMsg now?).
The text was updated successfully, but these errors were encountered: