[TF2] Baseball Hell
Version 1.62.6.1
What is Baseball Hell?
This gameplay modifier, when enabled, transforms the batlefield by giving every player fast-moving, one-hit-kill weapons. There are 7 modes:
Scout Play, All Weapons - All players are set to scout, and are given modified versions of the Loch-n-Load, the Flying Guillotine, and the Sandman.
If all optional plugins are installed, the scout gains infinite jump.
Scout Play, Bat Only - Same as above, but only the bat is issued. Fight in the spirit of our predecessors!
All Play, All Weapons - Players can be any class they want to be, and are given all the weapons. The scout loses his double jump, and sentries can not target.
All Play, Bat Only - Same as above, but only the bat is issued.
New: Flak Cannon - Scouts have detonators, and can detonate them to facilitate air battle! Near shots will harm the scout who shoots them, and premature detonations can cause a scout's untimely demise.
New: Huntsman - Snipers have rapid fire huntsman, that shoot faster than the Sandman's natural rate! The drawback is they move slower than baseballs, even when fully charged, and can not be shot while jumping.
New: Rocketman - Scouts have a variant of the Valve Rocket Launcher, removing gravity from the equation when dogfighting. Near shots will harm the scouts who shoots them, and rockets have a very small radius of splash damage.
Regardless of mode, respawn time is disabled all classes push the cart at 2x the speed, and all classes move as fast as the Scout.
Functionally, each of the weapons in all weapon modes are functionally the same. The option is there because options are fun!
Why?
Old console command functionality let sandman users spam baseballs at ridiculous speeds for annoying effect. When it was combined with the old console command that let you double jump infinitely, the skies lit up and TF2 became a dogfight.
Baseball Hell works to revive this, and more!
ConVars:
baseballhell_version - This version of Baseball Hell.
baseballhell_enabled (default:0) - Set this to 0/1. When enabled, the appropriate modifications are made and the players are issued new weapons. When disabled, slays everyone and resets the server to normal.
baseballhell_mode (default:SCOUT_PLAY_ALL_WEAPONS) - Choose from 7 settings, SCOUT_PLAY_ALL_WEAPONS, SCOUT_PLAY_BAT_ONLY, ALL_PLAY_ALL_WEAPONS, ALL_PLAY_BAT_ONLY, FLAK_CANNON, HUNTSMAN, or ROCKETMAN. Players are immediately set and issued new weapons.
baseballhell_delay_multi (default:1.0) - Set this from 1.0 to 10.0. The initial fire delay is .25 seconds per shot (in Huntsman the bow can fire as soon as .166 seconds); setting this multiplies that time by whatever you set. Use this to promote careful gameplay, or if the server can't handle the load of so many projectiles!
Required:
TF2Items Give Weapon
TF2Items (The above plugin also needs this)
Recommended:
Not Included:
Scout Multi Jump
Including this allows "Scout Only" modes to become
insane by including infinite multi-jumps.
Console Warning Suppressor
Suppresses harmless, but annoying warnings related to invalid viewmodels, and if configured, invalid projectile attribution.
Installation:
Place
baseballhell.smx into your addons/sourcemod/plugins/ folder.
Make sure you have
TF2Items Give Weapon and
TF2Items installed!
Optional Installations:
Place
scoutmultijump.smx into your addons/sourcemod/plugins/ folder.
Remove SetSpeed.smx from your addons/sourcemod/plugins/ if you have it.
Extract
cleaner.zip to your addons/sourcemod/ folder.
Open up addons/sourcemod/configs/cleaner.cfg and add the following on new lines each:
Entity
Arrow alive for
secondsArrow
AddMultiDamage
Troubleshooting:
Q: Why are my viewmodels/worldmodels not correct?
A: TF2 weapon models are rigged differently, and are only meant for the class whom they belong to. This isn't a high priority fix, but I can attempt something later.
P: My server console is full of "Entity XXXX (class <projectile>) reported ENTITY_CHANGE_NONE ..." errors!
A: Whenever a player spawns, touches a resupply cabinet, they are assigned a new copy of their weapon. This error fires because a projectile was still in the world when the player gets the new weapon, and the projectile can no longer find the old weapon. This is fired most frequently when respawn times are disabled, because the chance of the projectile despawning before the player respawns is lower.
To remedy this, please install the
console suppressor as per the instructions above.
P: My server console is full of "DataTable warning: tf_viewmodel: Out-of-range value (XXXX) ..." warnings!
A: This is a warning when switching weapons, or shooting the Loch-n-Load. These warnings are harmless, but annoying.
To remedy this, please install the
console suppressor as per the instructions above.
P: My server console is full of "Arrow alive for..." warnings!
A: This is a warning when Arrows are not deleted properly.
To remedy this, please install the
console suppressor as per the instructions above.
P: My
client console is full of "EmitSound" errors!
A: This is a warning attributed with the Huntsman pulling too fast.
There is no fix for this, but should only fire every time a bow is pulled.
Derivation Credits / General Credits:
Randomizer (Special Ammo modification)
Set Speed (Non-Scout speed balancing)
Bitl &
bl4nk (Various code snippets)
Vito (Help with debugging)
Forgeblazer (Idea for Rocketman game mode)
RavenShadow(Help with Set Speed implementation)
Changelog (GitHub):
Code:
8/16/2014(v1.62.6.1)
-Bug fixes
Fixed a situation where Sniper did not run at the right speed
Fixed a situation where players could regenerate ammo in normal play,
when Baseball Hell is disabled
-Coding
Weapon generation is more modular
Some lines are condensed
The code now includes SetSpeed functionality
ServerCommand invocations are now SetConVar invocations
8/15/2014(v1.61.11.1)
-Gameplay
Added the Flak Cannon, Rocketman, and Huntsman game modes.
-Bug fixes
All non-scout classes push the cart at 2x speed
-Coding
Some lines are slightly condensed
8/13/2014(v1.59.5.1)
-Bug Fixes
Sandman now fires at the correct speed at delay multiplier 1.
8/13/2014(v1.59.1.1)
-Bug Fixes
Sandman no longer burst fires
-Miscellaneous
Hints are announced to players whenever the game mode or the delay multiplier is changed
8/12/2014 (v1.58.2.1)
-Bug Fixes
Fixed cleaver not reloading properly
8/12/2014 (v1.58.1.1)
-Gameplay
Increased weapon switch speed
-Bug Fixes
Reduced DataTable warnings attributed to instant Loch-n-Load reload speed
Plugin now properly sets the correct convars on map change
-Performance
Removed redundant convar setting code
Limited weapon creation in the case of scout only modes
8/11/2014 (v1.57.1.1)
- This is the first public version. Everything before this is a dark hidden secret, like Coca-Cola formula.