Insert in BaseEntity, BaseLadder and BuildingBlock
BaseEntity:Code:object[] objArray = new object[] { this }; object obj = Interface.CallHook("CanBlockProjectiles", objArray); if (obj as bool) { return (bool)obj; }
BaseLadder:Code:public override bool ShouldBlockProjectiles() { object[] objArray = new object[] { this }; object obj = Interface.CallHook("CanBlockProjectiles", objArray); if (obj as bool) { return (bool)obj; } return true; }
BuildingBlock:Code:public override bool ShouldBlockProjectiles() { object[] objArray = new object[] { this }; object obj = Interface.CallHook("CanBlockProjectiles", objArray); if (obj as bool) { return (bool)obj; } return false; }
Code:public override bool ShouldBlockProjectiles() { object[] objArray = new object[] { this }; object obj = Interface.CallHook("CanBlockProjectiles", objArray); if (obj as bool) { return (bool)obj; } return this.grade != BuildingGrade.Enum.Twigs; }
Request CanBlockProjectiles hook (Rust)
Discussion in 'Feature Suggestions' started by CaseMan, Feb 22, 2018.