AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   Unapprove Me! ~~ [CS:S] Surf Config (https://forums.alliedmods.net/showthread.php?t=108324)

thetwistedpanda 11-04-2009 03:01

Unapprove Me! ~~ [CS:S] Surf Config
 
8 Attachment(s)
Warning: Do Not Use. Plugin crashes servers and is not supported at this time.

Information:
  • Surf Config is designed to be a nearly all-in-one solution for anyone that wants to host a surf server yet do not want to burden their servers with death match or numerous plugins.
Features:
  • Almost every feature is able to be enabled or disabled via a configuration file, if you do not want a specific module to be running.
  • Respawn Module
    • If enabled, players may receive a limited number of respawns, an infinite number of respawns, no respawns, or only one spawn granted to new players.
    • The amount of respawns a player receives may be modified, as well as the delay between respawns, and even the ability to disable respawns after a period of time.
  • Teleportation Module
    • If enabled, players receive access to sm_tele and sm_recall which return them to their spawning position.
    • The duration between teleport commands, the length of time required to wait before teleporting, and the ability to cancel a teleport if a player moves too far are provided.
  • Spawn Protection Module
    • If enabled, players are protected for a specified number of seconds upon spawning.
  • Additional Features
    • Dynamic Loading: You can disable or enable the script globally via sm_surfcfg_enable, or set the variable to -1 and it will only enable on surf or slide maps.
    • Coloring: If enabled, a separate color for each team may be assigned upon spawning.
    • Bunny Assistance: If enabled, players receive a modifiable upward and forward push upon jumping.
    • No Block: If enabled, player collisions are disabled upon spawning.
    • Buy Zone Removal: If enabled, buy zones will be removed from the current map.
    • Air Acceleration Monitoring: Allows you to keep a specified value for sv_airaccelerate to overwrite map modifications.
    • Chat Notifications: Ability to enable or disable all notifications, or only allow notifications for the Teleportation or Respawn module.
    • Chat Display: Customize Surf Config for your server with a prefix attached to any chat notification.

Installation:
  • Place surf_cfg.gamedata.txt into the following directory: /addons/sourcemod/gamedata/
  • Place surf_cfg.smx into the following directory: /addons/sourcemod/plugins/

Credits:
  • sumguy14: For his BunnyHop script, most of the code regarding it is his, I've only rewritten it to match my own coding style.
  • Fredd: For the general idea; this plugin stems from being unsatisfied with his creation.
  • psychonic: For bringing up the 64 player array issue.

Change Log:
  • v1.0: Script Repeased.
  • v1.1: Fixed several silly programming mistakes; Added sm_surfcfg_notify_mode to give server hosts control over messages set to clients, which are now much more user friendly; Fixed a few invalid Handle errors due to improper use of handles; Added a global timer to make sm_teleport cooldown provider user feedback.
  • v1.2: Fixed sm_surfcfg_version not being correct; Fixed a mistake in sm_teleport that allowed consecutive stringing of commands.
  • v1.3: Fixed more silly handle issues; fixed an issue where the previous map's handle was not deleted on map change, causing the time to double,triple,etc; changed the map config directory to surf_cfg, to match the actual script name.
  • v1.4: Fixed an issue where the global timer was not reset on a new round; Removed sm_surfcfg_respawn_mode 2 and replaced it with a functional sm_surfcfg_respawn_new_players convar which spawn players if they join late
  • v1.5: Fixed an issue that would cause 64 slot surf servers to have issues while using this plugin. Removed accidental {HoM} branding on the plugin information.
  • v1.6: Added sm_surfcfg_display, sm_surfcfg_teleport_cancel, sm_surfcfg_teleport_distance. Dynamic detection of "slide" maps to sm_surfcfg_enabled, and reorganized and redefined all variables for Surf Config.

To Do List:
  • Any Requests?

daleGEND 11-06-2009 19:59

Re: [CS:S] Surf Config
 
How can people spawn in game if they are late to joining the game?

EDIT: Also, sm_teleport does not work at all!

thetwistedpanda 11-06-2009 20:44

Re: [CS:S] Surf Config
 
The actual command is sm_tele, daleGEND, as to not interfere with the admin verison of sm_teleport. As for the spawning late, sm_surfcfg_respawn_mode set to 2 would allow new players to spawn. However that feature was added in a hurry and I may need to rewrite the way it works.

daleGEND 11-06-2009 21:29

Re: [CS:S] Surf Config
 
If it's set to "2" will people still be able to respawn if they die?

thetwistedpanda 11-06-2009 22:00

Re: [CS:S] Surf Config
 
That feature was quickly written and not tested, it is fail beyond belief (but then again, I do most of my programming when I'm drunk). I'm in the process of writing the next version, and instead of respawn_mode == 2, I added a stand alone cvar that if enabled, will respawn new players. I should have the new version up sometime tomorrow if you can wait. I want to do a little bit more before releasing it.

daleGEND 11-06-2009 22:21

Re: [CS:S] Surf Config
 
Okay, thanks!

thetwistedpanda 11-06-2009 22:23

Re: [CS:S] Surf Config
 
On second thought, I'll go ahead and release version 1.4 as my previous objectives are rather pointless.

No one is requesting multi-language support at the moment so that one can wait. Hooking sv_accelerate is more or less pointless unless you want to override map settings (will add if requested). The sm_boost command would be best made for a secondary plug-in rather then bloating this one further. And I'm not drunk enough.

v1.4 fixes a few drunken mistakes and properly allows new players to spawn to the server. One new cvar, so I've provided a properly generated cfg.

daleGEND 11-07-2009 11:28

Re: [CS:S] Surf Config
 
Nice,

You should set a say message to announce the ability of sm_tele and other various things so users are aware of their existence :)

zerosin 12-11-2009 08:38

Re: [CS:S] Surf Config
 
Excellent Panda,
Will try this out, since SurfTools is no longer supports, hope your spawning with no weapon works. Will update you on our windows test box.

Thanks again for your work, have a Sierra Nevada on me :)

zero

zerosin 12-11-2009 22:18

Re: [CS:S] Surf Config
 
Tested it last night, works right out of the box, hands down the best surf tools for any surfmod servers.

Didn't generate any errors while recompiling in SM1.2, runs great so far, will report if there's any anomalies.

I have a question about the sm_surfcfg_config_mode - Mode: If enabled, the plugin will check /cfg/surf_cfg/ for map configuration files for custom map settings. [0=Disabled, 1=Enabled] option. So lets say I want to spawn no weapons for a certain map, what config would I put in it, & another map that spawns a knife? How would the codes be in cfg file for the map, please shed some light.

Thx again for this great module.

Running -
Win2003 Server
MM:S 1.7.1V
SM 1.2
SB 1.4.5
HLXce 1.6.2

peace,
zero

psychonic 03-01-2010 10:22

Re: [CS:S] Surf Config
 
@thetwistedpanda

Please increase your array sizes by 1, otherwise there will be index out of bounds errors on full 64-slot servers.

Ex.
PHP Code:

new p_Player[MAXPLAYERS][PLAYER_DATA];
new 
Float:p_Locations[MAXPLAYERS][LOCATION_DATA]; 

to
PHP Code:

new p_Player[MAXPLAYERS+1][PLAYER_DATA];
new 
Float:p_Locations[MAXPLAYERS+1][LOCATION_DATA]; 


RaRa 03-27-2010 14:04

Re: [CS:S] Surf Config
 
Hi can i have more info on the
sm_surfcfg_enabled setting?
will Dynamic make this mod activate on only surf maps? Thanks

clanosg 05-16-2010 20:36

Re: [CS:S] Surf Config // HELP PLEASE
 
ERROR:

COMMAND CONSOLE SM PLUGINS REFRESH:
[SM] Failed to load plugin "surf_cfg.smx": Unable to load plugin (error 1: Unrecognizable file format)

COMMNAD CONSOLE SM PLUGINS LIST:
<Bad Load> surf_cfg.smx

Wait for an answer, URGENT, THANKS

thetwistedpanda 05-16-2010 21:13

Re: [CS:S] Surf Config
 
*edit*

clanosg, that is not an issue with my plug-in. It seems the file was corrupted during download/upload, please download the latest version and try again.

Also, could I get this plugin approved as I fixed the issue that caused it to be unapproved in the first place?

BDeep 06-24-2010 10:06

Re: [CS:S] Surf Config
 
Need updated gamedata since valve update.

CTS_AE 06-24-2010 15:34

Re: [CS:S] Surf Config
 
new game datas pl0x?

how hard is it for someone to update this?

Just wondering, I wish I would have seen this plugin b4 the update, but Im hoping I'll get a chance with it in the future.

thetwistedpanda 06-24-2010 16:21

Re: [CS:S] Surf Config
 
Sorry it's sorta hard for me to update things when my only form of internet is through a Nintendo Wii console atm (computer crashed the night before update). I'll try to find a way to update it but not sure how hah.

CTS_AE 06-24-2010 20:56

Re: [CS:S] Surf Config
 
funny part is, I do have SurfTools running right now
when someone said ealier that surftools didn't work anymore :P
But I found yours I wanted to give it a try but of course... the update screwed it over so I'll be looking forward to try yours out when it becomes ready.

thetwistedpanda 06-25-2010 00:21

Re: [CS:S] Surf Config
 
I'll have an update out by tomorrow evening, managed to get a p.o.s laptop running long enough for me to do some updates. I actually have several versions of this script I didn't release as it no longer became an all-in-one solution (I split my scripts up into various pieces as I was using them more and more in other scripts). I'll have to provide two versions, an all in one solution and then the modularized one. But yes, tomorrow evening, it shall be fixied!

thetwistedpanda 06-25-2010 16:16

Re: [CS:S] Surf Config
 
1 Attachment(s)
Here is the updated gamedata. Please note, however, that I will be releasing a new version of this mod within a few days that brings a lot of new features and customization, as well as a Lite version that features just the bare basics for those of you that do not want a bloated version.

clutchh 06-26-2010 00:28

Re: [CS:S] Surf Config
 
This looks like a great plugin panda.

Suggestion: Add a cvar that disables the respawn feature on specified maps. This will be easier than turning the plugin on/off with a bunch of map configs.

thetwistedpanda 06-26-2010 00:35

Re: [CS:S] Surf Config
 
I really don't want to add per-map support as there are several scripts out there that do map-config support rather well. I'm actually against an all-in-one version, which is why the next update will feature a "lite" version as well as links to recommended scripts for those of those that do not want to use the all-in-one.

LGThanatos 06-27-2010 08:39

Re: [CS:S] Surf Config
 
This crashes the windows server :(
I'd post the error but can't remember how to get it to log it cause the thing closes too fast.

Code:

sv_logfile 1
mp_logdetail 3
sv_logsdir "C:\Servers\Steam\orangebox\logs\"
sv_logecho 0
sv_log_onefile 1
sv_logbans 1
sv_logdownloadlist 1

in server.cfg with +exec server.cfg in the startup doesn't log :(

thetwistedpanda 06-27-2010 14:15

Re: [CS:S] Surf Config
 
Thanks for letting me know I'll look over the code and see if I can find any oopsies!

clutchh 07-06-2010 23:55

Re: [CS:S] Surf Config
 
Any update on the next release?

JiggyBalls 07-25-2010 18:19

Re: [CS:S] Surf Config
 
Still crashing server

thetwistedpanda 07-25-2010 20:19

Re: [CS:S] Surf Config
 
:-o I had completely forgotten about this plugin! I'll see what's up and get back to ya.

thetwistedpanda 07-31-2010 20:13

Re: [CS:S] Surf Config
 
If someone could temporarily take over this plug-in or at least fix the crashing issue for these individuals that would be great. I'm unable to edit the files on my Nintendo Wii and I haven't had much luck getting internet access else where. I believe all the script needs is an updated gamedata because I didn't touch it after the OB update. Of course the version hosted is horribly outdated and full of noobish coding I haven't gotten a chance to fix either since my computer died.

thetwistedpanda 09-05-2010 12:21

Re: [CS:S] Surf Config
 
Can someone unapprove this plugin? It's in no condition for other servers to be using it and I have no time/interest in fixing it as I no longer run a surf server. Once I host another one I'll fix it, but until then, I can't support it due to my other projects.


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

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