Upload from upload_mods.ps1
This commit is contained in:
45
Scripts/Entities/EntityChunkObserver.cs
Normal file
45
Scripts/Entities/EntityChunkObserver.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
public class EntityChunkObserver : EntityAlive
|
||||
{
|
||||
public override void Awake()
|
||||
{
|
||||
base.Awake();
|
||||
//this.MaxLedgeHeight = 4;
|
||||
if (this.ModelTransform)
|
||||
{
|
||||
this.animator = this.ModelTransform.GetComponentInChildren<Animator>();
|
||||
}
|
||||
}
|
||||
|
||||
public override Color GetMapIconColor()
|
||||
{
|
||||
return new Color(1f, 0.8235294f, 0.34117648f);
|
||||
}
|
||||
|
||||
public override void playStepSound(string stepSound)
|
||||
{
|
||||
}
|
||||
|
||||
public override bool isGameMessageOnDeath()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void OnUpdateLive()
|
||||
{
|
||||
base.OnUpdateLive();
|
||||
}
|
||||
|
||||
public override void VisiblityCheck(float _distanceSqr, bool _masterIsZooming)
|
||||
{
|
||||
bool bVisible = _distanceSqr < (float)(_masterIsZooming ? 14400 : 8100);
|
||||
this.emodel.SetVisible(bVisible, false);
|
||||
}
|
||||
|
||||
public override bool CanDamageEntity(int _sourceEntityId)
|
||||
{
|
||||
Entity entity = this.world.GetEntity(_sourceEntityId);
|
||||
return !entity || entity.entityClass != this.entityClass;
|
||||
}
|
||||
|
||||
private Animator animator;
|
||||
}
|
||||
Reference in New Issue
Block a user