Advertisement
logancberrypie

autoadmin

Jul 14th, 2021
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. Server Side AutoAdmin for Holdfast events. THIS IS A EARLY VERSION SO EXPECT BUGS.
  2.  
  3.  
  4. FOL Detection
  5. - When firing game checks a ring around the player.
  6. - safeZone defines the allowed distance to fire
  7. - warningZone defines the distance where maximum warning will be given for firing illegally
  8. - damegeMod is a scalar modifying the gradient of the linear function
  9. - minimumNumberOfPlayersNeeded defines how many players/objects in the safezone are needed for a legal fire
  10. - maxWarningDamege defines the max damege given when an FOL occurs without a kill.
  11.  
  12. Features:
  13. - All values changable by class
  14. - Each class can have multiple "layers" that get checked. Example: Layer 11 for players, layer 15 for arty. By default cannoneers/rocketeers/sappers can either fire near arty pieces or near players.
  15. - Each layer can have seperate variables set to them
  16. - Auto slay + revive for FOL
  17. - FOL but no Kill = slap. Damege dealt depending on "how bad" the FOL is increasing near linearly [using sqr distance instead of distance for performance].
  18.  
  19.  
  20. Config Settings example:
  21.  
  22.  
  23. Mod uses Wrex's mod notation i.e
  24.  
  25. mod_variable <modID>:<variable>:<value(s)>
  26.  
  27. For this mod this means:
  28.  
  29. mod_variable 2531692643:<ClassEnum>:[playerLayer,safeZone,damgeZone,damgeMod,minPlayers,maxSlap]
  30.  
  31. Each class can have multiple playerLayers for detection.
  32.  
  33. As an example to allow line infantyr to skirm around cannons but prevent them skirming away from cannons do:
  34.  
  35.  
  36. mod_variable 2531692643:ArmyLineInfantry:15,15,25,1,1,33
  37. mod_variable 2531692643:ArmyLineInfantry:11,2,5,1,2,25
  38.  
  39. This will allow them to skirm within 15 meters of a arty pieces OR within 2 meters of at least 2 other players. FOL away from arty = slap of max 33 DMG. FOL away from players = slap of max 25 DMG
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement