Head shot?

Talk about editing and creation of Vavoom mods

Head shot?

Postby JonasJuh » 08 Aug 2007 21:06

Hi!

Would it be possible to do head shots using vavoom-c or something?
JonasJuh
 
Posts: 1
Joined: 08 Aug 2007 21:02

Postby Crimson Wizard » 09 Aug 2007 07:50

You may try to calculate exact player's shot target using his Angles (i.e. direction of aim), and enemy's position and metrics like Radius and Height. This will be complicated however.

I.e., assuming player attacks enemy using "line attack" method (like all the instant shot weapons work). An AimLineAttack is usually called to get the possible target for this attack. IIRC it is 'linetarget' variable that is being set to reference to that target (an Entity). Then, you do some calculations like was mentioned: use player's Angles to know direction of view, get vector, find a point of intersection with enemy's bound box etc.
Crimson Wizard
 
Posts: 881
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Postby spiderman » 11 Aug 2007 05:05

How could you have headshots without being able to disable auto aim? (hint hint ;)
User avatar
spiderman
 
Posts: 86
Joined: 13 Jul 2007 04:04

Postby Crimson Wizard » 12 Aug 2007 12:33

Yes, this may spoil this, but not always. I mean, if the shot reaches enemy, no matter where it hit, since you still calculate its theoretical point of attack by your own.
Crimson Wizard
 
Posts: 881
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Postby spiderman » 12 Aug 2007 23:31

Crimson Wizard wrote:you still calculate its theoretical point of attack by your own (position and angle).


Good point.
User avatar
spiderman
 
Posts: 86
Joined: 13 Jul 2007 04:04


Return to Editing

Who is online

Users browsing this forum: No registered users and 0 guests

cron