Back to the Vavoom Forum Archives


Forum

Head shot?

Wed, 08 Aug 2007 21:06:57

JonasJuh

Hi! Would it be possible to do head shots using vavoom-c or something?
Thu, 09 Aug 2007 07:50:02

Crimson Wizard

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.
Sat, 11 Aug 2007 05:05:00

spiderman

How could you have headshots without being able to disable auto aim? (hint hint <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
Sun, 12 Aug 2007 12:33:45

Crimson Wizard

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.
Sun, 12 Aug 2007 23:31:25

spiderman

[quote="Crimson Wizard":1a894but]you still calculate its theoretical point of attack by your own (position and angle). Good point.

Back to the Vavoom Forum Archives