MisterDeath
Частый гость
Дата регистрации: Nov 2010
Проживает: asd
Сообщений: 91
Возраст: 28
Рейтинг
|
Crosshair size depends of the speed
What is bad ? ( sorry bad english )
C++ Source Code:
1 | cl_entity_t *player = gEngfuncs.GetLocalPlayer(); |
2 | vec3_t velocity = player->curstate.velocity; |
6 | int cross_size = velocity[3]; |
9 | x = (ScreenWidth/2)-cross_size+1; |
11 | FillRGBA(x, y, iWidth, iHeight, r, g, b, 255); |
16 | x = (ScreenWidth/2)+cross_size; |
18 | FillRGBA(x, y, iWidth, iHeight, r, g, b, 255); |
24 | y = (ScreenHeight/2)-cross_size+1; |
25 | FillRGBA(x, y, iWidth, iHeight, r, g, b, 255); |
31 | y = (ScreenHeight/2)+cross_size; |
32 | FillRGBA(x, y, iWidth, iHeight, r, g, b, 255); |
The crosshair size not change the size ( the size depend of the client velocity )
__________________
hl 4 ever
Сообщить модератору | | IP: Записан
Сообщение: 114064
|