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

[TF2] ShapeShift (v1.5.5, 2016-07-14)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
UMTeleporter
SourceMod Donor
Join Date: Feb 2009
Plugin ID:
3508
Plugin Version:
1.5.5
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    10 
    Plugin Description:
    Adds the ability to 'shapeshift' to other classes outside of spawn.
    Old 02-01-2013 , 14:13   [TF2] ShapeShift (v1.5.5, 2016-07-14)
    Reply With Quote #1



    [TF2] ShapeShift (v1.5.5, 2016-7-14)


    Note: This plugin uses tf/cfg/sourcemod/plugin.shapeshift.cfg - Edit this to edit permanent settings.


    This adds the ability for players (or admins) to 'shapeshift' into other classes outside of spawn.
    I think this could be really fun on some servers. I have had this for years under another name (Omni-Change.) I am releasing it now.

    Imagine playing as a scout, but your teammates' medic died. Switch to a medic. Or playing as a demoman, and your friend engie died with his buildings near death. Switch to engineer and heal em.

    Of course, i've added things that should make this balanced, such as:

    FEATURES
    • CHANGE CLASS VIA TF2'S CLASS MENU! No binds/commands necessary (outside of arena mode)
    • Ability to disable shapeshifting to and from certain classes.
    • sm_shapeshift/shape commands for switching in Arena (class menu not possible)
    • Usage Punishments (stuns)
    • Cooldown timer
    • Ammo / Health scaling
    • Optional Sound + Effects (default)
    • Custom (OPTIONAL) sounds, by default uses sound that don't need custom DL
    • "Negative" condition preservation (such as Jarate, Fire, Mad Milk, & more)
    • Optional clip regeneration (you keep ammo, but regenerate clip. Otherwise clip is set to 1 -- zero bugs certain weaps)
    • Admin-Only (Or donator) option. Override access with sm_shapeshift_access. Default ADMFLAG_CHEATS
    • sm_shapeshift_force command, to force a client's class
    • Does not activate in Respawn Rooms
    • Shapeshifting to engineer does not give you metal (otherwise was annoying)
    • Admin-set Class locking until player disconnects "Permanent Shapeshift"
    COMMANDS
    Admin commands have the default of ADMFLAG_CHEATS access.
    When setting sm_shapeshift_adminonly to 1, o
    verride access with sm_shapeshift_access in your overrides cfg.
    • ADMIN: sm_shapeshift_force <clients> <target class name>
    • ADMIN: sm_shapeshift_lock <client> <target class name, or None to disable>
    • sm_shapeshift <target class name> - Useful for Arena
    • shape <target class name> - Useful for Arena
    • joinclass <target class name> -- Just use the Class Menu instead.

    CONVARS
    • sm_shapeshift_version
    • sm_shapeshift_enabled - Default 1
    • sm_shapeshift_cooldown - Default 30, in seconds
    • sm_shapeshift_adminonly - Default 0. Override sm_shapeshift_access to set flags.
    • sm_shapeshift_tag - Default 0 - For server tags, default doesn't add 'shapeshift.'
    • sm_shapeshift_effects - Default 1 - Enables/disables sound+graphic effects
    • sm_shapeshift_sound - The shapeshift sound *file* played when effects are enabled, for example "npc/ichthyosaur/water_growl5.wav"
    • sm_shapeshift_displayready - Default 1 - 0 = disable, 1 = Hint Text, 2 = Chat Text, 3 = like sm_csay
    • sm_shapeshift_allowregen - Default 0 - Allows switching to same class or the command "joinclass regen"
    • sm_shapeshift_newclip - Default 0 - Allows ammo clip (not reserve) to be regenerated. Otherwise clip is set to 1 (technical reasons)
    • sm_shapeshift_punishmode - Default 0 - 0: No punishment 1: Silent Bonk Stun 2: Slowdown, disable forward/backward 3: Big Bonk + Sound 4: Thirdperson 5: Loser state (like round end losers)
    • sm_shapeshift_punishtime - Default 6, in seconds
    • sm_shapeshift_disable_fromclass - Default "" - A comma separated list of classes to disable shapeshifting from. For example "medic,scout" will disable shapeshifting (changing out of spawnroom) while a medic or scout.
    • sm_shapeshift_disable_toclass - Default "" - Same as _fromclass above, except you cannot shapeshift out of spawnrooms *to* these classes.
    • sm_shapeshift_no_engie_metal - Default 0 - 0 = Engineers do not have their metal reset - 1 = they do.
    NATIVES
    • native Float:ShapeShift_Cooldown(client);
    • native ShapeShift_ResetCooldown(client);
    • native ShapeShift_Force(client, TFClassType:tfclass);
    • forward Action:OnShapeShift(client, currentClass, &targetClass);
      (see shapeshift_funcs.inc for details)
    CHANGELOG

    Update July 14th, 2016
    - Recompiled (I believe this fixed issues others were having)
    - Misc changes/fixes I cannot remember.

    Update September 4th 2014
    - Fixed a case where players would lose weapons (ShapeShifting inside a solid object such as a friendly sentry/dispenser.) The plugin simply prevents ShapeShifting in solids.
    - Added a failure sound

    Update August 24th 2014
    - Fixed medic healing exploit
    - Fixed sm_shapeshift_version from using cfg value
    - Fixed plugin error msg

    Update April 10th 2014
    - Added forward Action:OnShapeShift(client, currentClass, &targetClass);
    (see shapeshift_funcs.inc for details)
    Allows plugins to control whether or not a user may initiate ShapeShift.
    Update Jan 2nd 2014
    - Fixed bonk bug/exploit

    Update Jan 2nd 2014
    - Added force, cooldown natives, by request

    Update Dec 29th 2013:
    - Added sm_shapeshift_no_engie_metal, default 0

    Update Dec 23rd 2013:
    - Fixed the breaking of attachment points

    Update Oct 5th 2013:
    - Added class menu support for Arena game mode, via command !shape/!sm_shapeshift

    Update July 23rd 2013:
    - Fixed a respawn timer bypass exploit

    2013-02-07
    - Released v1.0. v1.0 'cause I think it no longer has any major, noticable problems.
    - Fixed a weapon regeneration bug. If the client had FL_NOTARGET applied, the client wouldn't get weapons on regeneration.
    - sm_shapeshift_tag is now 0 by default.
    - Added cvar sm_shapeshift_version

    2013-02-02 -- This is to mostly fix a health exploit, but added a cmd a friend requested
    - Released v0.3
    - Fix health exploit. An oversight on my part. Your health would scale up even if you weren't full health. Now your health ONLY scales up if you're atleast full health.
    - Added ability to lock players into a certain class
    - Admin cmds now use ShowActivity2

    2013-02-02
    - Released v0.2
    - Added To/From class limitations
    - Added _force command
    - Addd force switch weaps to fix rare civi bug
    - Fixed handle leak
    - Added sm_shapeshift and 'shape' commands/binds for Arena mode

    2013-02-01
    - Released v0.1


    REQUIRES: SDKHOOKS
    Attached Files
    File Type: smx shapeshift.smx (23.8 KB, 842 views)
    File Type: sp Get Plugin or Get Source (shapeshift.sp - 692 views - 32.3 KB)
    File Type: inc shapeshift_funcs.inc (2.0 KB, 539 views)

    Last edited by UMTeleporter; 07-14-2016 at 12:24. Reason: added update again
    UMTeleporter is offline
    jasonfrog
    Senior Member
    Join Date: Mar 2008
    Old 02-02-2013 , 07:00   Re: [TF2] ShapeShift (v0.1, 2013-02-01)
    Reply With Quote #2

    Great job!

    Can this be made to work in Arena mode?
    jasonfrog is offline
    UMTeleporter
    SourceMod Donor
    Join Date: Feb 2009
    Old 02-02-2013 , 14:36   Re: [TF2] ShapeShift (v0.2, 2013-02-02)
    Reply With Quote #3

    For arena mode, you can't open the class menu. Atleast, I don't know of a way to enable that, i've looked around. So you'll have to make do with /shape class, or bind key "shape class", etc. I added this command just now. "joinclass" would've worked before, but I think /shapeshift and /shape makes more sense.

    Added v0.2

    Someone requested shapeshift class-to/from-class limitations. Added that.

    2013-02-02
    - Released v0.2
    - Added To/From class limitations
    - Added _force command
    - Addd force switch weaps to fix rare civi bug
    - Fixed handle leak
    - Added sm_shapeshift and 'shape' commands/binds for Arena mode

    Last edited by UMTeleporter; 02-02-2013 at 14:37.
    UMTeleporter is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 02-02-2013 , 15:05   Re: [TF2] ShapeShift (v0.2, 2013-02-02)
    Reply With Quote #4

    This plugin is beautiful and my community loves it. Thank you. =D

    Last edited by Sreaper; 02-02-2013 at 15:05.
    Sreaper is offline
    island55
    Senior Member
    Join Date: Aug 2010
    Location: charleston
    Old 02-02-2013 , 15:17   Re: [TF2] ShapeShift (v0.2, 2013-02-02)
    Reply With Quote #5

    you could really confuse people using this...
    island55 is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 02-02-2013 , 15:45   Re: [TF2] ShapeShift (v0.2, 2013-02-02)
    Reply With Quote #6

    Quote:
    Originally Posted by island55 View Post
    you could really confuse people using this...
    That's true with just about any mod.

    Last edited by Sreaper; 02-02-2013 at 15:48.
    Sreaper is offline
    UMTeleporter
    SourceMod Donor
    Join Date: Feb 2009
    Old 02-03-2013 , 14:16   Re: [TF2] ShapeShift (v0.3, 2013-02-03)
    Reply With Quote #7

    Updated to 0.3
    Fixed a health exploit oversight on my part. Nothing major, but you health could scale up if it wasn't already full health, didn't mean to have that. Additional info is in the changelog. And added requested ability to lock players to a certain class.

    Last edited by UMTeleporter; 02-03-2013 at 14:17.
    UMTeleporter is offline
    russell99ky
    Member
    Join Date: Apr 2008
    Old 02-03-2013 , 14:49   Re: [TF2] ShapeShift (v0.3, 2013-02-03)
    Reply With Quote #8

    I have this set to admins only, but other people can still us. Also what is the override cmd to change the admin flag to "o". Thanks.
    russell99ky is offline
    UMTeleporter
    SourceMod Donor
    Join Date: Feb 2009
    Old 02-03-2013 , 14:54   Re: [TF2] ShapeShift (v0.3, 2013-02-03)
    Reply With Quote #9

    sm_shapeshift_adminonly - Default 0. Override sm_shapeshift_access to set flags.

    For the mod to be Admin Only, you must set sm_shapeshift_adminonly to 1.
    Also note that you must do this in plugin.shapeshift.cfg or your settings will be overwritten next map change or plugin reload, as it uses AutoExecConfig

    EDIT: Also note, this still lets people change class in respawn, as the game normally would.

    Last edited by UMTeleporter; 02-03-2013 at 14:56. Reason: added note
    UMTeleporter is offline
    UMTeleporter
    SourceMod Donor
    Join Date: Feb 2009
    Old 02-07-2013 , 19:39   Re: [TF2] ShapeShift (v1.0, 2013-02-07)
    Reply With Quote #10

    * Released v1.0
    * Fixed a weapon regeneration bug. If the client had FL_NOTARGET applied, the client wouldn't get weapons on regeneration.
    * sm_shapeshift_tag is now 0 by default.
    * Added sm_shapeshift_verison cvar

    Last edited by UMTeleporter; 02-07-2013 at 19:41.
    UMTeleporter 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 23:33.


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