You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Half-Life, the cvar mp_teamlist sets which models are going to be teams, e.g mp_teamlist "hgrunt;scientist". The issue is that HL reads this cvar right before plugin_cfg().
My proposed solution would be to run the preconfig file immediately with server_exec() when the plugin ends so when the map changes, the cvar is already set and the teams will be set correctly. I already tested this and didn't notice any side-effects.
Also, I have notice that Polymorph can't read the cvar mp_teamlist properly because it contains semicolons inside which gets trimmed by the next lines.
This get fixed by replacing lines 1039-1041 in polymorph.sma with:
In Half-Life, the cvar
mp_teamlist
sets which models are going to be teams, e.gmp_teamlist "hgrunt;scientist"
. The issue is that HL reads this cvar right before plugin_cfg().My proposed solution would be to run the preconfig file immediately with server_exec() when the plugin ends so when the map changes, the cvar is already set and the teams will be set correctly. I already tested this and didn't notice any side-effects.
Replace line 841 in file polymorph.sma with:
Also, I have notice that Polymorph can't read the cvar
mp_teamlist
properly because it contains semicolons inside which gets trimmed by the next lines.This get fixed by replacing lines 1039-1041 in polymorph.sma with:
The text was updated successfully, but these errors were encountered: