

Description
This mod enables the server to kick or restrict players based on level ranking of ping speeds. There can be both a hard line requirement to play on the server or individual requirements based on class. Default required level is 100 for all players on the server, 200 for observer, and 300 for commanders. NOTE: To use the RequiredRank hard line and kick players by level, THERE MUST BE AN ADMIN ON THE SERVER. Otherwise players will not be kicked until an admin joins.
Mutator=ForceRank
Mutator=ForceRankISMC
Game.ini settings (Note that Class3 and Class4 are unused by default, but can be configured):
[/ForceRank/Mutators/ForceRank.ForceRank_C] RequiredRank=100
Class1Rank=300 Class1=Command Class2Rank=200 Class2=Observ Class3Rank=-1 Class3= Class4Rank=-1 Class4= ... Class9Rank=-1 Class19= Class10Rank=-1 Class10= debug=False
;This is just an example config and mutator that adjust the defaults for ISMC. See ISMC note at the bottom. ;I could've probably just set _2 for Class1 and ignored Class2, but since this could potentially catch other things I didn't. [/ForceRank/Mutators/ForceRankISMC.ForceRankISMC_C] RequiredRank=100 Class1Rank=300 Class1=EAST_2 Class2Rank=300 Class2=WEST_2 debug=False
Config Description
RequiredRank This sets the hard rank limit to play on the server at all. Default is 100
Class1Rank This sets the rank requirement for Class1, which is defined as any class that contains the string set by Class1
Class1 This is a KEYWORD that if the playerclass chosen contains, then Class1Rank will be required. Default is Command
Class2Rank This sets the rank requirement for Class2, which is defined as any class that contains the string set by Class2
Class2 This is a KEYWORD that if the playerclass chosen contains it, then Class2Rank will be required. Default is Observ
debug If set to True, this will display the playerclass names chosen by players enabling Class1, Class2, Class3, Class4 to be chosen if need be. Default is False
Shoutout to Hermanofe for his help on kicking players on this one.
ADDITIONAL CONFIG FOR KICKING PLAYERS WITH HIGH PING:
This additional config enables kicking players if they exceed the Ping threshold.
bEnablePingKick=True <- enables kicking players with high ping Ping=100 <- sets the threshold at which to begin kicking players. This value only goes from 0-255 in the editor. PingFrequency=10 <- This sets the timer loop in seconds to check players pings debug=True <- For testing, this will print the players pings to the chat and if set to True, will disable the kicking. This enables Ping to be set accordingly, then can be disabled to actually kick players.
WORKING WITH ISMC (OR OTHER CUSTOM LOADOUTS):
Keywords must be chosen that will catch the playerclasses selected. This can be done by setting debug=True. Then, every time the player selects a class, the playerclass name will be printed to the chat. From this keywords can be chosen for the classes that need requirements. I ran with ISMCArmory_Legacy and found the following playerclass names, which I then used to set the defaults for ForceRankISMC. Note that for EAST and WEST change for :
NAME PLAYERCLASS PATH
Leader Security
PlayerClass_WEST_PMC_Operator_WEST_2
Leader Insurgent
PlayerClass_EAST_PMC_Operator_EAST_2
Redfor Operator
PlayerClass_EAST_PMC_Operator_EAST
Bluefor Operator
PlayerClass_WEST_PMC_Operator_WEST
Appreciate my work and want to donate or have a mod made? See my profile for link. If leaving a comment regarding bugs or feedback go ahead and tag me so I get a notification.
Ratings & reviews
Sign in to leave a rating or comment.