Match Jimmy controller arithmetic and facing to original probes
This commit is contained in:
1 parent
42ea2b8cd5
commit
0e2f426d42
60 files changed
+6027
-48
No files matched your search
@@ -0,0 +1,19 @@
|
||||
/* Full copied439900 through439E2D, synthetic destination writer/velocity/body,
|
||||
no camera tail, body or game entrypoint. */
|
||||
static Vec destination;static int writes;
|
||||
static void TC set_destination(void*self,float x,float y,float z){(void)self;destination=(Vec){x,y,z,0};writes++;}
|
||||
static void one(int up,int down,int left,int right,float speed,int ground,float forward,float backward){
|
||||
unsigned char*g=reset();OF(0x6c8)=speed;OF(0x6bc)=30;OF(0x6c0)=35;OF(0x6c4)=600;
|
||||
OF(0x7ec)=forward;OF(0x7f0)=backward;*(short*)(object+0x7c4)=1;GF(g,0x228)=45;supported=ground;
|
||||
*AT(0x50985e)=up;*AT(0x509860)=down;*AT(0x50985d)=left;*AT(0x50985f)=right;writes=0;
|
||||
((void(TC*)(void*,float))AT(0x439900))(object,1.f/60);
|
||||
printf("TARGET in=%d,%d,%d,%d,%.9g,%d,%.9g,%.9g out=%.9g,%.9g,%.9g,%d\n",up,down,left,right,speed,ground,forward,backward,destination.x,destination.y,destination.z,writes);
|
||||
}
|
||||
int main(void){
|
||||
setup();game_table[0x36c/4]=(uintptr_t)set_destination;
|
||||
one(0,0,0,0,300,0,-40,10);one(1,0,0,0,300,0,-40,10);one(0,1,0,0,300,0,-40,10);one(1,1,0,0,300,0,-40,10);
|
||||
one(0,0,1,0,300,0,-40,10);one(0,0,0,1,300,0,-40,10);one(1,0,1,0,300,0,-40,10);
|
||||
one(0,1,0,1,300,0,-40,10);one(0,1,0,0,0,1,-40,10);one(1,0,0,0,700,1,-40,10);
|
||||
one(1,0,0,0,300,0,0,0);one(0,1,0,0,300,0,-13,7);
|
||||
puts("JIMMY_AIR_TARGETS_COMPLETE");return 0;
|
||||
}
|
||||
Reference in new issue
Block a user