Open alexstrout opened 2 years ago
Minor issue, but the "Ugly Enforcer hack" is missing a None check, which dumps an error to log every time a player switches weapons that aren't Enforcers: https://github.com/alexstrout/foxWSFix-UT99/blob/22d649fdc31dc440285e07c72f1e2965125bbaf7/Classes/foxUTConsole.uc#L179
This should look like: if (Enforcer(W) != None && Enforcer(W).SlaveEnforcer != None) { //Ugly Enforcer hack
if (Enforcer(W) != None && Enforcer(W).SlaveEnforcer != None) { //Ugly Enforcer hack
Nothing breaks and the code continues normally (correctly skipping that branch), but worth noting for a future fix.
Minor issue, but the "Ugly Enforcer hack" is missing a None check, which dumps an error to log every time a player switches weapons that aren't Enforcers: https://github.com/alexstrout/foxWSFix-UT99/blob/22d649fdc31dc440285e07c72f1e2965125bbaf7/Classes/foxUTConsole.uc#L179
This should look like:
if (Enforcer(W) != None && Enforcer(W).SlaveEnforcer != None) { //Ugly Enforcer hack
Nothing breaks and the code continues normally (correctly skipping that branch), but worth noting for a future fix.