Raised This Month: $ Target: $400
 0% 

[TF2] Loser state on wish


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Herokim
Senior Member
Join Date: Mar 2010
Location: In Fag-o-land
Old 07-01-2012 , 16:33   [TF2] Loser state on wish
Reply With Quote #1

You want to reply instantly "not possible" but wait, just read this.

Everyone knows the nice plugin called StunMod. Yes, it lets you get stunned and bonked. It's like half the loser state.

Now EVERYONE obviously already found it, but a cvar called "tf_always_loser 1" forces everyone on the server in to the loser state.

This just puts on the animations, we can still use weapons.

The bad thing about it - needs sv_cheats 1. But that can be passed by sm_cvar.

So I am now asking... is it possible to make that loser state be accessible by a command like in StunMod?

!sm_loser/sm_humiliate/sm_handsup.

Last edited by Herokim; 07-01-2012 at 16:39.
Herokim is offline
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Old 07-01-2012 , 20:15   Re: [TF2] Loser state on wish
Reply With Quote #2

Interesting, wasn't aware such a cvar existed, actually...will have to try it out later.

This code is untested, but should work.

PHP Code:
#include <sourcemod>
public OnPluginStart()
{
    
RegAdminCmd("sm_loser"Command_handsupADMFLAG_ROOT);
    
RegAdminCmd("sm_humiliate"Command_handsupADMFLAG_ROOT);
    
RegAdminCmd("sm_handsup"Command_handsupADMFLAG_ROOT);
}

public 
Action:Command_handsup(clientargs)
{
    new 
String:arg1[3];
    
GetCmdArgString(arg1sizeof(arg1));
    new 
newState;
    if (
args 0)
    {
        if (
StrEqual(arg1,"1") || StrContains(arg1,"on"false) == 0newState 1;
        else if (
StrEqual(arg1,"0") || StrContains(arg1,"of"false) == 0newState 0;
    }
    else
    {
        if (
GetConVarInt(FindConVar("tf_always_loser")) == 0newState 1;
        else 
newState 0;
    }
    
SetConVarInt(FindConVar("tf_always_loser"), newState);
    return 
Plugin_Handled;

Attached Files
File Type: sp Get Plugin or Get Source (handsup.sp - 287 views - 737 Bytes)
__________________
Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
MasterOfTheXP is offline
Herokim
Senior Member
Join Date: Mar 2010
Location: In Fag-o-land
Old 07-02-2012 , 12:27   Re: [TF2] Loser state on wish
Reply With Quote #3

It works and doesn't enable cheats. Yay.

Now we just have to do it on only 1 player who gives the command and block +mouse1 & +mouse2 (fire and alt-fire).
Herokim is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 07-02-2012 , 15:36   Re: [TF2] Loser state on wish
Reply With Quote #4

Here's a simple one that will put the admin who uses it into loser state.

I made the duration 10 seconds since you didn't specify, but you can change it to whatever.

PHP Code:
#include <tf2>

public OnPluginStart() RegAdminCmd("sm_humiliate"Command_HumiliateADMFLAG_GENERIC);

public 
Action:Command_Humiliate(clientargsTF2_StunPlayer(client10.0_TF_STUNFLAGS_LOSERSTATE); 
Tylerst is offline
hinehine10
Junior Member
Join Date: Aug 2011
Old 07-03-2012 , 20:03   Re: [TF2] Loser state on wish
Reply With Quote #5

Quote:
Originally Posted by Herokim View Post
Now we just have to do it on only 1 player who gives the command and block +mouse1 & +mouse2 (fire and alt-fire).
but couldn't you just taunt as the Pyro with the new flaregun "The Scorch Shot"?
when primary fire is blocked you could fire your flare anyways by taunting, right?
hinehine10 is offline
Herokim
Senior Member
Join Date: Mar 2010
Location: In Fag-o-land
Old 07-03-2012 , 20:18   Re: [TF2] Loser state on wish
Reply With Quote #6

Taunt is a taunt, it takes a long time to prepare and the target usually notices danger...


Only if afk or writing. Or in a longer taunt.
Herokim 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:00.


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