The location a bullet comes from?
#1
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" ) )

?
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#2
The eye. At least that's what I worked with with my CoD Aimbots and it worked fine.
Reply

#3
(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 ); }
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#4
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.
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#5
(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
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#6
(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
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#7
BulletTracePassed( attacker_origin, victim_origin, false, undefined )
[Image: b_560_95_1.png]
Reply

#8
(06-07-2011, 15:40)[CoDBOMod]Nukem Wrote: BulletTracePassed( attacker_origin, victim_origin, false, undefined )

nvm got it, SightTracePasses works aswell Smile
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Sniper rifles bullet's spread & Preventing joining to a team lammv 11 10,279 03-15-2013, 12:53
Last Post: lammv
  Help Teleporting via Flags/Origin/Location yokai134 2 3,942 09-06-2012, 12:19
Last Post: yokai134
  [Tutorial] Bullet Penetration Files Yamato 2 4,569 02-04-2012, 14:59
Last Post: GscGunner
  Distance(self.origin, location) not working? xplosiff 3 4,558 01-05-2012, 17:39
Last Post: xplosiff
  Help Sony vegas magic bullet Rendflex 6 7,185 11-26-2011, 20:11
Last Post: Rendflex
  Help glowing bullet holes or Paintball Gamemaster20 14 12,367 11-05-2011, 01:00
Last Post: Gamemaster20
  [Tutorial] Location Selection Yamato 10 9,856 10-22-2011, 16:33
Last Post: Yamato
  Real Looking Magic Bullet 4FunPlayin 22 14,640 10-19-2011, 20:51
Last Post: 4FunPlayin
  Tard needs help with animations and bullet penetrations elmopio 0 2,588 08-16-2011, 14:24
Last Post: elmopio
  Help spawning objects and getting your location koil 7 6,122 08-09-2011, 23:05
Last Post: koil

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.