
30.05.2013, 12:52
|
|
Познающий
Регистрация: 31.03.2013
Сообщений: 84
С нами:
6903092
Репутация:
58
|
|
делай вот так через cheat_generic.cpp в самый конец
void cheat_handle_scraper ()
{
traceLastFunc( "cheat_handle_scraper()" );
{
cheat_state->_generic.scraper ^= 1;
}
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(-cosf->fCurrentRotation) * 5;
cheat_teleport(coord,0);
}
}
}
в
в самый конец
void cheat_handle_scraper ();
дальше в
ищи ето
struct cheat_state_generic
{
и здесь
в
ищи
cheat_handle_emo( info, NULL, time_diff );
после вот ето
если есть твик бар то там вот так
TwAddVarRW(twBar_SPNewCheats, "Scraper", TW_TYPE_BOOLCPP, &cheat_state->_generic.scraper,NULL);
|
|
|