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

[TF2] Disguise Jutsu (3.0) [6/22/13]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Plugin ID:
3437
Plugin Version:
3.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Hide from your enemies, turn into a model!
    Unapprover:
    Reason for Unapproving:
    Unapproval requested by author. Newer, supported version at https://forums.alliedmods.net/showthread.php?t=233160?t=233160
    Old 12-29-2012 , 23:51   [TF2] Disguise Jutsu (3.0) [6/22/13]
    Reply With Quote #1

    Newer version and support: http://forums.alliedmods.net/showthread.php?t=233160

    [TF2] Disguise Jutsu
    Version 3.0


    Introduction:
    This plugin is based from the disguise jutsu ability from the RMF ability pack.
    https://forums.alliedmods.net/showthread.php?t=99871

    Allows the player to disguise themselves as different models just for fun.

    Convars:

    sm_disguise_enabled (Default: 1)
    1 - Enabled
    0 - Disabled

    sm_disguise_join (Default: 0) - Should people who spawn get the ability to use disguise jutsu?
    0 - No
    1 - Public
    2 - Admin Generic

    sm_disguise_gib (Default: 1) - Should there be gibs after the model is destroyed? (Only on some models)
    1 = Yes
    0 = No

    sm_disguise_size (Default: 1.0) - Default size of models when disguised.

    sm_disguise_sound (Default: 1.0) - Should players be allowed to play sounds when disguised?

    sm_disguise_stun (Default: 0.0) - Can players get stunned while disguised? 0 = No, 1 = Yes

    sm_disguise_cooldown (Default: 10) - How long until players can disguise again?

    sm_disguise_timer (Default: 2) - Cooldown before players can play a sound from medic call.

    sm_disguise_disabled - Which models should be disabled?

    Model Name List for sm_disguise_disabled:
    barrel,frog,cart,cow,dispenser,controlpoint,p almtree,briefcase,gift1,gift2,monoculus,ghost ,merasmus,horseman,latern,ammo,med

    Commands:
    sm_disguiseme - Enabled disguise jutsu on yourself.

    sm_disguise <Player> <1: On ; 0: Off>
    (e.g sm_disguise @all 1) - Enables disguise jutsu on anyone.

    Admin Generic for both commands, use admins override if you want to me sm_disguiseme public.

    sm_dmenu - Public command, only players who has disguised jutsu enabled will see it.
    (e.g !disguise tak 1 => Makes the player tak able to access !dmenu and can crouch to turn into a model)


    Installation:
    1. Download disguisejutsu.smx and disguise.cfg.
    2. Place the file in sourcemod/plugins folder.
    3. Place the file "disguise.cfg" in cfg/sourcemod folder or just load plugin as it auto generates.
    4. Restart/Refresh map/plugins.

    *If you are updating, reinstall the disguise.cfg file as it may contain new convars!

    Usage:
    1. Join a server and type !disguiseme or !disguise <player> 1.
    2. Type !dmenu to access the model menu.
    2. Hold the crouch button and press the middle mouse button.
    3. Your now a hidden!
    4. You can press the medic button while disguised to play laugh sounds.

    Version Log:
    Code:
    3.0 - 
    - Code rewrite
    - Added sm_disguise_disabled to disable models from menu
    - Added sm_disguise_timer as a cooldown before players can play a sound from pressing medic
    - Added sm_disguise_cooldown as a cooldown before players can disguise again
    - Made some extra checks
    - Timers uses GetClientUserId
    - Fixed clients not able to disguise
    - Clients while disguise can press medic to play random laugh sounds
    - Changed the way to disguise, instead of crouching, it is now crouching+middle mouse button
    - Attacking will remove disguise
    - Removed the speed convar
    - Removed the sound timer convar
    
    2.4 - 
    - Added sounds on disguise(Thanks to snelvuur)
    - Added a fade effect from original author
    - Added an option to block stun effects on saxton/ff2
    - Added 3 cvars to control the sounds and stun
    * - Note: Not sure if it will completely block the stun effect for saxton as i think the saxton rage stun is different from the Stun Player plugin i used to test.  Saxton stun seems to be able to stun and allow the player to crouch while a regular stun from a bat will not allow you to crouch.
    
    2.3 - 
    - Fixed Players not able to attack due to OnPlayerRunCmd when not disguised
    - Fixed Model being forced to all clients
    - Uses a static variable to check for crouching
    - No longer uses OnGameFrame, uses a 0.1 second timer instead
    - Added Monoculus model
    - Added Ghost model (Known issue: particle effect does not go away)
    - Added Merasmus
    - Added Horsemann
    - Added Jacko' Latern
    - Added Ammo Kit
    - Added Med kit
    
    2.2 -
    - Removed the timer teleport for the models
    - Added SetCustomModel which replaces the timer teleport and stop the lag
    - Fixed sm_disguise_join and also removed admin option
    - Player can no longer attack or hurt other players
    
    2.1 -
    - Removed the timer Ads to reduce lag
    - Fixed and now clears the timer when the user no longer uses the barrel
    - Checks if player is in water to prevent any bugs
    - A bit of code clean up
    
    2.0 - 
    - Added colors* requires morecolors.inc to compile
    - Added menu option sm_dmenu
    - Model now follows the players (Uses a timer to teleport the model, can't seem to parent a model)
    - Added option to specify the player's speed when disguised
    - Added option to specify if there should be gibs or not.  (Disable to stop players from spamming gibs)
    - Added an optional timer to display users who has disguise jitsu enabled to be shown about !dmenu
    - Added resize option
    - Fixed disguise jitsu respawn
    - Cleaned some code and messages
    - Hopefully fixes a rare problem i haven't encountered...spam of barrels?
    - Added frog, cart, cow, dispenser, control point, palm tree, briefcase, halloween gift, regular gift model
    
    1.1 - 
    -Change precache to mapstart to prevent crashes.
    
    1.0 - 
    -Released

    To Do List:
    - Add more models?
    - Add the ability to remove certain models from the menu
    - Add option to give allow model change menu to no one, public, or admins only
    More suggestions would be great


    Credit:
    - RIKUSYO code on turning people into a barrel.
    - snelvuur for sounds on disguise

    Enjoy...
    Attached Files
    File Type: smx disguisejutsu.smx (16.6 KB, 839 views)
    File Type: sp Get Plugin or Get Source (disguisejutsu.sp - 613 views - 25.0 KB)
    File Type: cfg disguise.cfg (1.1 KB, 773 views)
    __________________

    Last edited by Chaosxk; 01-10-2014 at 23:55.
    Chaosxk is offline
    DigiplayW8
    Member
    Join Date: Feb 2012
    Location: Indiana, USA
    Old 12-30-2012 , 00:20   Re: [TF2] Disguise Jutsu (1.0) [12/29/12]
    Reply With Quote #2

    thanks for making it, it's a little buggy, but still awesome. i've noticed that if you just tap crouch it may freeze you in position of the barrel w/o letting you more, and if you do manage to get out like that then you are invisible. I've also just crashed my server when i got stuck because i tried resetting the disguise by crouching, and barrels were spawned within barrels causing a crash...other than that it's amazing
    DigiplayW8 is offline
    Chaosxk
    Veteran Member
    Join Date: Aug 2010
    Location: Westeros
    Old 12-30-2012 , 00:42   Re: [TF2] Disguise Jutsu (1.0) [12/29/12]
    Reply With Quote #3

    How odd, i guess...don't tap it till i fix it.
    __________________
    Chaosxk is offline
    Eyelanderules
    Member
    Join Date: Jul 2011
    Old 12-30-2012 , 00:57   Re: [TF2] Disguise Jutsu (1.0) [12/29/12]
    Reply With Quote #4

    Ha, i remember the old times using the ability pack good times, awesome plugin!
    Eyelanderules is offline
    Chaosxk
    Veteran Member
    Join Date: Aug 2010
    Location: Westeros
    Old 12-30-2012 , 14:54   Re: [TF2] Disguise Jutsu (1.0) [12/29/12]
    Reply With Quote #5

    Oops, typo.

    Also i just reread the post from DigiPlay, i made it so you don't move. I don't remember if the RMF Ability Pack version had the ability for you to move or not.
    __________________
    Chaosxk is offline
    scorpadorp
    SourceMod Donor
    Join Date: May 2012
    Location: NC
    Old 12-30-2012 , 20:04   Re: [TF2] Disguise Jutsu (1.0) [12/29/12]
    Reply With Quote #6

    2 problems.

    1) I have sm_disguise_join set to "1" and players still don't have access to it.

    2) It crashes whenever someone tries to turn into a barrel (i.e. they crouch)
    Engine error: 91/pyro_barrel - prop_dynamic: UTIL_SetModel: not precached: models/props_farm/wooden_barrel.mdl
    scorpadorp is offline
    Chaosxk
    Veteran Member
    Join Date: Aug 2010
    Location: Westeros
    Old 12-30-2012 , 22:32   Re: [TF2] Disguise Jutsu (1.0) [12/29/12]
    Reply With Quote #7

    The join cvar automatically sets it on for the public. Just hold crouch and it should work. Setting
    sm_disguise_join to 1 just make it so the public can crouch and turn into a barrel. They won't have access to sm_disguiseme.

    As for the precache error, i changed the OP to precache the materials on map start instead of plugin start which should stop the error.

    Right now i'm working on a cleaner version with menu support to pick different models instead of a barrel.
    __________________

    Last edited by Chaosxk; 12-30-2012 at 22:37.
    Chaosxk is offline
    Mr. Man
    Veteran Member
    Join Date: Mar 2011
    Location: Huh?
    Old 12-31-2012 , 11:05   Re: [TF2] Disguise Jutsu (1.0) [12/29/12]
    Reply With Quote #8

    Quote:
    Originally Posted by Chaosxk View Post
    Right now i'm working on a cleaner version with menu support to pick different models instead of a barrel.
    I am now monitoring this very closely
    Mr. Man is offline
    scorpadorp
    SourceMod Donor
    Join Date: May 2012
    Location: NC
    Old 12-31-2012 , 17:17   Re: [TF2] Disguise Jutsu (1.1) [12/30/12]
    Reply With Quote #9

    Hmm, another thing. There seems to be a noticeable amount of lag when you create many barrels. On my fifth barrel I uncrouched and it didn't break and therefore I was stuck.
    scorpadorp is offline
    Chaosxk
    Veteran Member
    Join Date: Aug 2010
    Location: Westeros
    Old 12-31-2012 , 18:27   Re: [TF2] Disguise Jutsu (2.0) [12/31/12]
    Reply With Quote #10

    Have an update:

    2.0 -
    - Added colors* requires morecolors.inc to compile
    - Added menu option sm_dmenu
    - Model now follows the players (Uses a timer to teleport the model, can't seem to parent a model)
    - Added option to specify the player's speed when disguised
    - Added option to specify if there should be gibs or not. (Disable to stop players from spamming gibs)
    - Added an optional timer to display users who has disguise jitsu enabled to be shown about !dmenu
    - Added resize option
    - Fixed disguise jitsu respawn
    - Cleaned some code and messages
    - Hopefully fixes a rare problem i haven't encountered...spam of barrels?
    - Added frog, cart, cow, dispenser, control point, palm tree, briefcase, halloween gift, regular gift model

    Unfortunately i was unable to figure out how to block players from shooting when disguised.
    Maybe on the next version if i figure it out.
    __________________
    Chaosxk 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 08:46.


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