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

[CS:GO] Thirdperson


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chesterfield
Senior Member
Join Date: Apr 2013
Old 06-04-2014 , 23:39   [CS:GO] Thirdperson
Reply With Quote #1

With the new update from CS:GO now you can enable the thirdperson by typing in console "sv_allow_thirdperson" but you must enable sv_cheats 1 to activate the thirdperson cam, my petition is if could someone make a plugin to turn on the thirdperson without turning on the sv_cheats!

Thanks in advance!
Chesterfield is offline
Biohazardsteven
AlliedModders Donor
Join Date: Nov 2010
Old 06-05-2014 , 00:06   Re: [CS:GO] Thirdperson
Reply With Quote #2

Just to add some more information about this,

[ 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.
Biohazardsteven is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 06-05-2014 , 09:29   Re: [CS:GO] Thirdperson
Reply With Quote #3

This commands in sourcemod works fine for set view on players since the last update
PHP Code:
ClientCommand(client"thirdperson"); 
PHP Code:
ClientCommand(client"firstperson"); 
You can test it writing !tp in chat in my CS:GO server
__________________
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
Chesterfield
Senior Member
Join Date: Apr 2013
Old 06-05-2014 , 12:35   Re: [CS:GO] Thirdperson
Reply With Quote #4

I'm noob wish i could know what to do with that !
Chesterfield is offline
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 06-05-2014 , 13:09   Re: [CS:GO] Thirdperson
Reply With Quote #5

i dont know sourcepawn, can someone upload a plugin
__________________
PresidentEvil is offline
thecount
Veteran Member
Join Date: Jul 2013
Old 06-05-2014 , 13:53   Re: [CS:GO] Thirdperson
Reply With Quote #6

PHP Code:
#include <sourcemod>

public OnPluginStart(){
RegConsoleCmd("sm_tp"Command_Thirdperson"Sets thirdperson.");
RegConsoleCmd("sm_fp"Command_Firstperson"Sets firstperson.");
}

public 
Action:Command_Thirdperson (clientargs){
if(
IsPlayerAlive(client)){
PrintToChat(client"[SM] Thirdperson");
ClientCommand(client"thirdperson");
}else{
PrintToChat(client"[SM] Not alive.");
}
return 
Plugin_Handled;
}

public 
Action:Command_Firstperson (clientargs){
if(
IsPlayerAlive(client)){
PrintToChat(client"[SM] Firstperson");
ClientCommand(client"firstperson");
}else{
PrintToChat(client"[SM] Not alive.");
}
return 
Plugin_Handled;

Works?
thecount is offline
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 06-05-2014 , 14:35   Re: [CS:GO] Thirdperson
Reply With Quote #7

Quote:
Originally Posted by thecount View Post
PHP Code:
#include <sourcemod>

public OnPluginStart(){
RegConsoleCmd("sm_tp"Command_Thirdperson"Sets thirdperson.");
RegConsoleCmd("sm_fp"Command_Firstperson"Sets firstperson.");
}

public 
Action:Command_Thirdperson (clientargs){
if(
IsPlayerAlive(client)){
PrintToChat(client"[SM] Thirdperson");
ClientCommand(client"thirdperson");
}else{
PrintToChat(client"[SM] Not alive.");
}
return 
Plugin_Handled;
}

public 
Action:Command_Firstperson (clientargs){
if(
IsPlayerAlive(client)){
PrintToChat(client"[SM] Firstperson");
ClientCommand(client"firstperson");
}else{
PrintToChat(client"[SM] Not alive.");
}
return 
Plugin_Handled;

Works?
by default it doesn't work, the message pops up but you're still in firstperson, I had to set sv_cheats to 1 and then it works fine

I set sv_cheats back to 0, and the plugin still works, so I guess it needs a workaround when the plugin loads to set sv_cheats to 1 then back to 0 immediately, idk
__________________

Last edited by PresidentEvil; 06-05-2014 at 14:38.
PresidentEvil is offline
Chesterfield
Senior Member
Join Date: Apr 2013
Old 06-05-2014 , 15:16   Re: [CS:GO] Thirdperson
Reply With Quote #8

Tested it, and by default it actually works, it enables the thirdperson when i type sm_tp (without sv_cheats 1) the issues that i see with this is that you actually can't spectate people when you're on thirdperson and you died, could you fix that please? or make something to enable the firstperson automatically after you died?

Also, are there commands to adjust the cam? it would be nice to adjust the cam and "simulate" the "shoulder cam" from Gears of Wars, and if that's possible, could you force clients to automatically have that cam when typing "sm_tp" so they don't have to change commands manually!

Thanks in advance!

Last edited by Chesterfield; 06-05-2014 at 15:37.
Chesterfield is offline
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 06-05-2014 , 15:40   Re: [CS:GO] Thirdperson
Reply With Quote #9

nvm your right,

I forgot to set sv_allow_thirdperson to 1
__________________

Last edited by PresidentEvil; 06-05-2014 at 15:43.
PresidentEvil is offline
Chesterfield
Senior Member
Join Date: Apr 2013
Old 06-05-2014 , 16:11   Re: [CS:GO] Thirdperson
Reply With Quote #10

Tested this command cl_thirdpersonshoulder 1, works buggy, the bullets doesn't go where you're aiming, it seems like it needs a configuration, does anybody know the proper commands for that camera?

EDIT:
Tested all possible combinations, it won't work correctly, damn Volvo.

Last edited by Chesterfield; 06-05-2014 at 16:23.
Chesterfield is offline
Reply


Thread Tools
Display Modes

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 20:56.


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