mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
TraceLine tweaks
This commit is contained in:
parent
8885714465
commit
fc3b165e57
@ -290,7 +290,7 @@ void TraceLine_Post(const float *v1, const float *v2, int fNoMonsters, edict_t *
|
|||||||
CPlayer *pPlayer = GET_PLAYER_POINTER(e->v.owner);
|
CPlayer *pPlayer = GET_PLAYER_POINTER(e->v.owner);
|
||||||
|
|
||||||
for ( int i=0;i<MAX_TRACE;i++){
|
for ( int i=0;i<MAX_TRACE;i++){
|
||||||
if ( util_strncmp( traceData[i].szName,traceData[i].start ? STRING(e->v.classname)+traceData[i].start : STRING(e->v.classname) ,traceData[i].stop) ){
|
if ( util_strncmp( traceData[i].szTa,traceData[i].start ? STRING(e->v.classname)+traceData[i].start : STRING(e->v.classname) ,traceData[i].stop) ){
|
||||||
if ( traceData[i].iAction & ACT_NADE_SHOT ){
|
if ( traceData[i].iAction & ACT_NADE_SHOT ){
|
||||||
pPlayer->saveShot(traceData[i].iId);
|
pPlayer->saveShot(traceData[i].iId);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user