AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   Anti-Ghosting Tool (https://forums.alliedmods.net/showthread.php?t=64112)

TFN|Nick 12-08-2007 12:55

Anti-Ghosting Tool
 
1 Attachment(s)
TFN ANTI-GHOSTING TOOL (Unapproved due to errors until further notice)


by
-=( TFN | Pieface )=-



IMPORTANT!!
This plugin is still in BETA development and so you may experiance some problems. The author is prepared to help solve any problems but will need details on errors, error log entries and sourcemod version information.

This plugin is released via GPLv3.

Description
This is a plugin designed to help prevent ghosting on servers through the use of CVar Values. Server Admins will still be able to see all players.

Installation
Requirements:
-MetaMod:Source 1.4.1.400 or higher
-SourceMod Version 1780 or higher

Navigate to: /mod/addons/sourcemod/ and place:
-sm_ghost.smx in the plugins folder
-sm_ghost.sp in the scripting folder
-plugins.ghost.txt in the gamedata folder

This is currently only tested on CS:S servers, but further mod support will hopefully be coming soon.

CVars
sm_ghost_active - enables/disables the plugin
sm_ghost_mode - set the mode people can observe in. Overide for admins.
sm_ghost_version - the plugin version

sm_ghost_mode set at:
-0 will allow everyone to see everyone.
-2 will allow people on the same team to view each other but no else

Experimentation will throw up more settings and these will be added to these notes. If you find a setting please share it with the author for reference.

To Do
Add in working system based on client ip Add in support for other mods
Add in a menu system(??)

Change Log
0.1.0 - Initial Release

tkaway69 12-08-2007 14:30

Re: Anti-Ghosting Tool
 
Thanks man. Getting this in error logs.

Code:

L 12/08/2007 - 13:26:54: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 50 on
L 12/08/2007 - 13:26:54: [SM] Native "SDKCall" reported: Invalid Handle 0 (error 4)
L 12/08/2007 - 13:26:54: [SM] Debug mode is not enabled for "sm_ghost.smx"
L 12/08/2007 - 13:26:54: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 50 on
L 12/08/2007 - 13:28:55: [SM] Native "SDKCall" reported: Invalid Handle 0 (error 4)
L 12/08/2007 - 13:28:55: [SM] Displaying call stack trace for plugin "sm_ghost.smx":
L 12/08/2007 - 13:28:55: [SM]  [0]  Line 114, sm_ghost.sp::OnClientPutInServer()

Plugin is running though. Not sure if it is actually working at this point though. The Menu system would be nice for displaying all players on same ip so you could disable the ghosting plugin on trusted players.

TFN|Nick 12-08-2007 14:34

Re: Anti-Ghosting Tool
 
Hi tkaway69,

thanks for the report, i know what that is and will try to get a release out later.

TFN | Nick

sslice 12-08-2007 14:35

Re: Anti-Ghosting Tool
 
Aren't there already CVARs that do the same thing.

tkaway69 12-08-2007 14:46

Re: Anti-Ghosting Tool
 
@ sslice.
Not that I am aware of. I know you can make everyone in server view chase cam. I am hoping this is for players on same ip only.

TFN|Nick 12-08-2007 14:50

Re: Anti-Ghosting Tool
 
Thats true, mp_forcecamera 1 is there, but there are no overides for admins... which is what this plugin is trying to achieve. At best it works, at worst i get nothing out of it but a better undertanding of coding, which is win win for me.

And there will be ip support shortly... a few kinks to work out with it and it should be fully ready to go.

tkaway69 12-08-2007 15:18

Re: Anti-Ghosting Tool
 
Admins is just a added bonus I had not thought of. Thanks.

TFN|Nick 12-08-2007 16:32

Re: Anti-Ghosting Tool
 
Okay... after about 2 hour of looking at the scripts i found something which kind of voids the plugin. I was using a Virtual Function which on further inspection doesn't target entities like i had thought, it simply sets a global setting on each client. This means that the plugin will not have the desired affect of allowing admins to be exempt from being limited, but will instead allow everyone to play as normal- voiding the plugins function.

I am thereby withdrawing the plugin until i can make something that works.

tkaway69 12-08-2007 18:35

Re: Anti-Ghosting Tool
 
Understood. I would like to state in plugins defense that if it is not possible to exempt admins that is fine. The Plugin actually only needs to focus on players with same ip. Thank you.

TFN|Nick 12-09-2007 07:35

Re: Anti-Ghosting Tool
 
uh... thats not the point i was really trying to make! lol. The problem is that the tool i was using to set it per player will just set it for everybody regardless. It essentially sets mp_forcecamera to whatever you set the convar to.

It won't actually target a specific client which is what was originally wanted. So if there is a player on the server with the same ip as another player it will set everyone to mp_forcecamera 2. That throws up problems if your an admin and someone is accused of cheating becuase without removing the camera restriction they won't be able to spec them to determine if they are or not.

So essentially the plugin is useless for the time being. I am trying to find another way around this but i highly doubt there is :(

EDIT: And even that doesn't seem to work :(


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

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