Posts: 1,830
Threads: 104
Joined: Jan 2011
Reputation:
46
06-07-2011, 14:06
(This post was last modified: 06-07-2011, 14:06 by iAegle.)
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" ) )
?
Posts: 3,598
Threads: 265
Joined: Oct 2010
Reputation:
76
The eye. At least that's what I worked with with my CoD Aimbots and it worked fine.
Posts: 1,830
Threads: 104
Joined: Jan 2011
Reputation:
46
06-07-2011, 14:13
(This post was last modified: 06-07-2011, 14:14 by iAegle.)
(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 );
}
Posts: 4,530
Threads: 254
Joined: Nov 2010
Reputation:
65
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.
Posts: 1,830
Threads: 104
Joined: Jan 2011
Reputation:
46
06-07-2011, 14:21
(This post was last modified: 06-07-2011, 14:24 by iAegle.)
(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
Posts: 4,530
Threads: 254
Joined: Nov 2010
Reputation:
65
(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
Posts: 619
Threads: 30
Joined: Oct 2010
Reputation:
85
BulletTracePassed( attacker_origin, victim_origin, false, undefined )
Posts: 1,830
Threads: 104
Joined: Jan 2011
Reputation:
46
(06-07-2011, 15:40)[CoDBOMod]Nukem Wrote: BulletTracePassed( attacker_origin, victim_origin, false, undefined )
nvm got it, SightTracePasses works aswell
|