STEAM GROUP
Left 4 Dead 2 Workshop Beta L4D2WSB
STEAM GROUP
Left 4 Dead 2 Workshop Beta L4D2WSB
0
IN-GAME
21
ONLINE
Founded
15 October, 2012
shotgunefx 12 Apr, 2013 @ 5:09pm
Versus Bug: GetZombieType incorrect after switching from Infected to Survivor
If you switch teams, you'll stay as whatever infected you were instead of "9" when you switch to the survivors.

This affects versus and versus based mutations.
Easily reproduced by switching to the survivor team and issuing
ent_fire !yourname runscriptcode "printl(self.GetZombieType())"
Last edited by shotgunefx; 12 Apr, 2013 @ 5:11pm
< >
Showing 1-2 of 2 comments
Rectus 13 Apr, 2013 @ 1:47am 
Is that method supposed to be invokable on survivors? And does IsSurvivor() give the right response? If it does, it should at least be possible to work around.
shotgunefx 13 Apr, 2013 @ 4:25am 
IsSurvivor() works, though in coop, or without a teamswitch, GetZombieType() == 9 works as well. In fact, I've never used IsSurvivor() before today, instead, relying on the type as it always worked.

It's not that big a deal as there is a work around, but ideally, I'd like to see it fixed. If it's going to return something, should be consistent. Also, now you have to check class, team, then type, where if it's consistent, just classname and switch off of that.
< >
Showing 1-2 of 2 comments
Per page: 1530 50