119 |
#include <amxmisc> |
#include <amxmisc> |
120 |
#include <fakemeta> |
#include <fakemeta> |
121 |
|
|
122 |
#define VERSION "1.2b2" |
#define VERSION "1.2b3" |
123 |
#define ADMIN ADMIN_LEVEL_A |
#define ADMIN ADMIN_LEVEL_A |
124 |
|
|
125 |
#define TSK_CHKE 50 |
#define TSK_CHKE 50 |
218 |
engfunc( EngFunc_GetAimVector, id, 1, ret ) |
engfunc( EngFunc_GetAimVector, id, 1, ret ) |
219 |
for( new i = 0; i < 3; i++ ) ret[i] = orig[i] + ( ret[i] * 9999 ) |
for( new i = 0; i < 3; i++ ) ret[i] = orig[i] + ( ret[i] * 9999 ) |
220 |
|
|
221 |
new tr = 0 |
engfunc( EngFunc_TraceLine, orig, ret, 0, id, 0 ) |
222 |
engfunc( EngFunc_TraceLine, orig, ret, 0, id, tr ) |
new target = get_tr2( 0, TR_pHit ) |
223 |
new target = get_tr2( tr, TR_pHit ) |
get_tr2( 0, TR_vecEndPos, ret ) |
|
get_tr2( tr, TR_vecEndPos, ret ) |
|
224 |
|
|
225 |
if( 0 < target <= MAXPLAYERS ) |
if( 0 < target <= MAXPLAYERS ) |
226 |
{ |
{ |
573 |
for( i = 0; i < 3; i++ ) |
for( i = 0; i < 3; i++ ) |
574 |
torig[i] = tmpvec[i] + tmpvec2[i] * j |
torig[i] = tmpvec[i] + tmpvec2[i] * j |
575 |
|
|
576 |
new tr = 0 |
engfunc( EngFunc_TraceLine, tmpvec, torig, 0, id, 0 ) |
577 |
engfunc( EngFunc_TraceLine, tmpvec, torig, 0, id, tr ) |
get_tr2( 0, TR_vecEndPos, trace_ret ) |
|
get_tr2( tr, TR_vecEndPos, trace_ret ) |
|
578 |
|
|
579 |
if( get_distance_f( trace_ret, torig ) ) break |
if( get_distance_f( trace_ret, torig ) ) break |
580 |
if( !_trace_hull( torig, HULL_HUMAN ) ) safe = true |
if( !_trace_hull( torig, HULL_HUMAN ) ) safe = true |
593 |
case 2 : torig[i] = orig[i] - ( i == 2 ? 80 : 40 ) |
case 2 : torig[i] = orig[i] - ( i == 2 ? 80 : 40 ) |
594 |
} |
} |
595 |
|
|
596 |
new tr2 = 0 |
engfunc( EngFunc_TraceLine, tmpvec, torig, 0, id, 0 ) |
597 |
engfunc( EngFunc_TraceLine, tmpvec, torig, 0, id, tr2 ) |
get_tr2( 0, TR_vecEndPos, trace_ret ) |
|
get_tr2( tr2, TR_vecEndPos, trace_ret ) |
|
598 |
|
|
599 |
if( !_trace_hull( torig, HULL_HUMAN ) && !get_distance_f( trace_ret, torig ) ) safe = true |
if( !_trace_hull( torig, HULL_HUMAN ) && !get_distance_f( trace_ret, torig ) ) safe = true |
600 |
|
|