Raised This Month: $ Target: $400
 0% 

!zspawn and auto respawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SirCole
Member
Join Date: Nov 2006
Old 12-16-2009 , 06:59   !zspawn and auto respawn
Reply With Quote #1

I had an issue arise after enabling auto respawn and I was blaming the plugin as the issue, as players ended up in a respawn loop.

After actually going in game and finding a map that would do it for me it came to my attention that it was not actually the plugin but infact the map. A fair few escape style zombie maps now do what they refer to as 'slaying the afkers' or one some maps the refer to it as 'something blowing up'

this means that once this has happened anyone who spawns in the normal spawn points or the are of the map now affected will die, once they die they respawn, and thus the loop starts.

disabling respawn on such maps is an easy out for the moment, but running a 64slot server I can only imagine people crying when they have to wait for a round to finish when it could take 10 mins..

My proposal solution is recoding the spawning aspect to not only be able to spawn to normal spawn points but to other points located in say a sql database of some sort.

it would be pointless if admins have to manually go through maps and find the locations but it would be good if they can open the zombie admin menu and save a location as a spawn location.

on the same not if sourcepawn allows it would be necessary for admins to be able to disable people from respawning to the maps default spawn points but instead the players only spawning to admin created spawn points.

I could imagine over time that people sharing their spawnpoint files it would not be long before we had a good database of usable ones for people to download as well.


Cole

Last edited by SirCole; 12-16-2009 at 07:01.
SirCole is offline
Sandfly
Member
Join Date: Dec 2009
Location: Qld, Australia
Old 12-16-2009 , 07:11   Re: !zspawn and auto respawn
Reply With Quote #2

Thanks for posting that Cole .. yes, the dreaded autospawn loop .. once caught in its grip, it is not released until end of that map.

Richard & Greyscale, this was the issue I was trying to explain ... it is a nasty piece of work ...

The only solution currently is to turn off Autospawn, which as Cole has said above, means a very long wait, especially on Escape maps for players, and lots of players are lost from the server for them being sick of waiting for a long map or similar to end.

Cole's suggestion as a fix seems a very good one - can you get back to us about this to see what might be possible? Cheers guys, speak soon!
__________________
|IC| UltimateZombie: Reloaded - IP: 117.20.5.153:27015

|IC| Ultra GunGame SM - IP: 117.20.5.153:27018

Last edited by Sandfly; 12-16-2009 at 07:17.
Sandfly is offline
SirCole
Member
Join Date: Nov 2006
Old 12-16-2009 , 09:27   Re: !zspawn and auto respawn
Reply With Quote #3

Okay I decided to do some extra research because I know I have seen the spawn functionality I was speaking of before in another plugin and it is BAILOPAN's DM plugin

http://forums.alliedmods.net/showthread.php?p=507959

the key part of Bailopan's respawn is this bit of configuration:

Code:
// Sets the CS:S DM spawn method.
// "none"   -- Spawn at the normal map spawn points.
// "preset" -- Spawn at a random point from a config file.
// --
// Default: "preset"
cssdm_spawn_method "preset"
Because his plugin is written in modules I would install the feature to implement this but on our server we like the following setting that would not work if we used Bailopans plugin..

Code:
// Respawn player as a zombie. [Dependency: zr_respawn]
// Default: "1"
zr_respawn_team_zombie "0"
by doing this when a player dies as a zombie they respawn as a human, this means humans can essentially cure the infection by slaying the zombie.. it creates a more even playing field and a longer game which in a full server is a lot of fun..

by implementing bailopans plugin without recoding it I would not be able to do this as players that die a zombie will respawn as a zombie..





All in all I understand if this does not stand high, if so i will just get our coder to do a workaround for us. But I'm sure with Bailopans permission he would be happy to let you use the code quoting him, that is what it's open source for


Cole
SirCole is offline
Xoleum
Member
Join Date: Jul 2005
Old 12-16-2009 , 11:51   Re: !zspawn and auto respawn
Reply With Quote #4

Problem is with this that if people can respawn as humans, most zombies will just let themselves get killed to play as a human.

Last edited by rhelgeby; 12-16-2009 at 13:58. Reason: Removed long quote of post right above this one.
Xoleum is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 12-16-2009 , 14:22   Re: !zspawn and auto respawn
Reply With Quote #5

That's a very good idea for a solution, and it must be handled in the ZR core because of team management of zombies/humans. But we gotta draw a line here since this feature doesn't really belong in ZR, but must be handled in ZR. A solution to this is to make a addon plugin just for ZR that implements this feature.

We gotta make a plan for this feature because I think it shouldn't be implemented directly, but through new concept in ZR I've been thinking of; game modes (normal, zombie riot, escape, etc.). This concept will make several changes in the plugin core to make it work better in each mode, so we should focus on a final 3.0 release before making such huge changes. I'm not discarding your idea, it's really good. We're most likely going to make it in a 3.1 release or something. If this is implemented right now it will just be a patch, and after a while ZR will be a big mess of patches. This stuff need careful planning so it's easier to implement new feautres in the future.

BAILOPANs plugin might help you solve the issue, but I don't know how well it will work with ZR because ZR need to to that zombie/human management properly. A simple solution to this is to make forwards in ZR so your coder can make a plugin compatible with ZR as a workaround while we're developing.

Don't give up on this idea, because Greyscale and I definitely have plans with ZR. We're aming to get out of beta and reach 3.0 first, then we can start make bigger features on 3.1 and newer.

Xoleum: We already have a solution for that problem. Lookup zr_respawn_team_zombie_world in the manual. It will respawn zombies if a zombie was killed by the map or physics world damage. By keeping manual suicide commands blocked I don't know any way to bypass this feature. Even reconnect and respawn won't help because we took care of that too. ^^
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
SirCole
Member
Join Date: Nov 2006
Old 12-16-2009 , 18:28   Re: !zspawn and auto respawn
Reply With Quote #6

Xoleum! I know what you mean but as rhelgeby says its pretty well handled in the plugin core and to add to that we find that most players enjoy been a zombie when its a bit more challenging. I've had my server running in this style for 1 and a half years or so.

rhelgeby,

as it comes to the best way to implement this I sort of get your idea, I already got our coder to patch a simple solution but I did notice it sort of bypasses the core's team management. I would be very happy if you gave me a heads up on what to get haza to look for in the ZR code to integrate this as a better 'patch' for our server in the mean time. Because all I'm after is the functionality of forcing users to respawn to set spawn points, and the ability to add and manage those which is already coded..

Anyway if you don't mind I wold appreciate if you were happy for me to get haza to PM you or something in regards to it

thanks,

Cole
SirCole is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 12-16-2009 , 20:17   Re: !zspawn and auto respawn
Reply With Quote #7

The idea would be functional, but to me seems like a lot of work for a small fix. Having a separate database of spawn points is a bit excessive and would require more work to maintain and populate. As a coder, I am very lazy. I like to find the easiest way (for me) to solve a problem.

If the maps are killing people would it not be easier to just disable or destroy the entity that's killing the players?
__________________

Last edited by Greyscale; 12-16-2009 at 20:21.
Greyscale is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 12-16-2009 , 20:24   Re: !zspawn and auto respawn
Reply With Quote #8

Yes, it's actually possible to delete certain entities in a map with Stripper:Source (by BAILOPAN) so you could erase the afk kill feature on that map. The map needs to be decompiled with vmex and analyzed to find the entity that kill players.

In my opinion a map shouldn't do player management, that's the server's job.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)

Last edited by rhelgeby; 12-16-2009 at 20:29.
rhelgeby is offline
Send a message via MSN to rhelgeby
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 12-16-2009 , 20:33   Re: !zspawn and auto respawn
Reply With Quote #9

I agree with that one. Plugins do management.

We could make a small module to kill those entities in the plugin as well, it would be very simple. I'm thinking it would be a point_hurt entity.
__________________
Greyscale is offline
SirCole
Member
Join Date: Nov 2006
Old 12-16-2009 , 20:44   Re: !zspawn and auto respawn
Reply With Quote #10

Quote:
Originally Posted by Greyscale View Post
I agree with that one. Plugins do management.

We could make a small module to kill those entities in the plugin as well, it would be very simple. I'm thinking it would be a point_hurt entity.
If you could do that I would be more than grateful ZE mappers seem to take server management into their own hands and its annoying.

if its not something of high interest for you I can get our haza onto it, but as you guys do the zombie thing and he doesn't..
SirCole is offline
Reply



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 07:41.


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