mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-06 18:08:26 +00:00
* Add config flag for MaxPrestrafe override * Allow zoners to edit startzone data * Use start zone data field for prestrafe limit * Add prespeed type 6 that behaves like 5 and prevents prehopping * Fix formatting * Bodged up code for 1 second prehop cooldown on prestrafe mode 6 * Make anti prespeed a little bit better (maybe????) * Tiredly twiddle with prespeed style 6 impl * Add description to maxprestrafe style-setting * nitpicky styling things * Use GetGameTickCount instead of GetSysTickCount * ; --------- Co-authored-by: rtldg <55846624+rtldg@users.noreply.github.com> Co-authored-by: rtldg <rtldg@protonmail.com>
277 lines
11 KiB
INI
277 lines
11 KiB
INI
// This is the configuration file for styles.
|
|
// Start from 0 and increment every time. 0 is the default style.
|
|
//
|
|
// Strings settings are required!
|
|
// If you choose to not set anything else, you can remove the lines and they will be assigned as the default settings provided with this configuration file.
|
|
"Styles"
|
|
{
|
|
"0"
|
|
{
|
|
// Accessibility
|
|
"enabled" "1" // When disabled, style will be unusable. -1 to also make the style not show in menus.
|
|
"inaccessible" "0" // This setting makes it so you can't manually switch to this style but only by functionality from timer modules.
|
|
|
|
// Strings
|
|
"name" "Normal" // Style name.
|
|
"shortname" "NM" // Short style name.
|
|
"htmlcolor" "797FD4" // HUD style color (CS:GO only).
|
|
"command" "n; nm; normal" // Commands to register for style changing, leave empty for no command. use a semicolon as a delimiter - requires server restart.
|
|
"clantag" "N" // Short style name for the clantag, not exactly the same as shortname.
|
|
|
|
// Jumping settings
|
|
"autobhop" "1" // Enable autobhopping and +ds?
|
|
"easybhop" "1" // Enable easybhop (disable stamina reset)?
|
|
"prespeed" "0" // Allow prespeeding regardless of the prespeed server setting? If set to 2, the value of shavit_core_nozaxisspeed will be respected as well.
|
|
"prespeed_ez_vel" "0" // Whether to set velocity on first jump for prespeed styles. 0 = Disabled. >0 = set velocity to this amount (e.g. 3500).
|
|
"velocity_limit" "0.0" // Velocity limit: set to 0.0 for unlimited, 400.00 for 400vel styles etc.
|
|
"bunnyhopping" "1" // Per-style sv_enablebunnyhopping. Leave as 1 if you want bunnyhopping to maintain player speed. This setting will override _strafe map settings.
|
|
|
|
// Convar overrides
|
|
"prespeed_type" "-1" // Set the specific value of shavit_misc_prespeed to use for this style. -1 will use the current shavit_misc_prespeed value. Requires "prespeed" to be 0.
|
|
"blockprejump" "-1" // Set the specific value of shavit_core_blockprejump to use for this style. -1 will use the current shavit_core_blockprejump value.
|
|
"nozaxisspeed" "-1" // Set the specific value of shavit_core_nozaxisspeed to use for this style. -1 will use the current shavit_core_nozaxisspeed value.
|
|
"restrictnoclip" "-1" // Set the specific value of shavit_misc_restrictnoclip to use for this style. -1 will use the current shavit_misc_restrictnoclip value.
|
|
|
|
// Physics
|
|
"airaccelerate" "1000.0" // sv_airaccelerate value for the style.
|
|
"runspeed" "260.00" // Running speed. Requires DHooks, shavit-misc and shavit_misc_staticprestrafe set to 1.
|
|
"maxprestrafe" "0.0" // The max prestrafe that still allows your timer to start/restart. You generally do *not* need or want to change this unless for surf things (combined with style-setting "prespeed_type" "6" or cvar "shavit_misc_prespeed 6"). Default is 0.0 (disabled).
|
|
"gravity" "1.0" // Gravity setting, 1.0 for default. Standard for low gravity styles is 0.6.
|
|
"speed" "1.0" // Speed multiplier, 1.0 for default. Standard for slowmo styles is 0.5. This a multiplier for m_flLaggedMovementValue.
|
|
"timescale" "1.0" // Timing will scale with this setting. This is a multiplier for m_flLaggedMovementValue but also affects the timer increase speed.
|
|
|
|
"force_timescale" "0" // Force the timescale every jump? Default is 0 for normal timescales.
|
|
"velocity" "1.0" // % of horizontal velocity to keep per jump. a value 0.9 will make the player lose 10% of their velocity per jump. Likewise, values above 1 will result in speed gains.
|
|
"bonus_velocity" "0.0" // Bonus velocity to gain per jump. If set to e.g. 100.0, the player will gain 100 bonus velocity per jump.
|
|
"min_velocity" "0.0" // Minimum amount of horizontal velocity to keep per jump. If set to 600.0, the player can't have less than 600 velocity per jump.
|
|
"jump_multiplier" "0.0" // Mulitplier for the vertical velocity per jump. 0.0 for disabled.
|
|
"jump_bonus" "0.0" // Bonus vertical velocity to gain per jump. If set to e.g. 100.0, the player will gain 100 bonus vertial velocity per jump.
|
|
"startinair" "0" // 0 = Start-zones will only start the timer if the player is on the ground. 1 = timer will start without requiring the player to be on the ground in the start zone. This means with 1 that it will basically only start the timer counter once you've left the start-zone. This should only be used on gamemodes that are intended for this kind of mechanic (i.e. not bhop). Also it might be easily abusable. GL. Also this probably won't work unless you set either `"prespeed" "1"` or `"nozaxisspeed" "0"`.
|
|
|
|
// Mode settings
|
|
"block_w" "0" // Block +forward (W).
|
|
"block_a" "0" // Block +moveleft (A).
|
|
"block_s" "0" // Block +back (S).
|
|
"block_d" "0" // Block +moveright (D).
|
|
"block_use" "0" // Block +use (E).
|
|
"a_or_d_only" "0" // Force A-only / D-only. You still want to block_w & block_s too. The default shavit-styles.cfg has an A/D-Only style example also.
|
|
"force_hsw" "0" // Force half-sideways gameplay. 1 for regular HSW and 2 for surf-HSW.
|
|
"force_groundkeys" "0" // Forces the above settings even while on ground. e.g. enabling this will not allow W/D or W/A prestrafing when playing styles that disable the keys.
|
|
"block_pleft" "0" // Block +left. 2 to stop timer.
|
|
"block_pright" "0" // Block +right. 2 to stop timer.
|
|
"block_pstrafe" "0" // Prevent button inconsistencies (including +pstrafe). May have false positives when players lag. Will prevent some strafe hacks too. Set this to 2 to also stop the timer.
|
|
|
|
// Feature excluding
|
|
"unranked" "0" // Unranked style. No ranking points and no records.
|
|
"noreplay" "0" // Disable replay bot for this style. Automatically included for unranked styles.
|
|
|
|
// Minimum times (to help try to prevent accidents/cheats)
|
|
"minimum_time" "3.5" // Minimum time a main-track run needs to be.
|
|
"minimum_time_bonus" "0.5" // Minimum time a bonus-track run needs to be.
|
|
|
|
// Sync/strafes
|
|
"sync" "1" // Measure synchronization between strafes.
|
|
"strafe_count_w" "0" // Count W (+forward) for the strafe counter.
|
|
"strafe_count_a" "1" // Count A (+moveleft) for the strafe counter.
|
|
"strafe_count_s" "0" // Count S (+back) for the strafe counter.
|
|
"strafe_count_d" "1" // Count D (+moveright) for the strafe counter.
|
|
|
|
// Rankings
|
|
"rankingmultiplier" "1.0" // Rankings points multiplier. Don't use for unranked styles.
|
|
|
|
// Special flags
|
|
"special" "0" // For third-party modules. The core plugins will not need this setting.
|
|
"specialstring" "" // For modularity. Separated with semicolon. Built-in flags: "segments".
|
|
"permission" "" // Permission required. Syntax: "flag;override". For example "p;style_tas" to require the 'p' flag or the "style_tas" override.
|
|
"ordering" "0" // Ordering in menus where styles appear. If this value is not present, style ID will be used instead.
|
|
|
|
// KZ settings
|
|
"kzcheckpoints" "0" // KZ styled checkpoints. They reset upon timer start and you don't get reverted to a save state, and you cannot save when airborne or someone else's checkpoints.
|
|
"kzcheckpoints_ladders" "0" // KZ styled checkpoints allowed to checkpoint onto ladders (like GOKZ)
|
|
"kzcheckpoints_ontele" "-1" // The style to be changed to on client teleporting to a checkpoint in KZ styles. The destination style will be inaccessible if enabled. -1 or set "kzcheckpoints" to 0 for disabled.
|
|
"kzcheckpoints_onstart" "-1" // The style to be changed to on client getting inside the start zone in KZ styles. This style will be inaccessible if enabled. -1 or set "kzcheckpoints" to 0 for disabled.
|
|
|
|
// TAS settings
|
|
"segments" "0" // Segments styled checkpoints. 0 for disabled.
|
|
"tas" "0" // 0 = Do nothing. 1 = Currently sets the following keys unless they are explicity disabled: `tas_timescale -1`, `autostrafe 1`, `autoprestrafe 1`, `edgejump 1`, and `autojumponstart 1`
|
|
"tas_timescale" "0" // TAS-like timescaling. 0 = Disabled. -1 = User can edit the timescale (TAS menu, sm_ts, sm_tsplus, sm_tsminus). >0 = Fixed tas-timescale value for the style (e.g. 0.5 for a fixed timescale). Total time-increase-rate for the player = timescale * tas_timescale
|
|
"autostrafe" "0" // 0 = Disabled. 1 = 1tick autostrafer. 2 = velocity/autogain. 3 = velocity/autogain (no speed loss). 4 = a basic +moveleft/+moveright presser when turning. -1 = Lets players toggle between 1tick and velocity/autogain.
|
|
"autoprestrafe" "0" // 0 = Disabled. 1 = Enables TAS prestrafer on the ground to reach.
|
|
"edgejump" "0" // 0 = Disabled. 1 = Automatically jumps when the player will fall off a ledge next tick.
|
|
"autojumponstart" "0" // 0 = Disabled. 1 = Automatically jumps when the player will leave the start zone.
|
|
}
|
|
|
|
"1"
|
|
{
|
|
"name" "Sideways"
|
|
"shortname" "SW"
|
|
"htmlcolor" "B54CB3"
|
|
"command" "sw; side; sideways"
|
|
"clantag" "SW"
|
|
|
|
"block_a" "1"
|
|
"block_d" "1"
|
|
|
|
"strafe_count_w" "1"
|
|
"strafe_count_a" "0"
|
|
"strafe_count_s" "1"
|
|
"strafe_count_d" "0"
|
|
|
|
"rankingmultiplier" "1.30"
|
|
}
|
|
|
|
"2"
|
|
{
|
|
"name" "W-Only"
|
|
"shortname" "W"
|
|
"htmlcolor" "9A59F0"
|
|
"command" "w; wonly"
|
|
"clantag" "W"
|
|
|
|
"block_a" "1"
|
|
"block_s" "1"
|
|
"block_d" "1"
|
|
|
|
"strafe_count_w" "1"
|
|
"strafe_count_a" "0"
|
|
"strafe_count_d" "0"
|
|
|
|
"rankingmultiplier" "1.33"
|
|
}
|
|
|
|
"3"
|
|
{
|
|
"name" "Scroll"
|
|
"shortname" "SCR"
|
|
"htmlcolor" "279BC2"
|
|
"command" "le; legit; scr; scroll"
|
|
"clantag" "LE"
|
|
|
|
"autobhop" "0"
|
|
"easybhop" "0"
|
|
|
|
"airaccelerate" "100.0"
|
|
"runspeed" "250.00"
|
|
|
|
"block_pleft" "1"
|
|
"block_pright" "1"
|
|
"block_pstrafe" "1"
|
|
|
|
"rankingmultiplier" "1.30"
|
|
}
|
|
|
|
"4"
|
|
{
|
|
"name" "400 Velocity"
|
|
"shortname" "400VEL"
|
|
"htmlcolor" "C9BB8B"
|
|
"command" "400; 400vel; vel"
|
|
"clantag" "400"
|
|
|
|
"autobhop" "0"
|
|
"easybhop" "0"
|
|
"velocity_limit" "400.00"
|
|
|
|
"airaccelerate" "100.0"
|
|
"runspeed" "250.00"
|
|
|
|
"block_pleft" "1"
|
|
"block_pright" "1"
|
|
"block_pstrafe" "1"
|
|
|
|
"rankingmultiplier" "1.50"
|
|
}
|
|
|
|
"5"
|
|
{
|
|
"name" "Half-Sideways"
|
|
"shortname" "HSW"
|
|
"htmlcolor" "B54CBB"
|
|
"command" "hsw; halfside; halfsideways"
|
|
"clantag" "HSW"
|
|
|
|
"force_hsw" "1"
|
|
|
|
"strafe_count_w" "0"
|
|
"strafe_count_a" "1"
|
|
"strafe_count_s" "0"
|
|
"strafe_count_d" "1"
|
|
|
|
"rankingmultiplier" "1.20"
|
|
}
|
|
|
|
"6"
|
|
{
|
|
"name" "A/D-Only"
|
|
"shortname" "A/D"
|
|
"htmlcolor" "9C5BBA"
|
|
"command" "a; aonly; ad; d; donly"
|
|
"clantag" "A/D"
|
|
|
|
"autobhop" "1"
|
|
"easybhop" "1"
|
|
|
|
"airaccelerate" "1000.0"
|
|
"runspeed" "260.00"
|
|
|
|
"a_or_d_only" "1"
|
|
"block_w" "1"
|
|
"block_s" "1"
|
|
|
|
"strafe_count_w" "0"
|
|
"strafe_count_s" "0"
|
|
|
|
"rankingmultiplier" "1.50"
|
|
}
|
|
|
|
"7"
|
|
{
|
|
"name" "Segmented"
|
|
"shortname" "SEG"
|
|
"htmlcolor" "FFFFFF"
|
|
"command" "sr; seg; segment; segmented"
|
|
"clantag" "SEG"
|
|
|
|
"segments" "1"
|
|
|
|
"rankingmultiplier" "0.0"
|
|
}
|
|
|
|
"8"
|
|
{
|
|
"name" "Low Gravity"
|
|
"shortname" "LG"
|
|
"htmlcolor" "DB88C2"
|
|
"command" "lg; lowgrav"
|
|
"clantag" "LG"
|
|
|
|
"gravity" "0.5"
|
|
}
|
|
|
|
"9"
|
|
{
|
|
"name" "Slow Motion"
|
|
"shortname" "SLOW"
|
|
"htmlcolor" "C288DB"
|
|
"command" "slow; slowmo"
|
|
"clantag" "SLOW"
|
|
|
|
"timescale" "0.5"
|
|
}
|
|
|
|
"10"
|
|
{
|
|
"name" "TAS"
|
|
"shortname" "TAS"
|
|
"htmlcolor" "123456"
|
|
"command" "tas"
|
|
"clantag" "TAS"
|
|
|
|
"tas" "1"
|
|
"segments" "1"
|
|
"specialstring" "bash_bypass; oryx_bypass"
|
|
|
|
"rankingmultiplier" "0.0"
|
|
}
|
|
}
|