- Drag effect crash issues have been resolved, enabling effects by default again.
- Added an LOS check to the drag effects to hide effects on higher floors from players.
This commit is contained in:
parent
71a9e054de
commit
ea1f38c121
2 changed files with 3 additions and 12 deletions
|
|
@ -3,20 +3,11 @@ using Server;
|
||||||
|
|
||||||
namespace Server.Commands
|
namespace Server.Commands
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
* Temporary system to allow on-the-fly enabling and disabling
|
|
||||||
* of the drag effects, for investigating client crashes.
|
|
||||||
*
|
|
||||||
* By default the effects will be disabled.
|
|
||||||
*/
|
|
||||||
public static class DragEffects
|
public static class DragEffects
|
||||||
{
|
{
|
||||||
public static void Initialize()
|
public static void Initialize()
|
||||||
{
|
{
|
||||||
// Disable effects
|
CommandSystem.Register( "DragEffects", AccessLevel.Developer, new CommandEventHandler( DragEffects_OnCommand ) );
|
||||||
Mobile.DragEffects = false;
|
|
||||||
|
|
||||||
CommandSystem.Register( "DragEffects", AccessLevel.Administrator, new CommandEventHandler( DragEffects_OnCommand ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Usage( "DragEffects [enable=false]" )]
|
[Usage( "DragEffects [enable=false]" )]
|
||||||
|
|
|
||||||
|
|
@ -4369,7 +4369,7 @@ namespace Server
|
||||||
|
|
||||||
foreach( NetState ns in eable )
|
foreach( NetState ns in eable )
|
||||||
{
|
{
|
||||||
if( ns.Mobile != from && ns.Mobile.CanSee( from ) && ns.Mobile.CanSee( root ) )
|
if( ns.Mobile != from && ns.Mobile.CanSee( from ) && ns.Mobile.InLOS( from ) && ns.Mobile.CanSee( root ) )
|
||||||
{
|
{
|
||||||
if( p == null )
|
if( p == null )
|
||||||
{
|
{
|
||||||
|
|
@ -4509,7 +4509,7 @@ namespace Server
|
||||||
|
|
||||||
foreach( NetState ns in eable )
|
foreach( NetState ns in eable )
|
||||||
{
|
{
|
||||||
if( ns.Mobile != this && ns.Mobile.CanSee( this ) && ns.Mobile.CanSee( root ) )
|
if( ns.Mobile != this && ns.Mobile.CanSee( this ) && ns.Mobile.InLOS( this ) && ns.Mobile.CanSee( root ) )
|
||||||
{
|
{
|
||||||
if( p == null )
|
if( p == null )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue