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

Problems with Third Person


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
-Absolute-
Member
Join Date: Mar 2010
Old 10-27-2013 , 14:45   Problems with Third Person
Reply With Quote #1

Hey, I am trying to put a client into third person mode using this code:
PHP Code:
#include <sourcemod>
#include <smlib>


public OnPluginStart()
{
    
HookEvent("player_say"EventPlayerSay);

}


public 
EventPlayerSay(Handle:hEventString:sEventName[], bool:bDontBroadcast)
{
    new 
userid GetEventInt(hEvent"userid");
    new 
client GetClientOfUserId(userid);
    new 
String:textmessage[64];
    
GetEventString(hEvent"text"textmessagesizeof(textmessage));
    if (
StrEqual(textmessage"!third"false))
        
Client_SetThirdPersonMode(client);    
    if (
StrEqual(textmessage"!first"false))
        
Client_SetThirdPersonMode(clientfalse);

But the result looks like this:
https://www.youtube.com/watch?v=QsFNwA_LUug
The viewangles of the camera aren't updated, the view doesn't move, whereas the player model turns..
__________________

Last edited by -Absolute-; 10-27-2013 at 14:45.
-Absolute- is offline
sdz
Senior Member
Join Date: Feb 2012
Old 10-27-2013 , 17:07   Re: Problems with Third Person
Reply With Quote #2

It's not just you, the function itself is just bunked entirely.
sdz is offline
-Absolute-
Member
Join Date: Mar 2010
Old 10-27-2013 , 17:12   Re: Problems with Third Person
Reply With Quote #3

Hm, but I see server which use this. (or atleast have a working thirdperson script)
__________________
-Absolute- is offline
-Absolute-
Member
Join Date: Mar 2010
Old 11-11-2013 , 20:54   Re: Problems with Third Person
Reply With Quote #4

If anyone is interested in the solution:
mp_forcecamera 0 makes it work.
__________________
-Absolute- 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 22:22.


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