AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2]Free Cam (https://forums.alliedmods.net/showthread.php?t=328698)

lugui 11-21-2020 15:11

[TF2]Free Cam
 
3 Attachment(s)
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.

Sreaper 11-21-2020 21:16

Re: [TF2]Free Cam
 
It's a nice plugin. Any way to remove the lag when your character is moving?

lugui 11-22-2020 10:07

Re: [TF2]Free Cam
 
Quote:

Originally Posted by Sreaper (Post 2725834)
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

dragonbanshee 01-07-2021 11:43

Re: [TF2]Free Cam
 
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.

MAGNAT2645 01-07-2021 16:05

Re: [TF2]Free Cam
 
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.

lugui 01-12-2021 13:15

Re: [TF2]Free Cam
 
Quote:

Originally Posted by Sreaper (Post 2725834)
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.


All times are GMT -4. The time now is 11:21.

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