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

LookAtIt [ANY GAME]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
thecount
Veteran Member
Join Date: Jul 2013
Plugin ID:
4469
Plugin Version:
1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Force anyone to look anywhere!
    Old 12-30-2014 , 00:17   LookAtIt [ANY GAME]
    Reply With Quote #1

    LookAtIt!


    This plugin basically gives admins the ability to change where anybody is looking. For example, they could make everyone on the server look at them. To give the players freedom of choice, they can look away once you moved their vision since this only makes them look at you per time the command is fired.

    So far, it works on CSGO & TF2 which leads me to assume it works on most Source games. (atleast the popular ones)

    Commands:
    • !look [CLIENT] - Forces client to look at what you're looking at. (Look at a point)
    • !lookat [CLIENT] [TARGET] - Forces specified clients to look at a specified target. (Look at a player)

    Installation:
    1. Download LookAtIt.smx file
    2. Place the file in your addons/plugins/ folder
    3. Start your server or type in console "sm plugins load LookAtIt"
    Attached Files
    File Type: sp Get Plugin or Get Source (LookAtIt.sp - 673 views - 4.1 KB)

    Last edited by thecount; 12-30-2014 at 00:18.
    thecount is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 12-30-2014 , 01:52   Re: LookAtIt [ANY GAME]
    Reply With Quote #2

    Quote:
    Originally Posted by thecount View Post
    To give the players freedom of choice, they can look away once you moved their vision since this only makes them look at you per time the command is fired.
    You should add a parameter for specifying whether or not you want them to have that freedom.
    Sreaper is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 12-30-2014 , 09:00   Re: LookAtIt [ANY GAME]
    Reply With Quote #3

    For the love of sanity change your vector addition and subtractions to Float
    i.e:
    Code:
    	if(angles[0] >= 270){
    		angles[0] -= 270;
    		angles[0] = (90-angles[0]);
    	}else{
    		if(angles[0] <= 90){
    			angles[0] *= -1;
    		}
    	}
    	angles[1] -= 180;
    to

    Code:
    	if(angles[0] >= 270.0){
    		angles[0] -= 270.0;
    		angles[0] = (90.0-angles[0]);
    	}else{
    		if(angles[0] <= 90.0){
    			angles[0] *= -1.0;
    		}
    	}
    	angles[1] -= 180.0;

    Last edited by Mitchell; 12-30-2014 at 09:00.
    Mitchell is offline
    thecount
    Veteran Member
    Join Date: Jul 2013
    Old 12-30-2014 , 12:00   Re: LookAtIt [ANY GAME]
    Reply With Quote #4

    Quote:
    Originally Posted by Mitchell View Post
    For the love of sanity change your vector addition and subtractions to Float
    Stop following me. lol, it doesn't matter anyways
    thecount is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 12-30-2014 , 13:46   Re: LookAtIt [ANY GAME]
    Reply With Quote #5

    Quote:
    Originally Posted by thecount View Post
    Stop following me. lol, it doesn't matter anyways
    I wasn't i was looking through this code first then i remembered you posted this in the snippets, and it was just a bit messy.
    Mitchell is offline
    Nolongerinthegame
    AlliedModders Donor
    Join Date: Sep 2005
    Old 12-31-2014 , 07:39   Re: LookAtIt [ANY GAME]
    Reply With Quote #6

    Quote:
    Originally Posted by thecount View Post
    Stop following me. lol, it doesn't matter anyways
    Ever heard of constructive criticism? He was just trying to help
    Nolongerinthegame is offline
    thecount
    Veteran Member
    Join Date: Jul 2013
    Old 12-31-2014 , 14:05   Re: LookAtIt [ANY GAME]
    Reply With Quote #7

    Quote:
    Originally Posted by nelioneil View Post
    Ever heard of constructive criticism? He was just trying to help
    Ok.
    thecount 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 05:26.


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