#KnockoffUtils
13 messages · Page 1 of 1 (latest)
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
I was deciding whether I should do that or not just to be safe, thanks for the tip!!
Did you really made a normal git or just copied the files?
No one can really contribute to your project
Don’t know how to allow outside contributions. If you could tell me how to enable it that would be great.
No the thing how you added the files is wrong I think
Oh
What about now? I added the .sln file so it can be edited in visual studio
Plugin Update
v0.1.3 has released, you can download the source code or .dll using the link below.
https://github.com/Bright2676/knockoff-utils/releases/tag/v0.1.3
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