Raised This Month: $12 Target: $400
 3% 

[TF2] Kartify


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Plugin ID:
4398
Plugin Version:
1.5.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    68 
    Plugin Description:
    Put players into bumper karts!
    Old 10-29-2014 , 21:29   [TF2] Kartify
    Reply With Quote #1

    [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)
      • Initial release

    Download Plugin (kartify.smx)
    View Source (kartify.sp)
    __________________

    Last edited by Dr. McKay; 07-14-2020 at 05:10.
    Dr. McKay is offline
    404UserNotFound
    BANNED
    Join Date: Dec 2011
    Old 10-29-2014 , 21:46   Re: [TF2] Kartify
    Reply With Quote #2

    Karts do not appear sadly. Dunno if it's a lack of precaching.

    Also a suggestion, use the functions from the Resize Players plugin to change the player's head size back to normal. Maybe add a convar to toggle the head size.

    Last edited by 404UserNotFound; 10-29-2014 at 22:11.
    404UserNotFound is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 10-29-2014 , 22:20   Re: [TF2] Kartify
    Reply With Quote #3

    Is there a benefit to using this over the condset plugins out there?
    Sreaper is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 10-29-2014 , 22:21   Re: [TF2] Kartify
    Reply With Quote #4

    Quote:
    Originally Posted by abrandnewday View Post
    Karts do not appear sadly. Dunno if it's a lack of precaching.
    Fixed!

    models/player/items/taunts/bumpercar/parts/bumpercar.mdl is such an intuitive path for that model.

    Quote:
    Originally Posted by Sreaper View Post
    Is there a benefit to using this over the condset plugins out there?
    You need to set a prop and precache a model to get the kart to show up.
    __________________

    Last edited by Dr. McKay; 10-29-2014 at 22:39.
    Dr. McKay is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 10-29-2014 , 22:23   Re: [TF2] Kartify
    Reply With Quote #5

    Quote:
    Originally Posted by Dr. McKay View Post
    You need to set a prop and precache a model to get the kart to show up.
    I see. Thank you for this plugin.
    Sreaper is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 10-29-2014 , 22:24   Re: [TF2] Kartify
    Reply With Quote #6

    models to show up and a config to assign random songs to it would be pretty awesome.
    Horsedick is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 10-29-2014 , 22:32   Re: [TF2] Kartify
    Reply With Quote #7

    Oops, I fixed the models but forgot to update the thread.

    http://steamcommunity.com/sharedfile.../?id=333802541
    __________________
    Dr. McKay is offline
    Chdata
    Veteran Member
    Join Date: Aug 2012
    Location: Computer Chair, Illinois
    Old 10-29-2014 , 22:44   Re: [TF2] Kartify
    Reply With Quote #8

    Won't really make a difference, but there's TFCondDuration_Infinite
    __________________
    Chdata is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 10-29-2014 , 23:03   Re: [TF2] Kartify
    Reply With Quote #9

    Aww nice models work great...I got a mapper working on a track to add into one of my custom maps.
    Horsedick is offline
    pendrive148
    SourceMod Donor
    Join Date: Aug 2013
    Old 10-29-2014 , 23:15   Re: [TF2] Kartify
    Reply With Quote #10

    You could create a cvar to block the command when player is a ghost/dead?
    pendrive148 is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 06:28.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode