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

[TF2]Free Cam


Post New Thread Reply   
 
Thread Tools Display Modes
Author
lugui
Senior Member
Join Date: Feb 2016
Location: GetClientAbsOrigin();
Plugin ID:
7384
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows you to Position a camera outside of your player model
    Old 11-21-2020 , 15:11   [TF2]Free Cam
    Reply With Quote #1

    This plugin is intended to be used as a way for players on trade servers to see themselvs and its items from any angle. There are some settings to prevent it from beeing abused.
    It was a paid request by Fearts who wanted it to be made public.

    How to use it
    The command is sm_freecam or sm_fc.
    When you use the command a camera will be created. You can enable the camera control by pressing the Reload Key. It will allow you to drive the camera in a simmilar way you can do in spectator (I've done my best to make it smooth).

    Cvars
    fc_maxCameraDistance "300" // Max distance of the camera from the player. 0 to disable.
    fc_displayBoundary "1" // How many rings should the Boundary display have.
    fc_cameraSpeed "300" //Speed of the camera movement.
    fc_spawnOnly "0" // Only allowed in spawn. (players can still leave the spawn with the command enabled)
    fc_collide "0" // Should the camera collide with walls? This can be glitchy.

    Changelog
    + 1.2.0
    Fixed SMAC Speedhack false positive with MAGNAT2645's sugestion.
    Smoothed camera movement while walking.
    Camera will now point at the player while you are moving away from it.

    + 1.1.0
    Minor fix to boundary display to prevent crash.

    + 1.0.0. Release.

    Always use the latest version. Older versions are on the post merely as legacy code.
    Attached Files
    File Type: sp Get Plugin or Get Source (1.0.1 Freecam.sp - 498 views - 13.4 KB)
    File Type: sp Get Plugin or Get Source (1.2.0-Freecam.sp - 179 views - 13.4 KB)
    File Type: smx 1.2.0-Freecam.smx (13.0 KB, 186 views)
    __________________
    Add me for commissions!
    Steam: [U:1:88621772]
    Discord: lugui#0889
    My Plugins

    Last edited by lugui; 01-12-2021 at 13:21.
    lugui is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 11-21-2020 , 21:16   Re: [TF2]Free Cam
    Reply With Quote #2

    It's a nice plugin. Any way to remove the lag when your character is moving?
    Sreaper is offline
    lugui
    Senior Member
    Join Date: Feb 2016
    Location: GetClientAbsOrigin();
    Old 11-22-2020 , 10:07   Re: [TF2]Free Cam
    Reply With Quote #3

    Quote:
    Originally Posted by Sreaper View Post
    It's a nice plugin. Any way to remove the lag when your character is moving?
    I'll be working on that for the next updates
    __________________
    Add me for commissions!
    Steam: [U:1:88621772]
    Discord: lugui#0889
    My Plugins
    lugui is offline
    dragonbanshee
    Junior Member
    Join Date: Sep 2014
    Location: Massachusetts
    Old 01-07-2021 , 11:43   Re: [TF2]Free Cam
    Reply With Quote #4

    Hello, thank you for this plugin.

    When I load this plugin on my server, my SMAC plugin suspects me of having a speedhack.

    Quote:
    [SMAC] [FP] Banshee is suspected of using a speedhack.
    __________________
    Owner of FirePowered Gaming.

    Link to Steam profile, please leave a comment before adding me.
    dragonbanshee is offline
    MAGNAT2645
    Senior Member
    Join Date: Nov 2015
    Location: AlliedMods.net
    Old 01-07-2021 , 16:05   Re: [TF2]Free Cam
    Reply With Quote #5

    You can use a forward provided by SMAC to filter detections.

    Add this code in plugin and recompile.
    Code:
    #include <smac>
    
    public Action SMAC_OnCheatDetected(int client, const char[] module, DetectionType type, Handle info) {
    	return ( type == Detection_Speedhack && freeCamEnabled[client] && cameraControllEnabled[client] ) ? Plugin_Stop : Plugin_Continue;
    }
    Didn't test, but you should try it.
    __________________
    MAGNAT2645 is offline
    lugui
    Senior Member
    Join Date: Feb 2016
    Location: GetClientAbsOrigin();
    Old 01-12-2021 , 13:15   Re: [TF2]Free Cam
    Reply With Quote #6

    Quote:
    Originally Posted by Sreaper View Post
    It's a nice plugin. Any way to remove the lag when your character is moving?
    The lag is a clientside issue. I don't think I'll be able to fix. I think it has something to do with the fact that the client has its own interpolation of the movement and the camera movement is beeing controlled by the server.

    I've made the camera movement smoother while it is following you.
    The default camera speed was faster than the player, this results in a choppy movement.
    I changed the speed of the automatic movement to be a factor of the distance the camera currently is from the player and the players current moving speed.
    It may help a bit.
    __________________
    Add me for commissions!
    Steam: [U:1:88621772]
    Discord: lugui#0889
    My Plugins

    Last edited by lugui; 01-12-2021 at 13:18.
    lugui 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 06:45.


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