|
09-06-2012
|
78
|
|
Pixels for breakfast!
Join Date: Oct 2011
Location: Florida, United States
Posts: 2,409
|
PHP Code:
function onActionProjectile2(x, y) {
temp.oldloc = {player.x, player.y};
temp.newloc = {x, y};
temp.dstcheck = {oldcoords[0]-newcoords[0], oldcoords[1], newcoords[1]};
temp.distance = (dstcheck[0]^2 - dstcheck[1]^2)*0.25;
temp.dmg = ....; //some iera commands to get the damage and shiz
temp.newdmg = max(1, (dmg-distance));
//some function to remove the health
}
reduces the damage by 0.5 every tile. ez to change and should be the basic way how to do it. pretty much busy irl and didnt check it all but i think it should work
|
Looks cool. Wish I could read that. Hahaha.
|
|
|
|