Raised This Month: $ Target: $400
 0% 

[TF2] Explode into gibs


Post New Thread Reply   
 
Thread Tools Display Modes
Author
strontiumdog
Veteran Member
Join Date: Jan 2007
Location: BC, Canada
Plugin ID:
672
Plugin Version:
1.0.102
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Restores the functionality of VALVe's explode command
    Unapprover:
    Reason for Unapproving:
    Fixed by valve. Plugin not needed.
    Old 12-12-2008 , 22:07   [TF2] Explode into gibs
    Reply With Quote #1

    The recent TF2 update removed some functionality to apparently improve performance. One of the victims was the popular "explode" command where a player could type the command in console and suicide into a pile of gibs. Right now, the player simply dies on the spot as a ragdoll.

    With this plugin, it restores the former function of the command.


    Installation
    • Copy sm_tf_explode.smx file to addons/sourcemod/plugins folder

    Commands

    explode
    Turns a player into a pile of gibs....


    Configuration
    sm_explode_enabled 1
    default 1
    Allow or disallow players from using this command


    Credits
    PinkFairie for his code turning ragdolls into gibs


    Changelog
    v1.0.101
    Released.

    V1.0.102
    Incorporated PinkFairie's great ragdoll code and it works much better!
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_tf_explode.sp - 1339 views - 2.4 KB)
    __________________
    Plugins | TheVille
    Zombie Mod for DoD:S - l4dod.theville.org

    Last edited by strontiumdog; 12-16-2008 at 23:16.
    strontiumdog is offline
    Antithasys
    Moderator
    Join Date: Apr 2008
    Old 12-12-2008 , 23:48   Re: Explode
    Reply With Quote #2

    Nice
    Antithasys is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 12-13-2008 , 00:14   Re: Explode
    Reply With Quote #3

    It was part of the L4D improvements. L4D doesnt have explode.
    __________________

    DontWannaName is offline
    DiscoBBQ
    Veteran Member
    Join Date: Jan 2005
    Location: Clemson, South Carolina
    Old 12-13-2008 , 12:40   Re: [TF2] Explode into gibs
    Reply With Quote #4

    Hey man, after about an hour of expiramenting I've figured out how to make people gib.

    Here's the code:
    Code:
     //Declare:
     decl Ent;
     decl Float:ClientOrigin[3];
     
     //Initialize:
     Ent = CreateEntityByName("tf_ragdoll");
     GetClientAbsOrigin(Client, ClientOrigin);
     
     //Write:
     SetEntPropVector(Ent, Prop_Send, "m_vecRagdollOrigin", ClientOrigin); 
     SetEntProp(Ent, Prop_Send, "m_iPlayerIndex", Client); 
     SetEntPropVector(Ent, Prop_Send, "m_vecForce", NULL_VECTOR);
     SetEntPropVector(Ent, Prop_Send, "m_vecRagdollVelocity", NULL_VECTOR);
     SetEntProp(Ent, Prop_Send, "m_bGib", 1);
     
     //Send:
     DispatchSpawn(Ent);
    You'll also have to remove the "tf_ragdoll" that is created on player death.
    And create a timer to remove this ent after like ~15 seconds to keep from edict overflow.
    __________________
    "Every man is guilty of all the good he did not do"

    Last edited by DiscoBBQ; 12-13-2008 at 12:50.
    DiscoBBQ is offline
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 12-13-2008 , 16:13   Re: [TF2] Explode into gibs
    Reply With Quote #5

    1. It's not an "issue" so it won't be fixed. They removed it on purpose.
    2. This only happens when the player uses the "explode" command.
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)
    Lebson506th is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 12-13-2008 , 16:31   Re: [TF2] Explode into gibs
    Reply With Quote #6

    It was probably a mistake since they may have forgot about it when they took the L4D engine in.
    __________________

    DontWannaName is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 12-16-2008 , 22:01   Re: [TF2] Explode into gibs
    Reply With Quote #7

    Got a question for ya.
    If sm_explode_enabled 1 is set to 0, the command can still be run server side right?

    Just found out the bad way having sm_explode_enabled 1 allows any public player to do it lol.

    Just had a demo submitted showing 4 people blowing themselves up over and over again killing all teammates around them and completely ruining the game.

    I didnt know this plugin actually kills surrounding players as well.

    I need the /explode command for my RTD plugin so... im hoping sm_explode_enabled 1 just disables public use?

    If not, can you please make it an admin only command. Servers with instant respawn, can you just sit in spawn blowing teammates up........

    Last edited by retsam; 12-16-2008 at 22:08.
    retsam is offline
    strontiumdog
    Veteran Member
    Join Date: Jan 2007
    Location: BC, Canada
    Old 12-16-2008 , 22:05   Re: [TF2] Explode into gibs
    Reply With Quote #8

    Make sure the radius is 10 or less.

    Also Retsam, check out the Evil Rocket code...
    __________________
    Plugins | TheVille
    Zombie Mod for DoD:S - l4dod.theville.org

    Last edited by strontiumdog; 12-16-2008 at 22:39.
    strontiumdog is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 12-16-2008 , 22:13   Re: [TF2] Explode into gibs
    Reply With Quote #9

    Its set at default 10 for radius. If you wanna see the demo a user submitted. I can show you.
    I guess I should put the radius down really low. That would be some type of "fix" I suppose.


    Yeah just make it like admin only, then like your rocket plugin, have a cvar you can enable/disable public use.

    Instant respawn with this, allows players to sit in spawn and blow themselves and every close teammate respawning up over and over dominating their own team.

    Anyways, it would be greatly appreciated!!

    Last edited by retsam; 12-16-2008 at 22:50.
    retsam is offline
    strontiumdog
    Veteran Member
    Join Date: Jan 2007
    Location: BC, Canada
    Old 12-16-2008 , 23:17   Re: [TF2] Explode into gibs
    Reply With Quote #10

    OK.
    Updated.

    It no longer places an env_explosion as this affects other players. Instead I used PinkFairie's suggested code and it works much better.

    Thanks PF!
    __________________
    Plugins | TheVille
    Zombie Mod for DoD:S - l4dod.theville.org
    strontiumdog 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 21:23.


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