2013-02-17

Updated "Defi in Saferoom" plugin

I have improved the "Defi in Saferoom" plugin.
Previously it only replaced a Medikit at map start (OnMapStart).
If the maps was restarted because all died no replacement was made because OnMapStart was not called.
Now it listens to "round_start" too.
Still in some custom maps the replacement does not work properly.
The debug says, that a medikit was replaced but maybe it replaced a medikit somewhere else in the map and not at the starting point.
Maybe I will have a look for some other possibility to ensure some defibs on our Realism servers.

2013-02-15

Back to 7 players on L4D1

I have enabled multislots and now 7 players can play at once.
But there is still a bug with missings pistols sometimes.

r0r Realism removed and set max players to 4

r0r Realism:

I have removed the Realism setting from alServ1013.
Some things are not working as expected.
E.g all informative strings like r0r special ammo, other r0r hints and even our own advertisements are not shown anymore.
Actually too much of the HUD is missing.
Also without defibs in L4D1 we should have some rescue possibility.
We need to test and tweak more before bringing it back online.
Until then the normal r0r Legacy is running.

Multislots on L4D1:

Because multislots are not working correctly on all L4D1 servers I have set max clients to 4.
We have to test and figure out whats wrong there.
It is seems that more than 4 could connect but only as spectators.
They were not able to join.
So this was not the intention.
We will set it back to 7 after solving the problem.
 

2013-02-12

Defibs

Since there is no rescue closet for survivors in Realism mode it can be annoying when you die early in a map.

Very often there is no defib available and you may have to watch the until the map is finished or restarted.

Some time ago I tested an "item spawning" plugin but it seems that it caused some problems (download things from server to client or so).
And it was far to powerful (to big etc) for the intended purpose.

So yesterday I did some digging again and found a nice small plugin which could help achieving my desired goal.
The plugin converts all the Medikits to Pills at the map start in Versus game mode only.
Well not exactly what I wanted so I had a look at the source code.

First I changed the game mode detection from "versus" to "realism" in plugin start.
But this did not help.
Why?
I saw an error message in the SourceMod log file:

[SM] Native "CreateEntityByName" reported: Cannot create new entity when no map is running

Hm?
It seems that the plugin was acting to early.
It hooked to "round_start".
So I searched for some "later" event here.
I came up with "OnMapStart"

Now it seems to work fine.
All Medikits were replaced by Pills at map start.

Ok. But I want to have a Defib instead of replacing Medikits with Pills.
Some some more changes are needed.
I exchanged "weapon_pain_pills_spawn" with "weapon_defibrillator_spawn"

One step closer^^
Now all Medikits were replaced by Defibs.

So the last step now.
Let the plugin exchange only one Medikit with a Defib so that the survivors will get 3 Mefikits and 1 Defib at each map start.
So I just break the loop in the plugin after one replacement.

Nice.
Seems to work.
So after some testing I may install the plugin on all Realism servers.

And remember then:
Always take a defib with you.

Tell me what you think about this modification.

Update:
Early beta version of the plugin is installed on alServ2019 now (connect 85.214.222.39:27019)

Update 2:
I did a proper coding now and have installed the plugin on all Realism servers (but not on the Survival server)

2013-02-10

Buffer overflow

We had some errors in the server console of all Realism servers during server startup.
It was something like this:

...
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
...

This caused that some plugin configurations were not loaded correctly.
Using "sm plugins reload [pluginname]" loaded the config correctly then.

After some searching I found a solution which seems to work.

The problem was that we had to many cvars defined in the server.cfg file itself.
This caused the buffer overflow messages and prevented some plugin cvar settings to be set correctly.

The solution was simple.
Move a whole bunch of cvars from the bottom of the server.cfg to a new file server2.cfg
Add the call "exec server2.cfg" at the end of the server.cfg to execute the cvar settings now from the new server2.cfg file.

So the buffer errors were gone and the plugins cvar configuration worked fine again.

I hope this problem is solved now.

Tell me if something is still not working properly.

2013-02-08

Plugins synced

I have synced nearly all plugins to all L4D2 servers.
So the nice things like "Pipebomb shove" etc should be available on all L4D2 servers now.

Keep Laser Sights & Health regeneration

I have installed "Keep Laser Sights" on all L4D2 servers.
I have disabled the "Health Regeneration" because it did not work as expected (was installed only on alServ27019 anyway)
And alServ27016 has the Pipe/Molotov/Bile shove plugin now too.