AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie:Reloaded (https://forums.alliedmods.net/forumdisplay.php?f=132)
-   -   cvar zr_respawn_team_zombie_world not work (https://forums.alliedmods.net/showthread.php?t=220749)

hplexusph 07-13-2013 23:23

cvar zr_respawn_team_zombie_world not work
 
today i found that human fall down to death not becoming zomb on respawn.
and forward
PHP Code:

Action:ZR_OnClientRespawn(&client, &ZR_RespawnCondition:condition

never pass condition ZR_Respawn_Zombie, but always ZR_Respawn_ZombieIfSuicide when respawn to zombie.

and in latest r741 zr's respawn.inc
PHP Code:

    //new bool:zombieIfSuicide = GetConVarBool(g_hCvarsList[CVAR_RESPAWN_TEAM_ZOMBIE_WORLD]); 

was commented.
and
PHP Code:

RespawnSpawnClient(clientrespawn_zombietrue

direct pass a "true" on third arg "bool:zombieIfSuicide".

Is that "zr_respawn_team_zombie_world" still a incomplete feature ?
wish it could be completed in further for this really old cvar.:|

thetwistedpanda 07-13-2013 23:28

Re: cvar zr_respawn_team_zombie_world not work
 
A temporary work around until this is corrected (if it needs to be, not familiar with the mod these days), is to use ZeeSuicide. A feature of it is to turn any human that dies (other than to a zombie) into a zombie.

hplexusph 07-14-2013 00:28

Re: cvar zr_respawn_team_zombie_world not work
 
Quote:

Originally Posted by thetwistedpanda (Post 1990467)
A temporary work around until this is corrected (if it needs to be, not familiar with the mod these days), is to use ZeeSuicide. A feature of it is to turn any human that dies (other than to a zombie) into a zombie.

Thanks replaying.
still hoping someone sometimes could fix this cvar for this High-Traffic plugin.

rhelgeby 07-14-2013 06:40

Re: cvar zr_respawn_team_zombie_world not work
 
Nice catch!

That bug is from late 2010. I'm surprised no one have mentioned it before. Hopefully it should work now. I haven't tested this patch myself, just compiled it.

http://code.google.com/p/zombiereloa...c3&repo=zr-3-1

http://www.helgeby.net/zrdev/release...-r731-r742.zip

hplexusph 07-14-2013 09:59

Re: cvar zr_respawn_team_zombie_world not work
 
Quote:

Originally Posted by rhelgeby (Post 1990580)
Nice catch!

That bug is from late 2010. I'm surprised no one have mentioned it before. Hopefully it should work now. I haven't tested this patch myself, just compiled it.

http://code.google.com/p/zombiereloa...c3&repo=zr-3-1

http://www.helgeby.net/zrdev/release...-r731-r742.zip

Thank you for quick fix.
but it still buggy.
PHP Code:

// Respawn player as a zombie if player was killed by the world. [Override: zr_respawn_team_zombie]
// Default: "1"
zr_respawn_team_zombie_world "1" 

imo that means both human and zombie killed by world should respawn as zombie.
but
PHP Code:

RespawnOnClientDeath(clientattacker, const String:weapon[])
{
    
// If client is a zombie, check if they were killed by world.
    
if (InfectIsClientInfected(client))
    {
        
// Set bKilledByWorld to true if attacker is not a valid client.
        
bKilledByWorld[client] = !ZRIsClientValid(attacker);
    } 

means only zombie killed by world could be respawn as zombie.

sorry bother you again and can you fix one more time, thanks !!:up:

rhelgeby 07-14-2013 16:16

Re: cvar zr_respawn_team_zombie_world not work
 
That's intended, the description was updated to match the code better (copy it from the default config in the patch). This is a special case to prevent zombies abusing suicide to become humans again. Humans who suicide will respawn as humans because they were never infected.

Instead you can enable zr_respawn_team_zombie and all players will always respawn on the zombie team (after mother zombie infection).

Jargon 07-14-2013 17:10

Re: cvar zr_respawn_team_zombie_world not work
 
Quote:

Originally Posted by rhelgeby (Post 1990580)
Nice catch!

That bug is from late 2010. I'm surprised no one have mentioned it before.

Quote:

Originally Posted by rhelgeby (Post 1990886)
That's intended, the description was updated to match the code better (copy it from the default config in the patch). This is a special case to prevent zombies abusing suicide to become humans again. Humans who suicide will respawn as humans because they were never infected.

Instead you can enable zr_respawn_team_zombie and all players will always respawn on the zombie team (after mother zombie infection).

That's how every zombie server I've ever run or played on has done it, so I'm not surprised no one hasn't seen it :P

hplexusph 07-14-2013 20:44

回复: Re: cvar zr_respawn_team_zombie_world not work
 
got it, thanks.

hplexusph 07-14-2013 21:01

回复: Re: cvar zr_respawn_team_zombie_world not work
 
Quote:

Originally Posted by Jargon (Post 1990925)
That's how every zombie server I've ever run or played on has done it, so I'm not surprised no one hasn't seen it :P

Which means thats useless-some cvar…only zombie respawn to human, "zombie-deathmatch" server needs it.


All times are GMT -4. The time now is 15:01.

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