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

[TF2] Class Thief Plugin (Change class on kill)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Hello_TF2
Junior Member
Join Date: May 2015
Plugin ID:
4636
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    steal the enemy's class on kill.
    Old 05-16-2015 , 21:38   [TF2] Class Thief Plugin (Change class on kill)
    Reply With Quote #1

    If you kill someone, you immediately become that class. I.e., if you kill a scout, you will become a scout immediately without being sent back to spawn.

    You keep the same percentage of health (i.e. a soldier at 100 HP that kills a heavy will become a heavy at 150 HP)

    Your ammo and metal will be fully restocked.

    Version 1.1

    added commands:
    • sm_ct_enabled
    • sm_ct_disabled
    Which enable and disable class theft, respectively.

    also made classes non-permanent. If you spawn as pyro, no matter what you are when you die, you'll respawn as pyro unless you change class manually.

    Version 1.2

    added commands:
    • sm_ct_chance
    which changes the chance of stealing on kill, default is 100 (i.e., 100%)
    Attached Files
    File Type: sp Get Plugin or Get Source (class_thief.sp - 869 views - 2.4 KB)

    Last edited by Hello_TF2; 05-18-2015 at 18:32.
    Hello_TF2 is offline
    secondtimesold
    Senior Member
    Join Date: Feb 2015
    Old 05-16-2015 , 21:57   Re: [TF2] Class Thief
    Reply With Quote #2

    sounds fun.

    playing it now..

    three things id like to see changed are..

    1. returning to the first class you picked after death

    2. being able to load the plugin but the mode is disabled and turn it on by command whenever

    3. Change how many kills before you steel a class
    __________________

    Last edited by secondtimesold; 05-16-2015 at 22:18.
    secondtimesold is offline
    Hello_TF2
    Junior Member
    Join Date: May 2015
    Old 05-16-2015 , 23:44   Re: [TF2] Class Thief
    Reply With Quote #3

    Quote:
    Originally Posted by secondtimesold View Post
    sounds fun.

    playing it now..

    three things id like to see changed are..

    1. returning to the first class you picked after death

    2. being able to load the plugin but the mode is disabled and turn it on by command whenever

    3. Change how many kills before you steel a class
    I'm not sure what you mean by "Change how many kills before you steel a class".
    like only take the class every 3 kills or so, and be able to change that number?

    I'll get to work on the first two, though.

    Last edited by Hello_TF2; 05-16-2015 at 23:44.
    Hello_TF2 is offline
    secondtimesold
    Senior Member
    Join Date: Feb 2015
    Old 05-16-2015 , 23:58   Re: [TF2] Class Thief
    Reply With Quote #4

    yea just like that.. like 3 kills or whatever is specified.

    3 kills seems about right.. doing on first kill just seems too often in-game and gets kind of annoying.



    when u start as scout and kill a spy then somone kills you... they are spy then you respawn a spy.. eventually everyone is spy... so thats why i thought it should change u to your default pick

    was testing on a orange server and this could be pretty fun every so often to liven things up
    __________________

    Last edited by secondtimesold; 05-17-2015 at 00:01.
    secondtimesold is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 05-17-2015 , 00:01   Re: [TF2] Class Thief
    Reply With Quote #5

    You do not need to attach the SMX if it compiles fine on the forums as uploading the source will add the compiled version automatically.
    Also what's with the difference in file sizes?

    Last edited by Sreaper; 05-17-2015 at 00:02.
    Sreaper is offline
    Potato Uno
    Veteran Member
    Join Date: Jan 2014
    Location: Atlanta, Georgia
    Old 05-17-2015 , 00:46   Re: [TF2] Class Thief
    Reply With Quote #6

    Does this work on mann vs machine as well?
    Potato Uno is offline
    Hello_TF2
    Junior Member
    Join Date: May 2015
    Old 05-17-2015 , 00:58   Re: [TF2] Class Thief
    Reply With Quote #7

    Quote:
    Originally Posted by Sreaper View Post
    You do not need to attach the SMX if it compiles fine on the forums as uploading the source will add the compiled version automatically.
    Also what's with the difference in file sizes?
    I'm not sure, I was testing it for a while, so I might've attached an earlier version by accident.

    Last edited by Hello_TF2; 05-17-2015 at 01:30.
    Hello_TF2 is offline
    Hello_TF2
    Junior Member
    Join Date: May 2015
    Old 05-17-2015 , 01:38   Re: [TF2] Class Thief
    Reply With Quote #8

    Quote:
    Originally Posted by Potato Uno View Post
    Does this work on mann vs machine as well?
    Yes, but your upgrades won't carry from class to class.
    Hello_TF2 is offline
    Hello_TF2
    Junior Member
    Join Date: May 2015
    Old 05-17-2015 , 01:40   Re: [TF2] Class Thief
    Reply With Quote #9

    Quote:
    Originally Posted by secondtimesold View Post
    yea just like that.. like 3 kills or whatever is specified.

    3 kills seems about right.. doing on first kill just seems too often in-game and gets kind of annoying.



    when u start as scout and kill a spy then somone kills you... they are spy then you respawn a spy.. eventually everyone is spy... so thats why i thought it should change u to your default pick

    was testing on a orange server and this could be pretty fun every so often to liven things up
    I added your first two suggestions but I have no idea how to implement the third. I'll work on a settable random chance to steal for now.
    Hello_TF2 is offline
    secondtimesold
    Senior Member
    Join Date: Feb 2015
    Old 05-17-2015 , 10:16   Re: [TF2] Class Thief Plugin (Change class on kill)
    Reply With Quote #10

    thank you that is awesome. we have it loaded on server now and admins will enable when in the mood
    __________________
    secondtimesold 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 12:04.


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