#KnockoffUtils

13 messages · Page 1 of 1 (latest)

dawn light
earnest rune
#

Hey some recommendations that i saw by looking your code

There’s no need to do
if(bool == true)
you can just do
if(bool)

https://dotnetfiddle.net/2o7ekf Here's a small example that i built to show how they are the same for the compiler and so its not needed

tight holly
#

Also #candy-utilities exists

#

And will receive updates needed

dawn light
digital plinth
#

No one can really contribute to your project

dawn light
digital plinth
#

No the thing how you added the files is wrong I think

dawn light
#

Oh

dawn light
dawn light
dawn crown
#
        public void OnTriggeringTesla(TriggeringTeslaEventArgs ev) // for the mtf-disable-teslas thingy
        {
            if (ev.Player is null)
            {
                Log.Warn("No player found || OnTriggeringTesla();");
            }
            else
            {
                if (Class1.Instance.Config.MtfTriggerTeslas == true)
                {
                    if (ev.Player.Role.Team == PlayerRoles.Team.FoundationForces) // wait one sec yall
                    {
                        ev.IsInIdleRange = false; // now it might work
                        ev.IsTriggerable = false;
                    }
                }
            }
        }```

ev.IsAllowed = false; works