home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Multi-User Death Code Problem (Causes other player to d/c)

by mukkan on 09/26/2005 23:12, 2 messages, last message: 09/27/2005 22:50, 1022 views, last view: 03/30/2024 18:40

player1->health=0;
addmsg(1, 2, SV_DIED, player1);
player1->lifesequence++;
player1->attacking = false;
player1->state = CS_DEAD;
player1->pitch = 0;
player1->roll = 60;

if(local)
{
playsoundc(S_FALL1);
}else{
if(pl->monsterstate)
{
playsound(S_FALL1, &pl->o);
}
}

This is what I am currently doing when a player dies from high jumps. This works fine on SP but on MP it causes the other player to disconnect? Why is this?

Thanks,
Mukkan

   Board Index   

#1: ..

by -Rick- on 09/27/2005 19:53

Yeah...better use getclientnum() instead ;)

reply to this message

#2: ..

by mukkan on 09/27/2005 22:50

Thanks for that addmsg(1, 2, SV_DIED, getclientnum()); seems to work fine. :)

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53865380 visitors requested 71640526 pages
page created in 0.011 seconds using 10 queries
hosted by Boost Digital