I tried but i still can't shoot it straight with no-zoom
Could someone tell me how to do it ?
PHP Code:
public fw_TraceAttack_Player(ent, attacker, Float:Damage, Float:fDir[3], ptr, iDamageType)
{
if(!Get_BitVar(g_IsAlive, attacker))
return HAM_IGNORED
if(get_user_weapon(attacker) != CSW_AWP)
return HAM_IGNORED
static Float:AimOrigin[3]; fm_get_aim_origin(attacker, AimOrigin)
set_tr2(ptr, TR_vecEndPos, AimOrigin)
return HAM_HANDLED
}
public fw_TraceAttack_World(ent, attacker, Float:Damage, Float:fDir[3], ptr, iDamageType)
{
if(!Get_BitVar(g_IsAlive, attacker))
return HAM_IGNORED
if(get_user_weapon(attacker) != CSW_AWP)
return HAM_IGNORED
static Float:AimOrigin[3]; fm_get_aim_origin(attacker, AimOrigin)
set_tr2(ptr, TR_vecEndPos, AimOrigin)
return HAM_HANDLED
}
and also tried but not work
PHP Code:
public fw_Weapon_PriAttack(Ent)
{
if(pev_valid(Ent) != 2)
return
static Id; Id = get_pdata_cbase(Ent, 41, 4)
if(get_pdata_cbase(Id, 373) != Ent)
return
pev(Id, pev_velocity, g_Velocity[Id])
set_pev(Id, pev_velocity, {0.0, 0.0, 0.0})
}
public fw_Weapon_PriAttack_Post(Ent)
{
if(pev_valid(Ent) != 2)
return
static Id; Id = get_pdata_cbase(Ent, 41, 4)
if(get_pdata_cbase(Id, 373) != Ent)
return
set_pev(Id, pev_velocity, g_Velocity[Id])
}