AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Kartify (https://forums.alliedmods.net/showthread.php?t=250744)

Dr. McKay 10-29-2014 21:29

[TF2] Kartify
 
[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)

404UserNotFound 10-29-2014 21:46

Re: [TF2] Kartify
 
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.

Sreaper 10-29-2014 22:20

Re: [TF2] Kartify
 
Is there a benefit to using this over the condset plugins out there?

Dr. McKay 10-29-2014 22:21

Re: [TF2] Kartify
 
Quote:

Originally Posted by abrandnewday (Post 2217632)
Karts do not appear sadly. Dunno if it's a lack of precaching.

Fixed! :bee:

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

Quote:

Originally Posted by Sreaper (Post 2217649)
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.

Sreaper 10-29-2014 22:23

Re: [TF2] Kartify
 
Quote:

Originally Posted by Dr. McKay (Post 2217651)
You need to set a prop and precache a model to get the kart to show up.

I see. Thank you for this plugin.

Horsedick 10-29-2014 22:24

Re: [TF2] Kartify
 
models to show up and a config to assign random songs to it would be pretty awesome.

Dr. McKay 10-29-2014 22:32

Re: [TF2] Kartify
 
Oops, I fixed the models but forgot to update the thread.

http://steamcommunity.com/sharedfile.../?id=333802541

Chdata 10-29-2014 22:44

Re: [TF2] Kartify
 
Won't really make a difference, but there's TFCondDuration_Infinite

Horsedick 10-29-2014 23:03

Re: [TF2] Kartify
 
Aww nice models work great...I got a mapper working on a track to add into one of my custom maps.

pendrive148 10-29-2014 23:15

Re: [TF2] Kartify
 
You could create a cvar to block the command when player is a ghost/dead?


All times are GMT -4. The time now is 09:55.

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