non-solid zombies

Is there something that doesn't work right? Do you need help with something? Post about it here.
User avatar
Canadian*Sniper
Level 5
Posts: 219
Joined: Sat Jun 24, 2006 7:48 pm

non-solid zombies

Post by Canadian*Sniper »

Gunter brought this bug to my attention (I knew that fvf had this bug long ago, I always thought it was just a fvf bug) that zombies can bypass the self.solid = SOLID_SLIDEBOX; call when getting up from "death". The zombie is forever SOLID_NOT and cannot be damaged (unless you use splash damage or monsters). Gunter proposed a solution by adding a check in the zombie's walk and run macro frames. I gave it a try and it did NOT work. Let's try to figure out a solution to this bug :)

To trigger this bug easily, knock down the 3 zombies in e1m3's start in the NailGun trap just before being squished. The zombies will get up and stay in SOLID_NOT.

Code: Select all

void() zombie_walk1		=[	$walk1,		zombie_walk2	] {
	// Fix for active non solid zombie bug by Gunter
	if (self.solid != SOLID_SLIDEBOX)
		self.solid = SOLID_SLIDEBOX;
	ai_walk(0);
};
...
void() zombie_run1		=[	$run1,		zombie_run2	] {
	// Fix for active non solid zombie bug by Gunter
	if (self.solid != SOLID_SLIDEBOX)
		self.solid = SOLID_SLIDEBOX;
	ai_run(1);
	self.inpain = 0;
};
yes I've already tried putting the check before and after those other calls.
FvF is a good place to hang out but not a good place to fight. :) <-- This signature pisses Jow off XD
aguirRe
Registered just to make One Post
Posts: 1
Joined: Sat Jan 06, 2007 4:01 pm
Contact:

Post by aguirRe »

My usual fix in Q1 mods is to just put a self.solid = SOLID_SLIDEBOX line last in the zombie_run1 function. As far as I've seen, it works. However, there's another bug in the code where the zombies try to get up; if they can't get up for some reason, they'll stay non-solid lying down and can't be killed. It requires some more code to get around.
User avatar
Canadian*Sniper
Level 5
Posts: 219
Joined: Sat Jun 24, 2006 7:48 pm

Post by Canadian*Sniper »

Actually the bug that gunter found out (not sure how) was that the zombies were squished by the elevator and their entity was too skinny. A simple check on the point size was the fix.

As for zombies not getting up, their entire body will lay on a playform but they require something at their feet area to get up. There are some ways Peg and I cured this without cheats or mod fixes :)
FvF is a good place to hang out but not a good place to fight. :) <-- This signature pisses Jow off XD
RocketGuy
Level 5
Posts: 176
Joined: Fri Jun 23, 2006 6:21 am
Location: Right here
Contact:

Post by RocketGuy »

aguirRe wrote:However, there's another bug in the code where the zombies try to get up; if they can't get up for some reason, they'll stay non-solid lying down and can't be killed. It requires some more code to get around.

Code: Select all

	if (self.last_thought > 10)
	    T_Damage(self, self, self, self.max_health, "", 0);
:P
Image
Post Reply