Show
Ignore:
Timestamp:
11/19/08 13:49:07 (17 years ago)
Author:
yumileroy
Message:

[svn] * Reimplemented packet/update forwarding in more generic way
* Implemented far sight spells (Far Sight, Eagle Eye, etc) at unlimited range and properly forward packets
* Implemented bind vision spells (Mind Vision, etc) to forward packets at unlimited distance
* Implemented Sentry Totem (both vision switching/forwarding and alerting)
* Other misc possession fixes
* Added .bindsight and .unbindsight commands

Please test out the above spells (including Mind Control) and report any issues on the forums.

Original author: gvcoman
Date: 2008-11-14 20:40:35-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Level3.cpp

    r232 r233  
    68166816    return true; 
    68176817} 
     6818 
     6819bool ChatHandler::HandleBindSightCommand(const char* args) 
     6820{ 
     6821    Unit* pUnit = getSelectedUnit(); 
     6822    if (!pUnit) 
     6823        return false; 
     6824         
     6825    if (m_session->GetPlayer()->isPossessing()) 
     6826        return false; 
     6827 
     6828    pUnit->AddPlayerToVision(m_session->GetPlayer()); 
     6829 
     6830    return true; 
     6831} 
     6832 
     6833bool ChatHandler::HandleUnbindSightCommand(const char* args) 
     6834{ 
     6835    if (m_session->GetPlayer()->isPossessing()) 
     6836        return false; 
     6837         
     6838    m_session->GetPlayer()->RemoveFarsightTarget(); 
     6839    return true; 
     6840}