Force

From IvanWiki
Revision as of 08:18, 12 August 2014 by 4zb4 (talk | contribs) (Created page with "Force is a variable used only to determine how far an item is thrown with the (t)hrow command. Force is equivalent to the entity's current ASTR. <pre>void character:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Force is a variable used only to determine how far an item is thrown with the (t)hrow command. Force is equivalent to the entity's current ASTR.

void character::ThrowItem(int Direction, item* ToBeThrown)
{
  if(Direction > 7)
    ABORT("Throw in TOO odd direction...");

  ToBeThrown->Fly(this, Direction, GetAttribute(ARM_STRENGTH));
}