[TF2] Kartify
v1.5.0
Description:
Puts players into bumper karts as seen on the Carnival of Carnage Halloween map!
The game has a bunch of cvars to control how karts work. They're all cheat-flagged, but you can change cheat cvars without sv_cheats enabled using the sm_cvar command (this will work in server.cfg and all other cfg files as well).
Here's the list of kart cvars accessible to the server as of November 9, 2014:
Code:
tf_halloween_allow_ghost_hit_by_kart_delay : 0 : , "sv", "cheat" :
tf_halloween_hhh_attack_kart_radius : 300 : , "sv", "cheat" :
tf_halloween_kart_air_turn_scale : 1 : , "sv", "cheat", "rep" :
tf_halloween_kart_aircontrol : 1 : , "sv", "cheat", "rep" : Multiplier for how much air control players have when in Kart Mode
tf_halloween_kart_bomb_head_damage_scale : 2 : , "sv", "cheat" :
tf_halloween_kart_bomb_head_impulse_scale : 2 : , "sv", "cheat" :
tf_halloween_kart_bombhead_scale : 1 : , "sv", "cheat", "rep" :
tf_halloween_kart_boost_duration : 1 : , "sv", "cheat", "rep" :
tf_halloween_kart_boost_impact_force : 0 : , "sv", "cheat" : Impact force scaler on boosts
tf_halloween_kart_boost_recharge : 5 : , "sv", "cheat", "rep" :
tf_halloween_kart_brake_accel : 500 : , "sv", "cheat", "rep" :
tf_halloween_kart_brake_speed : 0 : , "sv", "cheat", "rep" :
tf_halloween_kart_coast_accel : 300 : , "sv", "cheat", "rep" :
tf_halloween_kart_damage_to_force : 300 : , "sv", "cheat" :
tf_halloween_kart_dash_accel : 750 : , "sv", "cheat", "rep" :
tf_halloween_kart_dash_speed : 1000 : , "sv", "cheat", "rep" :
tf_halloween_kart_fast_turn_accel_speed : 400 : , "sv", "cheat", "rep" :
tf_halloween_kart_fast_turn_speed : 60 : , "sv", "cheat", "rep" :
tf_halloween_kart_idle_speed : 0 : , "sv", "cheat", "rep" :
tf_halloween_kart_impact_air_scale : 0 : , "sv", "cheat" :
tf_halloween_kart_impact_bounds_scale : 1 : , "sv", "cheat" :
tf_halloween_kart_impact_damage : 1 : , "sv", "cheat" : Impact damage scaler
tf_halloween_kart_impact_feedback : 0 : , "sv", "cheat" :
tf_halloween_kart_impact_force : 0 : , "sv", "cheat" : Impact force scaler
tf_halloween_kart_impact_lookahead : 12 : , "sv", "cheat" :
tf_halloween_kart_impact_rate : 0 : , "sv", "cheat" : rate of allowing impact damage
tf_halloween_kart_normal_accel : 300 : , "sv", "cheat", "rep" :
tf_halloween_kart_normal_speed : 650 : , "sv", "cheat", "rep" :
tf_halloween_kart_punting_ghost_force_scale : 4 : , "sv", "cheat" :
tf_halloween_kart_return_turn_accell : 200 : , "sv", "cheat", "rep" :
tf_halloween_kart_reverse_speed : -50 : , "sv", "cheat", "rep" :
tf_halloween_kart_reverse_turn_speed : 50 : , "sv", "cheat", "rep" :
tf_halloween_kart_rocketspell_force : 900 : , "sv", "cheat" :
tf_halloween_kart_rocketspell_lifetime : 0 : , "sv", "cheat" :
tf_halloween_kart_rocketspell_speed : 1500 : , "sv", "cheat" :
tf_halloween_kart_slow_turn_accel_speed : 200 : , "sv", "cheat", "rep" :
tf_halloween_kart_slow_turn_speed : 100 : , "sv", "cheat", "rep" :
tf_halloween_kart_slowmoving_accel : 500 : , "sv", "cheat", "rep" :
tf_halloween_kart_slowmoving_threshold : 300 : , "sv", "cheat", "rep" :
tf_halloween_kart_sound_fast_pitch : 80 : , "cheat", "rep", "cl" :
tf_halloween_kart_sound_slow_pitch : 30 : , "cheat", "rep", "cl" :
tf_halloween_kart_stationary_turn_speed : 50 : , "sv", "cheat", "rep" :
tf_halloween_kart_stun_amount : 1 : , "sv", "cheat" :
tf_halloween_kart_stun_duration_scale : 0 : , "sv", "cheat" :
tf_halloween_kart_stun_enabled : 1 : , "sv", "cheat" :
tf_halloween_kart_turning_curve_peak_position : 0 : , "sv", "cheat", "rep" :
Commands:
sm_kartify <name|#userid> - Puts the chosen player into a bumper kart. Supports group targeters like @all. If your target matches only a single player and they're already in a kart, it unkartifies them instead.
sm_kart <name|#userid> - Same as above.
sm_unkartify <name|#userid> - Removes the chosen player from their bumper kart.
sm_unkart <name|#userid> - Same as above
sm_kartifyme - Puts the using player into a bumper kart. If they're already in a kart, removes it.
sm_kartme - Same as above
sm_unkartifyme - Removes the using player from their bumper kart
sm_unkartme - Same as above
All commands require the slay flag by default.
Cvars:
kartify_version - plugin version
kartify_auto_update (default 1) - enables automatic updating (has no effect if Updater is not installed)
kartify_spawn (default 0) - 0 = do nothing, 1 = put all players into karts on spawn, 2 = put players into karts on spawn only if sm_kartify or sm_kartifyme (or aliases) was used on them previously
kartify_start_percentage (default 0) - The starting damage percentage for people who get kartified
kartify_forced_percentage (default -1) - If 0 or greater, all karts will always have this damage percentage and won't take further damage.
kartify_allow_suicide (default 1) - Allow players to use kill or explode while in karts? The game default is 0.
Installation:
Put kartify.smx into /addons/sourcemod/plugins and reboot your server or type "sm plugins load kartify" into your console or rcon.
Auto Update:
Install
Updater. The plugin will be auto-updated according to your Updater settings. It'll work without Updater.
Changelog:- v1.5.0 (11/9/14)
- Removed cvar kartify_boost_recharge_time (use tf_halloween_kart_boost_recharge instead)
- v1.4.0 (10/31/14)
- Changing team while in a kart now kills you
- v1.3.0 (10/31/14)
- Fixed sounds
- Added kartify_boost_recharge_time cvar
- Added kartify_start_percentage cvar
- Added kartify_forced_percentage cvar
- Added kartify_allow_suicide cvar
- v1.2.0 (10/30/14)
- Fixed backwards cvar values
- Made commands toggle
- v1.1.0 (10/30/14)
- Added sm_kartifyme and sm_unkartifyme
- Added kartify_spawn cvar
- v1.0.0 (10/29/14)
Download Plugin (kartify.smx)
View Source (kartify.sp)
__________________