Results 1 to 2 of 2
  1. #1

    ProconRulz : Vehicle Limiter/Infantry Only 'faker', Vehicle Spawn Delay Tuner, Rules

    Greatly hinders the spawning/use of vehicles on SQDM, also adding this "fake" infantry option for Rush and CQ32, CQ64, CQ-ASSAULT and CTF under a chosen amount of players.

    Rules/messages to discourage use of javelin while infantry mode is active (useful on rush/cq, trust me).

    You also get a script to "tune" the vars.vehicleRespawnDelay setting to your liking, whether you want more vehicles at low players or less. Of course this is only getting applied in the scenario when "infantry mode" is not active

    oh yah...there is also an optional 'limit Shotgun under "x" amount of players' rule as well!

    Rules/messages/logs to accompany everything. Hope to add some admin commands, options for explosives and more.

    Code:
    ##################################################################
    # Vanilla&Hardcore-Infantry Mod PLUS VehicleSpawnDelay Tuner - 1ST PASS
    #
    ##################################################################
    # ..minSHGN% Maximum players for anti-shotgun rule (8 default)
    #
    On Round
    Set %server_maxSHGN% 8
    ##################################################################
    # ..minPLRS% Choose the maximum amount of players for forced 'infantry' mode, checked at round start only (does not apply to SQDM) (16 default)
    # ..inf****% Choose which map/game modes you want to have 'infantry' mod forced on. 1 yes,0 No
    #
    On Round
    Set %server_infPLRS% 16
    +  Set %server_infSQDM% 1
    +  Set %server_infRUSH% 0
    +  Set %server_infCQ32% 0
    +  Set %server_infCQ64% 0
    +  Set %server_infCQ32AS% 0
    +  Set %server_infCQ64AS% 0
    +  Set %server_infCTF% 0
    #################################################################
    # ..isHardcore% Is it a hardcore server? 0 no, 1 yes
    #
    On Round
    Set %server_isHardcore% 0
    #################################################################
    # ..vsdMult% Multiplier to tweak spawn delay during calibrations
    # ..vsdChc% 1 for slower to faster (less vehicles w/ less players), 2 (inverted) faster to slower
    # ..vsdStrt% Your median desired VehicleSpawnDelay (should reflect base setting in startup.txt, but not required/necessary, default 100).
    #
    # Example1: with default setting '0.375' spawn delay will be 200 at 0 players and 66 at 64 players, increasing vehicle intensity as players join...
    # Example2: using ..vsdChc% at setting 2 would 'sort-of' invert the above example, for a spawn delay of 50 at 0 players and max out at 150 for 64 players, for a better learn-to-fly scenario
    #
    On Round
    Set %server_vsdMult% 0.375
    +  Set %server_vsdChc% 0
    +  Set %server_vsdScale% 8
    +  Set %server_vsdSize% 64
    +  Set %server_vsdStrt% 100
    #################################################################
    # server-adjusted variables below, do NOT edit!
    #
    On Round
    Set %server_gmod% 0
    +  Set %server_tSize% %n%
    #
    On Round
      if %mm% = SquadDeathMatch0;if %server_infSQDM% >= 1;Set %server_gmod% SQDM
      if %mm% = ConquestSmall0;if %server_tSize% < %server_infPLRS%/2;if %server_infCQ32% >= 1;Set %server_gmod% CQ32
      if %mm% = RushLarge0;if %server_tSize% < %server_infPLRS%/2;if %server_infRUSH% >= 1;Set %server_gmod% RUSH
      if %mm% = ConquestLarge0;if %server_tSize% < %server_infPLRS%/2;if %server_infCQ64% >= 1;Set %server_gmod% CQ64
      if %mm% = ConquestAssaultSmall0;if %server_tSize% < %server_infPLRS%/2;if %server_infCQ32AS% >= 1;Set %server_gmod% CQ32-ASSAULT
      if %mm% = ConquestAssaultSmall1;if %server_tSize% < %server_infPLRS%/2;if %server_infCQ32AS% >= 1;Set %server_gmod% CQ32-ASSAULT
      if %mm% = ConquestAssaultLarge0;if %server_tSize% < %server_infPLRS%/2;if %server_infCQ64AS% >= 1;Set %server_gmod% CQ64-ASSAULT
      if %mm% = CapturetheFlag0;if %server_tSize% < %server_infPLRS%/2;if %server_infCTF% >= 1;Set %server_gmod% CTF
    #
    On Round;if %server_gmod% != 0
      if %server_tSize% < 2;Exec vars.vehicleSpawnAllowed true;Log *** STEP 1 Vanilla&Hardcore-Infantry vars bypassed for min players...rules still in affect (%server_gmod% @ %server_tSize% (x 2) players) (HC? %server_isHardcore%) ***;if %server_isHardcore% != 1;Exec vars.3pCam true
      if %server_tSize% > 1 1;Exec vars.vehicleSpawnAllowed false;Log *** STEP 1 Vanilla&Hardcore-Infantry Mod set to enable "Infantry Only" temporarily (%server_gmod% @ %server_tSize% (x 2) players) (HC? %server_isHardcore%) ***;if %server_isHardcore% != 1;Exec vars.3pCam false
      Exec vars.vehicleSpawnDelay 999;Log *** Vehicle spawn delay set to 999 for Vanilla&Hardcore-Infantry Mod @ %server_tSize% (x 2) players  (default %server_vsdStrt%) ***
    #
    On Round;if %server_gmod% = 0
      Set %server_vsd% %server_tSize%+%server_vsdScale%/%server_vsdSize%+%server_vsdMult%
      if %server_vsdChc% < 2;Set %server_vsd% %server_vsdStrt%/%server_vsd%;Exec vars.vehicleSpawnDelay %server_vsd%;Log *** Vehicle spawn delay calibrated to %server_vsd% @ %server_tSize% (x 2) players  (default %server_vsdStrt%) ***
      if %server_vsdChc% > 1;Set %server_vsd% %server_vsd%*%server_vsdStrt%;Exec vars.vehicleSpawnDelay %server_vsd%;Log *** Vehicle spawn delay calibrated to %server_vsd% @ %server_tSize% (x 2) players  (default %server_vsdStrt%) ***
    #################################################################
    #
    # Vanilla&Hardcore-Infantry mod PLUS VehicleSpawnDelay-Tuner - 2ND PASS
    #
    On Spawn;ServerFirst
      Set %server_tSize% %n%
      Exec vars.vehicleSpawnAllowed true
      if %server_isHardcore% != 1;Exec vars.3pCam true
    #
    On Spawn;ServerFirst;if %server_gmod% != 0
      Log *** STEP 2 Vanilla&Hardcore-Infantry Mod set to fool battleLog into reading as "Normal" (%server_gmod% @ %server_tSize% (x 2) players) (HC? %server_isHardcore%) ***
      Exec vars.vehicleSpawnDelay 999;
      Log *** Vehicle spawn delay set to 999 for Vanilla&Hardcore-Infantry Mod @ %server_tSize% (x 2) players  (default %server_vsdStrt%) ***
      Say *** Infantry mod activated: ***
      Say *** - NO Tank/LAV/Jet/Heli  ***
      Say *** - No Javelin            ***
      Say *** - No Mortar             ***
    #
    On Spawn;ServerFirst;if %server_gmod% = 0
      Set %server_vsd% %server_tSize%+%server_vsdScale%/%server_vsdSize%+%server_vsdMult%
      if %server_vsdChc% < 2;Set %server_vsd% %server_vsdStrt%/%server_vsd%;Exec vars.vehicleSpawnDelay %server_vsd%;Log *** Vehicle spawn delay calibrated to %server_vsd% @ %server_tSize% (x 2) players  (default %server_vsdStrt%) ***;Say *** Vehicle spawn delay calibrated ***
      if %server_vsdChc% > 1;Set %server_vsd% %server_vsd%*%server_vsdStrt%;Exec vars.vehicleSpawnDelay %server_vsd%;Log *** Vehicle spawn delay calibrated to %server_vsd% @ %server_tSize% (x 2) players  (default %server_vsdStrt%) ***;Say *** Vehicle spawn delay calibrated ***
    #################################################################
    #
    # Vanilla&Hardcore-Infantry - anti-vehicle/mortar catch-all
    #
    On Kill;Weapon Death;if %server_gmod% != 0
      if PlayerCount > 3;if %n% < 2;Say %p% temp-banned for vehicle/mortar kills on Infantry-Mode (%server_gmod%);TempBan 30 temp-banned for vehicle/mortar kills on Infantry-Mode (%server_gmod%)
      PlayerCount 4;if %n% > 1;Say %p% temp-banned for vehicle/mortar kills on Infantry-Mode (%server_gmod%);TempBan 90 temp-banned for vehicle/mortar kills on Infantry-Mode (%server_gmod%)
      PlayerCount 3;Say %p% kicked for vehicle/mortar kills on Infantry-Mode (%server_gmod%);Kick kicked for vehicle/mortar kills on Infantry-Mode (%server_gmod%)
      PlayerCount 2;Say %p% slayed for vehicle/mortar kills on Infantry-Mode (%server_gmod%) %c%/5;Kill 100
      Incr %server_vltns%;PlayerSay %p% - NO vehicle/mortar kills on Infantry-Mode (%server_gmod%) (#%c%/4);Yell %p% - NO vehicle/mortar kills on Infantry-Mode!!!
    #################################################################
    #
    # Vanilla&Hardcore-Infantry - anti-javellin
    #
    On Kill;Weapon FGM-148;if %server_gmod% != 0
      if PlayerCount > 3;if %n% < 2;Say %p% temp-banned  for javelin kills on Infantry-Mode (%server_gmod%);TempBan 15 temp-banned for javelin  kills on Infantry-Mode (%server_gmod%)
      PlayerCount 4;if %n% > 1;Say %p% temp-banned for javelin kills on Infantry-Mode (%server_gmod%)TempBan 45 temp-banned for javelin  kills on Infantry-Mode (%server_gmod%)
      PlayerCount 3;Say %p% kicked for javelin kills on Infantry-Mode (%server_gmod%);Kick kicked for javelin  kills on Infantry-Mode (%server_gmod%)
      PlayerCount 2;Say %p% slayed for javelin kills on Infantry-Mode (%server_gmod%) %c%/5;Kill 100
      Incr %server_vltns%;PlayerSay %p% - NO javelin kills on Infantry-Mode (%server_gmod%)(#%c%/4);Yell %p% - NO javelin kills on Infantry-Mode!!!
    #################################################################
    #
    # Vanilla&Hardcore-Infantry - Limit Shotguns less than ~8 players
    #
    On Kill;Damage Shotgun;if %server_maxSHGN%/2 > %n%
      if PlayerCount > 3;if %n% < 2;Say %p% temp-banned for shotgun kills w/ low players;TempBan 15 temp-banned for shotgun kills w/ low players
      PlayerCount 4;if %n% > 1;Say %p% temp-banned for shotgun kills w/ low players;TempBan 45 temp-banned for shotgun kills w/ low players
      PlayerCount 3;Say %p% kicked for shotgun kills w/ low players;Kick kicked for shotgun kills w/ low players
      PlayerCount 2;Say %p% slayed for shotgun kills w/ low players %c%/5;Kill 100
      Incr %server_vltns%;PlayerSay %p% - NO shotgun kills w/ low players (#%c%/4);Yell %p% - NO shotgun kills w/ low players!!!
    #################################################################
    #
    # VehicleSpawnDelay Tuner - Calibrate spawn delay based on player amount every 16 spawns after players join/leave...and some warnings/messages...
    #
    On Spawn;if %server_tSize% != %n%;Incr %server_spnCnt%;if %server_spnCnt% > 16; Set %server_spnCnt% 0;
    #
    On Spawn;if %server_spnCnt% = 16;
      Set %server_tSize% %n%
    #
    On Spawn;if %server_spnCnt% = 15;if %server_gmod% = 0
      Set %server_vsd% %server_tSize%+%server_vsdScale%/%server_vsdSize%+%server_vsdMult%
      if %server_vsdChc% < 2;Set %server_vsd% %server_vsdStrt%/%server_vsd%;Exec vars.vehicleSpawnDelay %server_vsd%;Log *** Vehicle spawn delay calibrated to %server_vsd% @ %server_tSize% (x2) players  (default %server_vsdStrt%) ***;Say *** Vehicle spawn delay calibrated ***
      if %server_vsdChc% > 1;Set %server_vsd% %server_vsd%*%server_vsdStrt%;Exec vars.vehicleSpawnDelay %server_vsd%;Log *** Vehicle spawn delay calibrated to %server_vsd% @ %server_tSize% (x2) players  (default %server_vsdStrt%) ***;Say *** Vehicle spawn delay calibrated ***
    #
    On Spawn;if %server_spnCnt% = 15;if %server_gmod% != 0;
      Exec vars.vehicleSpawnDelay 999;
      Log *** Vehicle spawn delay set to 999 for Vanilla&Hardcore-Infantry Mod @ %server_tSize% (x 2) players  (default %server_vsdStrt%) ***
      Say *** Infantry mod activated: ***
      Say *** - NO Tank/LAV/Jet/Heli  ***
      Say *** - No Javelin            ***
      Say *** - No Mortar             ***
    #
    On Spawn;if %server_spnCnt% = 14
      if %server_gmod% != 0;Say Infantry-Mode enabled!;Say NO vehicle/mortar/javelin kills!;Yell Infantry-Mode enabled!
      if %server_maxSHGN%/2 > %n%;Say NO shotgun kills w/ less than %server_maxSHGN% players!
    #
    On Spawn;if %server_spnCnt% = 2
      if %server_gmod% != 0;Say Infantry-Mode enabled!;Say NO vehicle/mortar/javelin kills!;Yell Infantry-Mode enabled!
      if %server_maxSHGN%/2 > %n%;Say NO shotgun kills w/ low players!
    #
    On Spawn;if %server_vltns% > 0;if %server_spnCnt% = 6
      if %server_gmod% != 0;Say !!!;Say Infantry-Mode enabled!;Say !!!;Say NO vehicle/mortar/javelin kills!!!
      if %server_maxSHGN%/2 > %n%;Say !!!;Say NO shotgun kills w/ low players!;Yell NO shotgun kills w/ low players!!!
      Decr %server_vltns%
    #
    On Spawn;if %server_vltns% > 1;if %server_spnCnt% = 8
      if %server_gmod% != 0;Say !!!;Say Infantry-Mode enabled!!!;Say !!!;Say NO vehicle/mortar/javelin kills!!!;Yell NO vehicle/mortar/javelin kills!!!
      if %server_maxSHGN%/2 > %n%;Say !!!;Say NO shotgun kills w/ low players!!!
      Decr %server_vltns%
    #
    On Spawn;if %server_vltns% > 2;if %server_spnCnt% = 10
      if %server_gmod% != 0;Say !!!!!!;Say Infantry-Mode enabled!!!;Say !!!!!!;Say NO vehicle/mortar/javelin kills!!!;
      if %server_maxSHGN%/2 > %n%;Say !!!!!!;Say NO shotgun kills w/ low players!!!Yell NO shotgun kills w/ low players!!!
      Decr %server_vltns%
    #
    On Spawn;if %server_vltns% > 3;if %server_spnCnt% = 12
      if %server_gmod% != 0;Say !!!!!!;Say Infantry-Mode enabled!!!;Say !!!!!!;Say NO vehicle/mortar/javelin kills!!!;Yell NO vehicle/mortar/javelin kills!!!
      if %server_maxSHGN%/2 > %n%;Say !!!!!!;Say NO shotgun kills w/ low players!!!
      Decr %server_vltns%
    #
    PLEASE BE AWARE THE INFANTRY OPTION CANNOT COMPLETELY REMOVE VEHICLES FROM THE MAP!!! It simply limits them to a degree...to how much degree...well i need you to test on the different game modes. Rush has been a bit hard to suppress vehicle spawns but still works ok...and remember you always have the "Kills with" rules to reinforce the "fake" Infantry gameplay while under a chosen number of players whether the vehicles happen to spawn or not.

    ALSO ONE MORE CAVEAT! INFANTRY SCRIPT WORKS BEST IF YOU HAVE AN "EMPTY" MAP THAT DOES NOT USE VEHICLES TO START YOUR SERVER! Start your server on a map like metro or any tdm map and have it return to one of these maps when it empties out. UltimateMapManager is good for this and a few others...Why? because ProconRulz needs the On Spawn event to complete the sending of variables to the server...so it works best if you can already have at least a player or two in the server when the map/mode loads that you want "infantry-ized".

    I'd love to know exactly how long the vehicle respawns take at default setting vars.vehicleSpawnDelay 100....?

    I'd also love to know what you/anyone has found out about the maximum setting for vars.vehicleSpawnDelay...?

    Please test/read/inspect and let me know how it goes! My server host is absolutely terrible and I'm stuck with them for a few months ;/ So I'd love alot of feedback.

    P.s. yes i know this is much better served idea for insaneLimits because i could use a timed event but this works great for now...and I'm a padawan learner with this stuff...so...
    Last edited by garbitos; 25-05-2015 at 17:51.

  2. #2
    Updated code above.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •