Just a little question, if someone shoots then where does the bullet come from?
self getTagOrigin("tag_eye");
or
eAttacker.origin + ( 0, 0, getHitLocHeight( "gun" ) )
?
The eye. At least that's what I worked with with my CoD Aimbots and it worked fine.
(06-07-2011, 14:11)SuperNovaAO Wrote: [ -> ]The eye. At least that's what I worked with with my CoD Aimbots and it worked fine.
k.. so just
Code:
eAttacker getTagOrigin("tag_eye");
I'll try it, not that it really makes that much of a difference.
would it matter if I put an if statement w/o anything inside the brackets? like this:
Code:
if( !SightTracePassed( attacker_origin, victim_origin, false, undefined ) && isSubStr( sWeapon, "cheytac" ) );
{
}
else
{
damager thread maps\mp\gametypes\_damagefeedback::updateDamageFeedback( typeHit );
}
Code:
if( SightTracePassed( attacker_origin, victim_origin, false, undefined ) && !isSubStr( sWeapon, "cheytac" ) )
{
damager thread maps\mp\gametypes\_damagefeedback::updateDamageFeedback( typeHit );
}
No, but you would've gotten a syntax error from the
; after the if statement.
Also, this code does the same.
(06-07-2011, 14:18)AZUMIKKEL Wrote: [ -> ]Code:
if( SightTracePassed( attacker_origin, victim_origin, false, undefined ) && !isSubStr( sWeapon, "cheytac" ) )
{
damager thread maps\mp\gametypes\_damagefeedback::updateDamageFeedback( typeHit );
}
No, but you would've gotten a syntax error from the ; after the if statement.
Also, this code does the same.
Yeah i've seen that ; already :p, thanks for that.
unknown function? o_O
(06-07-2011, 14:21)iAegle Wrote: [ -> ] (06-07-2011, 14:18)AZUMIKKEL Wrote: [ -> ]Code:
if( SightTracePassed( attacker_origin, victim_origin, false, undefined ) && !isSubStr( sWeapon, "cheytac" ) )
{
damager thread maps\mp\gametypes\_damagefeedback::updateDamageFeedback( typeHit );
}
No, but you would've gotten a syntax error from the ; after the if statement.
Also, this code does the same.
Yeah i've seen that ; already :p, thanks for that.
unknown function? o_O
use /logfile 1 and find out
BulletTracePassed( attacker_origin, victim_origin, false, undefined )
(06-07-2011, 15:40)[CoDBOMod]Nukem Wrote: [ -> ]BulletTracePassed( attacker_origin, victim_origin, false, undefined )
nvm got it, SightTracePasses works aswell
