SHScientist: the body logic should really only be run if we're not using a body already.

This commit is contained in:
Marco Cawthorne 2023-11-18 19:48:31 -08:00
parent d4a09b6149
commit 020e32e977
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -420,31 +420,31 @@ SHScientist::Respawn(void)
if ((cvar("sh_scirand") == 1) || (m_iBody == 0)) { if ((cvar("sh_scirand") == 1) || (m_iBody == 0)) {
m_iBody = floor(random(1,5)); m_iBody = floor(random(1,5));
}
SetSkin(0); SetSkin(0);
switch (m_iBody) { switch (m_iBody) {
case 1: case 1:
m_flPitch = 105; m_flPitch = 105;
netname = "Walter"; netname = "Walter";
SetBodyInGroup(1, 1); SetBodyInGroup(1, 1);
break; break;
case 2: case 2:
m_flPitch = 100; m_flPitch = 100;
netname = "Einstein"; netname = "Einstein";
SetBodyInGroup(1, 2); SetBodyInGroup(1, 2);
break; break;
case 3: case 3:
m_flPitch = 95; m_flPitch = 95;
netname = "Luther"; netname = "Luther";
SetBodyInGroup(1, 3); SetBodyInGroup(1, 3);
SetSkin(1); SetSkin(1);
break; break;
default: default:
m_flPitch = 100; m_flPitch = 100;
netname = "Slick"; netname = "Slick";
SetBodyInGroup(1, 4); SetBodyInGroup(1, 4);
}
} }
/* recount to update sciscore and so on */ /* recount to update sciscore and so on */