Thread: Katana
View Single Post
  #6  
Old 11-12-2006, 12:14 AM
kinetaro kinetaro is offline
Hiding under your bed.
kinetaro's Avatar
Join Date: Jun 2006
Posts: 30
kinetaro is on a distinguished road
Send a message via AIM to kinetaro Send a message via MSN to kinetaro
PHP Code:
//#CLIENTSIDE
function onActionProjectile(AttackerDamage// or however era has it setup
{
if (
player.dir == getdir(player.Attacker.xplayer.Attacker.y) {
//block
}

it doesnt really need to detect what angle the bullet is traveling in, since its pretty rare that an enemy can run completely around you before the bullet hits you. Era's current bullet detection system does attach the attackers account to the bullet all you have to do is check the players direction against the getdir function.
Reply With Quote