Тема: [mod_sa] Scraper
Показать сообщение отдельно

  #10  
Старый 30.05.2013, 12:52
BaHeK
Познающий
Регистрация: 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);
}
}
}
в

Цитата:

cheat_generic.h
в самый конец

Цитата:

void cheat_handle_scraper ();
дальше в

Цитата:

cheat.h
ищи ето

Цитата:

struct cheat_state_generic
{
и здесь

Цитата:

int scraper;
в

Цитата:

cheat.cpp
ищи

Цитата:

cheat_handle_emo( info, NULL, time_diff );
после вот ето

Цитата:

cheat_handle_scraper();

если есть твик бар то там вот так

Цитата:

TwAddVarRW(twBar_SPNewCheats, "Scraper", TW_TYPE_BOOLCPP, &cheat_state->_generic.scraper,NULL);
 
Ответить с цитированием