AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [ANY] Thirdperson (https://forums.alliedmods.net/showthread.php?t=175488)

Dr. McKay 01-04-2012 18:01

[ANY] Thirdperson
 
1 Attachment(s)
[ANY] Thirdperson

v1.2.0

Don't use this plugin, use this one instead.

Description:
I've seen this on a lot of servers, but never found it here. So here it is. Allows users to type !thirdperson to go into thirdperson mode. This will send the client sv_cheats 1, which allows them to use r_drawothermodels 2 and other client-side cheats. This is mainly written for trade servers where this is not a problem. Use at your own risk.

Commands:
sm_thirdperson - sends a client into thirdperson mode
sm_firstperson - sends a client into firstperson mode

Cvars:
sm_thirdperson_version - plugin version
sm_thirdperson_enabled (1) - enables or disables the plugin

Installation:
Put thirdperson.smx into /addons/sourcemod/plugins and reboot your server or type "sm plugins load thirdperson" into your console or rcon.

Auto Update:
Install Updater. The plugin will be autoupdated according to your Updater settings. It'll work without Updater.

Changelog:
  • v1.2.0 (4/22/12)
    • Plugin is now unsupported and Updater support was removed
  • v1.1.0 (1/10/12)
    • Added sm_thirdperson_enabled cvar
    • Changed sm_thirdperson's reply when the client is dead
  • v1.0.0 (1/4/12)
    • Initial release

Fearts 01-04-2012 18:03

Re: [ANY] Thirdperson
 
Isn't r_drawothermodels a client side cheat?

Dr. McKay 01-04-2012 18:22

Re: [ANY] Thirdperson
 
Quote:

Originally Posted by Fearts (Post 1625573)
Isn't r_drawothermodels a client side cheat?

True. You can use SMAC's ConVar Checker to prevent wallhacks using r_drawothermodels 2. This plugin is mainly written for trade servers.

Unreal1 01-04-2012 21:22

Re: [ANY] Thirdperson
 
The old one was removed. I don't know why, but I know it had a lot of security errors with it. Which is why allowing client sv_cheats is bad. Even on trade servers this will get abusive and annoying. Is there a way to not enable cheats?

Dr. McKay 01-04-2012 23:02

Re: [ANY] Thirdperson
 
Quote:

Originally Posted by Unreal1 (Post 1625669)
The old one was removed. I don't know why, but I know it had a lot of security errors with it. Which is why allowing client sv_cheats is bad. Even on trade servers this will get abusive and annoying. Is there a way to not enable cheats?

Not that I know of. But I'm sure there are plenty of plugins to block client-side cheats even with sv_cheats enabled client-side.

MasterMind420 01-05-2012 07:07

Re: [ANY] Thirdperson
 
Admin cheats allows using cheat commands on server without sv_cheats enabled, not sure if its something you can use to help, but figured i'd throw that out there, not only that but, Achievements Trophy also forces clients into thirdperson when they get an achievment, just something for you to look into...

Dr. McKay 01-05-2012 16:19

Re: [ANY] Thirdperson
 
Quote:

Originally Posted by MasterMind420 (Post 1625832)
Admin cheats allows using cheat commands on server without sv_cheats enabled, not sure if its something you can use to help, but figured i'd throw that out there, not only that but, Achievements Trophy also forces clients into thirdperson when they get an achievment, just something for you to look into...

I looked into Achievements Trophy, but the command it uses appears to only be present on L4D. And I think you can only remove the cheat flag from server-side commands.

Peace-Maker 01-05-2012 17:00

Re: [ANY] Thirdperson
 
This stock works fine for CS:S. Don't know about other games though.
PHP Code:

stock SetThirdPersonView(clientbool:third)
{
    if(
third)
    {
        
SetEntPropEnt(clientProp_Send"m_hObserverTarget"0); 
        
SetEntProp(clientProp_Send"m_iObserverMode"1);
        
SetEntProp(clientProp_Send"m_bDrawViewmodel"0);
        
SetEntProp(clientProp_Send"m_iFOV"120);
    }
    else
    {
        
SetEntPropEnt(clientProp_Send"m_hObserverTarget", -1);
        
SetEntProp(clientProp_Send"m_iObserverMode"0);
        
SetEntProp(clientProp_Send"m_bDrawViewmodel"1);
        
SetEntProp(clientProp_Send"m_iFOV"90);
    }



Dr. McKay 01-05-2012 22:48

Re: [ANY] Thirdperson
 
Quote:

Originally Posted by Peace-Maker (Post 1626243)
This stock works fine for CS:S. Don't know about other games though.
PHP Code:

stock SetThirdPersonView(clientbool:third)
{
    if(
third)
    {
        
SetEntPropEnt(clientProp_Send"m_hObserverTarget"0); 
        
SetEntProp(clientProp_Send"m_iObserverMode"1);
        
SetEntProp(clientProp_Send"m_bDrawViewmodel"0);
        
SetEntProp(clientProp_Send"m_iFOV"120);
    }
    else
    {
        
SetEntPropEnt(clientProp_Send"m_hObserverTarget", -1);
        
SetEntProp(clientProp_Send"m_iObserverMode"0);
        
SetEntProp(clientProp_Send"m_bDrawViewmodel"1);
        
SetEntProp(clientProp_Send"m_iFOV"90);
    }



Alright, I'll add that in for CS:S first chance I get, and completely rewrite it if it works in other games. I mainly wrote this for TF2, and I haven't found a way to do it in TF2 yet without sv_cheats.

Unreal1 01-10-2012 18:48

Re: [ANY] Thirdperson
 
Can you add the ability to enable or disable the plugin? Because on my went server, I don't want people usig third person during certain events.


All times are GMT -4. The time now is 01:28.

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