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

[CS:GO] Thirdperson


Post New Thread Reply   
 
Thread Tools Display Modes
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 06-07-2014 , 12:59   Re: [CS:GO] Thirdperson
Reply With Quote #21

Quote:
Originally Posted by Zephyrus View Post
where did you get that cvar from? it doesnt exist in csgo...
https://forums.alliedmods.net/showthread.php?t=226359
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 06-07-2014 , 13:07   Re: [CS:GO] Thirdperson
Reply With Quote #22

ah so its c_thirdpersonshoulder, in his first post he said cl_..
__________________
Taking private C++/PHP/SourcePawn requests, PM me.
Zephyrus is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-07-2014 , 14:27   Re: [CS:GO] Thirdperson
Reply With Quote #23

http://steamcommunity.com/games/CSGO...86156728991654
Quote:
Originally Posted by Release Notes for 6/4/2014
[ MISC ]
- The "thirdperson" and related commands are now executable by servers (for mods and plugins).
- Added a server convar (sv_allow_thirdperson) which allows servers to set players to third person mode.
- The env_fog_controller entity now has a field and input to scale the amount fog is adjusted when players zoom (with scoped weapons).
- Community tournament servers with built-in round backups enabled will automatically restore all player data upon reconnection and this in most cases will avoid having to load round backups.
Code:
"firstperson"  client server_can_execute                                         - Switch to firstperson camera.

"thirdperson"  client cheat server_can_execute                                   - Switch to thirdperson camera.

cmds:
sm_thirdperson
sm_firstperson

for bypass server cvar, admins who have access to this "sm_thirdperson_cheat" or have admin flag cheat "n"
PHP Code:
new Handle:sv_allow_thirdperson;
public 
OnPluginStart()
{
    
sv_allow_thirdperson FindConVar("sv_allow_thirdperson");
    
RegConsoleCmd("sm_firstperson"person_mode"Switch to firstperson camera");
    
RegConsoleCmd("sm_thirdperson"person_mode"Switch to thirdperson camera");
}

public 
Action:person_mode(clientargs)
{
    if(
client == || !IsClientInGame(client))
    {
        return 
Plugin_Handled;
    }

    new 
String:arg[20];
    
GetCmdArg(0argsizeof(arg));

    if(
StrEqual(arg[3], "thirdperson"false) && !GetConVarBool(sv_allow_thirdperson))
    {
        if(
CheckCommandAccess(client"sm_thirdperson_cheat"ADMFLAG_CHEATS) && SendConVarValue(clientsv_allow_thirdperson"1"))
        {
            
ReplyToCommand(client"Bypassed server thirdperson restriction!");
        }
        else
        {
            
ReplyToCommand(client"Server sv_allow_thirdperson is disabled! And you not have access!");
            return 
Plugin_Handled;
        }
    }

    
ClientCommand(clientarg[3]);

    return 
Plugin_Handled;


Last edited by Bacardi; 06-07-2014 at 15:04.
Bacardi is offline
Chesterfield
Senior Member
Join Date: Apr 2013
Old 06-08-2014 , 10:21   Re: [CS:GO] Thirdperson
Reply With Quote #24

I've tried already Francisco's one and it works just great, the only problem with the Thirdperson is that you can't play like that since the head of the player covers the crosshair, that's why i've asked if someone could fix the c_thirdpersonshoulder so we actually can play in thirdperson!

Thanks in advance and sorry for my bad english!
Chesterfield is offline
secondtimesold
Senior Member
Join Date: Feb 2015
Old 05-14-2015 , 09:13   Re: [CS:GO] Thirdperson
Reply With Quote #25

^ yes, what he said
__________________
secondtimesold is offline
thecount
Veteran Member
Join Date: Jul 2013
Old 05-14-2015 , 15:47   Re: [CS:GO] Thirdperson
Reply With Quote #26

Quote:
Originally Posted by secondtimesold View Post
^ yes, what he said
You just revived a year-old thread.
thecount is offline
secondtimesold
Senior Member
Join Date: Feb 2015
Old 05-14-2015 , 17:54   Re: [CS:GO] Thirdperson
Reply With Quote #27

good things come to those who wait?
__________________
secondtimesold is offline
ImACow
AlliedModders Donor
Join Date: Feb 2015
Old 03-09-2016 , 05:53   Re: [CS:GO] Thirdperson
Reply With Quote #28

Third Person is indeed broken afaik
__________________
ImACow is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 03-16-2016 , 14:21   Re: [CS:GO] Thirdperson
Reply With Quote #29

Quote:
Originally Posted by ImACow View Post
Third Person is indeed broken afaik
Thirdperson works -> https://forums.alliedmods.net/showthread.php?p=2362296
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 03-16-2016 at 14:22.
Franc1sco is offline
Send a message via MSN to Franc1sco
ImACow
AlliedModders Donor
Join Date: Feb 2015
Old 03-17-2016 , 08:32   Re: [CS:GO] Thirdperson
Reply With Quote #30

Thanks again!
__________________
ImACow 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 18:10.


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