Raised This Month: $51 Target: $400
 12% 

Knife attack area


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 10-19-2013 , 13:09   Knife attack area
Reply With Quote #1

I'm trying to help Randomize here:
https://forums.alliedmods.net/showthread.php?t=226145

How do I properly determine that the person I am attacking with knife is within range/angles of getting damaged?

I'm trying to delay the knife attack by creating a new one, and since the player move in between I need to determine if the attack is a hit or a miss at the later point in time.

I've searched for patterns in angles, distances and viewcones and the outcome was nothing.
My next idea was to create a sphere in front of the attacker to search within, which would be fine I guess. But is it correct?

What I'm asking for is really how do the game engine determine if a knife attack is a hit or a miss?
__________________
Black Rose is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode