Raised This Month: $32 Target: $400
 8% 

[TF2] Mind Control - updated 2014-7-18


Post New Thread Reply   
 
Thread Tools Display Modes
Author
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Plugin ID:
4244
Plugin Version:
1.0.1
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Control other players
    Old 06-11-2014 , 21:02   [TF2] Mind Control - updated 2014-7-18
    Reply With Quote #1

    This plugin allows you to control any player by taking over their keys, taunts, etc. Seems client buttons arn't sent from spectator, everyone will have to be alive. You can control as many players as you like, and make them attack others, jump off cliffs, or whatever.

    **This messes with player's eye angles.
    If you use SMAC-eyetest - should be fixed now**


    CVARs:
    Code:
    f_mindcontrol_version: version number, for tracking (don't change)
    Commands:
    • sm_mindcontrol, sm_mc: (Slay) allows you to select or de-select the player you are looking at, also accepts args. sm_mc 0 will release all players. sm_mc <targetstring> allows you to target anyone by command.

    Code:
    2014-6-11(v1.0.0)
    * Initial Release
    
    2014-7-18(v1.0.1)
    * Added SMAC forward to prevent cheat detection for players who are controlled
    * Changed beams to allow controlled players to see them.
    * Added auto-fire to locked targets (alt-fire while pressing +use toggles, use it after you have a lock to enable)
    Plans:
    • Find a better way to deal with client prediction / Lead.
    • Calculate projectile speeds and aim to intercept.
    • It's possible to use traceattack and ontakedamage to allow for friendly fire, but I didn't include it. Not sure if I should. It's some extra overhead, and OnPlayerRunCmd is bad enough.

    Usage:
    • sm_mc will select or deselect the player you are directly looking at.
    • special attack (middle mouse) will freeze your movement when you have a minion.
    • +use (you'll have to bind it) allows you to "lock on" to a player, and the minions will track them. Hold it down until you capture a player, then let go. Press again to release the target lock.
    • using alt-fire while using +use will toggle auto-lock, which will cause players to run toward and attack players they have targeted. The beam will turn red while this is active.
    • Reload makes your minions attack
    • Scoreboard view (tab) makes your minions switch weapons
    • Primary fire (left mouse) makes your minions reload

    Notes:
    • While you can control multiple players, weapon switch has a cooldown, which may prevent multiples from switching at once (not sure).
    • Holding forward when not locked will cause players to spin in a circle if they reach the point on the ground.
    • Aim is not perfect, because it's client predicted, and I've not yet compensated for it too well.
    • Target locks persist, even if the target drops out of your minion's line of sight.
    • Before the update on 6/11/2014 it was possible to taunt slide and kill people with minions, seems that no longer is the case.
    • It uses runcmd, so the client's command rate will determine the smoothness of the control. They'll use your buttons (it's queried each calculation). Differences in rates shouldn't matter too much, but it's kind of shaky at 33.

    You can always find the latest version of this here:
    https://drive.google.com/folderview?...Wc&usp=sharing
    Attached Files
    File Type: sp Get Plugin or Get Source (mindcontrol.sp - 1177 views - 23.4 KB)
    File Type: smx mindcontrol.smx (12.0 KB, 1765 views)
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.

    Last edited by friagram; 07-18-2014 at 22:07. Reason: Updated
    friagram is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 06-12-2014 , 02:08   Re: [TF2] Mind Control - 2014-6-11
    Reply With Quote #2

    Were you aware a similar plugin already existed before you started writing that?

    Last edited by Sreaper; 06-12-2014 at 02:09.
    Sreaper is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 06-12-2014 , 08:43   Re: [TF2] Mind Control - 2014-6-11
    Reply With Quote #3

    Yes, but this is significantly different in functionality, and much easier to use (you only need to issue the command, and have the optional +use bound. It also allows for controling multiple players, tracking players (pseudo-aimbot, etc). Though the aim prediction could use some work, the code for it is in there.

    It's just supposd to be a plugin for fooling around with your friends on a server. While you could take control of trolls and mess with them, you could also do stuff like have pet duels or whatever. Or help people that get stuck/lost on community maps. Though, sucks valve broke the slide taunts the day after I wrote this.
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.

    Last edited by friagram; 06-12-2014 at 08:45.
    friagram is offline
    WildCard65
    Veteran Member
    Join Date: Aug 2013
    Location: Canada
    Old 06-12-2014 , 11:43   Re: [TF2] Mind Control - 2014-6-11
    Reply With Quote #4

    friagram, why not use the smac forward to deal with the smac compat issue?
    WildCard65 is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 06-12-2014 , 15:25   Re: [TF2] Mind Control - 2014-6-11
    Reply With Quote #5

    Quote:
    Originally Posted by friagram View Post
    Though, sucks valve broke the slide taunts the day after I wrote this.
    New convar:
    Code:
    tf_allow_sliding_taunt: 0 :, "sv" : 1 - Allow player to slide for a bit after taunting
    I haven't tested it though.

    Last edited by Sreaper; 06-12-2014 at 15:26.
    Sreaper is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 06-13-2014 , 04:07   Re: [TF2] Mind Control - 2014-6-11
    Reply With Quote #6

    It looks like there are a few minor differences with bots, they need their eye angles teleported, rather than set by the forward. Also, I think they need their velocity zeroed out to stop them from moving/jumping (which i did).
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.
    friagram is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 06-13-2014 , 04:11   Re: [TF2] Mind Control - 2014-6-11
    Reply With Quote #7

    Quote:
    Originally Posted by WildCard65 View Post
    friagram, why not use the smac forward to deal with the smac compat issue?
    I'll look into adding that next time I update this.
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.
    friagram is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 06-13-2014 , 07:01   Re: [TF2] Mind Control - 2014-6-11
    Reply With Quote #8

    version for any mods when
    Leonardo is offline
    MafiaBoss
    AlliedModders Donor
    Join Date: Aug 2013
    Old 06-14-2014 , 04:28   Re: [TF2] Mind Control - 2014-6-11
    Reply With Quote #9

    Can you make it so that it doesn't tell the players they are minions + who's controlling them?
    MafiaBoss is offline
    robotortoise
    Senior Member
    Join Date: Nov 2013
    Old 06-14-2014 , 22:18   Re: [TF2] Mind Control - 2014-6-11
    Reply With Quote #10

    Nice! I always wanted an easier-to-use version of the puppet mod.
    robotortoise is offline
    Reply



    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 07:43.


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