if (cheat_state->_generic.scraper == 1) { struct actor_info *self = actor_info_get( ACTOR_SELF, ACTOR_ALIVE ); self->fCurrentRotation = -pGame->GetCamera()->GetCameraRotation(); float coord[3]; self->base.matrix[4] = sinf(-self->fCurrentRotation); self->base.matrix[5] = cosf(-self->fCurrentRotation); vect3_copy(&self->base.matrix[12], coord); if (KEY_DOWN('W')) { coord[0] += sinf(-self->fCurrentRotation) * 5; coord[1] += sinf(-self->fCurrentRotation) * 5; cheat_teleport(coord,0); } }
int scraper;