undead bug & Human
Moderator: Forum Moderator
-
- Peon
- Posts: 19
- Joined: Mon Jul 16, 2007 2:51 pm
undead bug & Human
wc3ft v3.0 rc12 bug, after scroll of Respawning ,can undead not be too high jump and Human has 100HP
- YamiKaitou
- Forum Moderator
- Posts: 1925
- Joined: Wed Feb 01, 2006 4:33 pm
- Contact:
Re: undead bug & Human
Provide more details about it. Did this bug exist before RC12? If so, is there an open bug report on it?
No support via PM or Email
-
- Peon
- Posts: 19
- Joined: Mon Jul 16, 2007 2:51 pm
Re: undead bug & Human
after RC12, error logs, I have not undead bug is happening with me every time,humans bug when players.
sry for my bad english
sry for my bad english

- YamiKaitou
- Forum Moderator
- Posts: 1925
- Joined: Wed Feb 01, 2006 4:33 pm
- Contact:
Re: undead bug & Human
I bet you it is the Ham that caused it as that is the only thing I did for the respawn. I will look at it over the weekend anyways
No support via PM or Email
-
- Spell Breaker
- Posts: 398
- Joined: Sun Apr 27, 2008 10:11 pm
-
- Spell Breaker
- Posts: 398
- Joined: Sun Apr 27, 2008 10:11 pm
-
- Peon
- Posts: 19
- Joined: Mon Jul 16, 2007 2:51 pm
Re: undead bug & Human
it is not at shared.inl,I have shared.inl of version 3.0 RC11 installed,and bug still exists
- YamiKaitou
- Forum Moderator
- Posts: 1925
- Joined: Wed Feb 01, 2006 4:33 pm
- Contact:
Re: undead bug & Human
That is because the bug isn't fixed yet... It doesn't matter what version your includes are, as long as your .amxx is up to date. Hopefully it is a slow day at work today, I may be able to get some of these reports done at work
No support via PM or Email
-
- Spell Breaker
- Posts: 398
- Joined: Sun Apr 27, 2008 10:11 pm
Re: undead bug & Human
you mis-understood me in shared.inl after you have the ham module reviving the player insert
WC3_InitPlayerSkills( id )
so it will redo all the functions giving people there, hp, levitation, invisbility, speed, and everything else
WC3_InitPlayerSkills( id )
so it will redo all the functions giving people there, hp, levitation, invisbility, speed, and everything else

-
- Peon
- Posts: 19
- Joined: Mon Jul 16, 2007 2:51 pm
- YamiKaitou
- Forum Moderator
- Posts: 1925
- Joined: Wed Feb 01, 2006 4:33 pm
- Contact:
Re: undead bug & Human
While it may solve the bug, it is not needed. It is already called, it is an issue with how we are detecting the respawn most likely, I haven't messed with it yet.whosyourdaddy wrote:after excute ham thing add this
Code: Select all
WC3_InitPlayerSkills( id )
No support via PM or Email
-
- Spell Breaker
- Posts: 398
- Joined: Sun Apr 27, 2008 10:11 pm
Re: undead bug & Human
after u respawn where is it being called? i dont see it being called anywhere else

- YamiKaitou
- Forum Moderator
- Posts: 1925
- Joined: Wed Feb 01, 2006 4:33 pm
- Contact:
Re: undead bug & Human
WC3_NewSession, which is called by EVENT_PlayerInitialSpawn (for CS and CZ, DoD is done differently), which is called by on_ResetHud
No support via PM or Email
-
- Spell Breaker
- Posts: 398
- Joined: Sun Apr 27, 2008 10:11 pm
-
- Spell Breaker
- Posts: 398
- Joined: Sun Apr 27, 2008 10:11 pm
Re: undead bug & Human
kk well i found the problem its not register even its this in shared respawn we have this
in reset hud we have this
now if u make
then when they respawn it will execute the command but heres the nasty party, every round u will respawn with ur old weapons even if u dont have an ankh or an orc
Code: Select all
// We don't want to call a crap-ton of WC3 functions when we're spawning them 3 times do we ?
bIgnorePlayerSpawning[id] = true;
Code: Select all
// We're forcibly respawning the player - so lets just return
if ( bIgnorePlayerSpawning[id] )
{
return PLUGIN_CONTINUE;
}
Code: Select all
bIgnorePlayerSpawning[id] = false;

-
- Spell Breaker
- Posts: 398
- Joined: Sun Apr 27, 2008 10:11 pm
Re: undead bug & Human
in shared spawn final theres
change it to true and ur all good to go. if u got any more bugs hit me up i think i can help out
Code: Select all
bIgnorePlayerSpawning[id] = false;

-
- Spell Breaker
- Posts: 398
- Joined: Sun Apr 27, 2008 10:11 pm
Re: undead bug & Human
kk heres the bad part now, if u have a mole or ankh and get revive from a scroll or bm then it starts schrewing around and u get stuck with an ankh and wont reset it and changerace stops working

-
- Spell Breaker
- Posts: 398
- Joined: Sun Apr 27, 2008 10:11 pm
Re: undead bug & Human
quite a few changes for the bug fix here u go, tested and works
Code: Select all
// Function used to spawn a player
public _SHARED_Spawn( id )
{
// Respawning isn't necessary w/CSDM - so lets not do that!
if ( CVAR_csdm_active > 0 && get_pcvar_num( CVAR_csdm_active ) == 1 )
{
return;
}
id -= TASK_SPAWN;
// Spawning doesn't work in DOD
if ( g_MOD == GAME_DOD )
{
return;
}
// User is no longer connected or is not on a team
if ( !p_data_b[id][PB_ISCONNECTED] || !SHARED_IsOnTeam( id ) )
{
return;
}
// Round has ended, lets give money back if they bought a scroll
if ( g_EndRound )
{
if ( p_data[id][P_RESPAWNBY] == RESPAWN_ITEM )
{
client_print( id, print_chat, "%s Unable to respawn because the round is over, here is your money back", g_MODclient );
SHARED_SetUserMoney( id, SHARED_GetUserMoney( id ) + ITEM_Cost( id, ITEM_SCROLL ) );
}
return;
}
// Reset items when the user spawns!
g_iShopMenuItems[id][ITEM_SLOT_ONE] = ITEM_NONE;
g_iShopMenuItems[id][ITEM_SLOT_TWO] = ITEM_NONE;
if ( is_user_alive( id ) )
{
return;
}
// Give the user godmode for a little
set_user_godmode( id, 1 );
p_data_b[id][PB_NO_DAMAGE] = true;
// Save their previous weapons!
SHARED_CopySavedWeapons( id );
// Ignore the armor settaging...
bIgnoreArmorSet[id] = true;
// We don't want to call a crap-ton of WC3 functions when we're spawning them 3 times do we ?
bIgnorePlayerSpawning[id] = false;
p_data_b[id][PB_DIEDLASTROUND] = false;
p_data_b[id][PB_SLOWED] = false;
p_data_b[id][PB_STUNNED] = false;
// The user should no longer be a mole!
p_data_b[id][PB_MOLE] = false;
// Spawn the player
ExecuteHamB(Ham_CS_RoundRespawn,id);
// Reset the user's skin to normal
SHARED_ChangeSkin( id, SKIN_RESET );
set_task( 0.2, "_SHARED_Spawn_Final", TASK_SPAWNPLAYER + id );
set_task( 0.4, "_SHARED_CS_GiveWeapons", TASK_GIVEITEMS + id );
set_task( 1.0, "_SHARED_SpawnRemoveGod", TASK_SPAWNREMOVEGOD + id );
return;
}
public _SHARED_SpawnRemoveGod( id )
{
id -= TASK_SPAWNREMOVEGOD;
// Only do this if the user is connected
if ( p_data_b[id][PB_ISCONNECTED] )
{
set_user_godmode( id, 0 );
p_data_b[id][PB_NO_DAMAGE] = false;
}
}
// Function will just spawn a player again
public _SHARED_Spawn_Final( id )
{
id -= TASK_SPAWNPLAYER;
if ( !p_data_b[id][PB_ISCONNECTED] )
{
return;
}
bIgnoreArmorSet[id] = false;
// If we don't give them a suit then they won't have a HUD
give_item( id, "item_suit" );
// Vengeance Check
if ( p_data[id][P_RESPAWNBY] == RESPAWN_VENGEANCE )
{
set_user_health( id, VENGEANCE_HEALTH );
}
return;
}

- YamiKaitou
- Forum Moderator
- Posts: 1925
- Joined: Wed Feb 01, 2006 4:33 pm
- Contact:
Re: undead bug & Human
Bug fixed in Rev 551 (not using whosyourdaddy's posted methods)
No support via PM or Email
-
- Spell Breaker
- Posts: 398
- Joined: Sun Apr 27, 2008 10:11 pm
Re: undead bug & Human
yama just make sure u dont get any respawn bugs, try buying and ankh when ur dead and then buy a scroll see if ankh or mole bugs

-
- Spell Breaker
- Posts: 398
- Joined: Sun Apr 27, 2008 10:11 pm
Re: undead bug & Human
the thing is that the bug happens on next round items, what im saying is that it happens if u have a ankh or mole and buy scroll when dead, just make sure it wont bug u
