Comments (2)
Yet another data id:
In CMDRECV_stop.cpp the following data address are:
0x00665580 = u16* orders_dat_requirement_offsets[0xbd] in orders_dat namespace
0x0066558E - orders_dat_requirement_offsets[OrderId::ReaverStop];
0x006655E8 - orders_dat_requirement_offsets[OrderId::CarrierStop];
0x00665582 - orders_dat_requirement_offsets[OrderId::Stop];
0x0066FF60 - u32 dat_req_last_error
0x00514CF8 - orders_dat_requirements[]
Orders.dat unused2 is "secondary order"
(Debug/Assert only)
Orders.dat unused3 is "Non-subunit"
(Debug only)
Orders.dat unused5 is "Subunit can use"
(Debug only)
Orders.dat unused12 is "Order requires moving"
Also:
0049A480 = CanTargetSelf() // esi Unit *unit, edx order - PS: A hook for this would be cool
from gptp-for-vs2008.
Thank you for your help, Version 4.103 include most of that.
I renamed the function and put the full code in the helper for CanTargetSelf.
I didn't make a hook because receive_command() was the only function calling this, so changes in the helper would change everything (though it may be better to just create conditions where the result is assumed true for a combination of unitId and orderId, and not call the function at all in this kind of circumstances).
from gptp-for-vs2008.
Related Issues (20)
- Cheat hooks not possible
- Possible Issue with Unit_Train hook HOT 3
- Consume max energy comparison is incorrect HOT 1
- Some Issues HOT 1
- Optical Flare crashes the game when cast HOT 4
- Medic crashes the game when ordered to attack in a group HOT 2
- Create CGame struct HOT 1
- Canceling all units in carrier's queue crashes the game HOT 2
- Recharge Shields hook is non-functional HOT 1
- Defensive Matrix overlay persists after effect ends HOT 1
- Infestation hook cause crash HOT 2
- Infestation hook and AI behavior HOT 5
- Update in progress, currently instable HOT 2
- Util hooks trouble with multiplayer HOT 2
- Stats panel display inject is missing HOT 2
- Cancelling research crashes the game when Cancel Research hook is enabled HOT 1
- Mistake in building_morph hook HOT 1
- Mistake in building_morph.cpp HOT 1
- This is the old version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gptp-for-vs2008.