Forum

Annoying problem

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Annoying problem

Postby Orion » Wed Aug 12, 2009 8:31 pm

I played Quake with no mods active a few minutes ago, and sometimes an annoying bug happens: when I gib a monster, his head is still "alive". His head "runs" over the floor and can shoot or use melee attacks. As the head is non-solid it is unkillable. And I almost always die because of these heads that don't stop following and shooting me!

I know how to fix that, but what exactly causes this?
User avatar
Orion
 
Posts: 476
Joined: Fri Jan 12, 2007 6:32 pm
Location: Brazil

Postby Spike » Wed Aug 12, 2009 9:07 pm

by no mods...


which engine were you using?...
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby Orion » Wed Aug 12, 2009 11:43 pm

Fitzquake :wink:
User avatar
Orion
 
Posts: 476
Joined: Fri Jan 12, 2007 6:32 pm
Location: Brazil

Postby Error » Thu Aug 13, 2009 6:52 am

well there's your problem right there :shock:

*cough*
















...no really...
User avatar
Error
InsideQC Staff
 
Posts: 865
Joined: Fri Nov 05, 2004 5:15 am
Location: VA, USA

Postby Spike » Thu Aug 13, 2009 7:13 am

I do not recall ever seeing such a bug. But then I've also not used fitzquake much.
Try updating?
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby Spirit » Thu Aug 13, 2009 4:59 pm

That does not seem normal. Have you tried a clean installation (no savegames, no config etc)?
Fitzquake is a great engine.
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
Spirit
 
Posts: 1031
Joined: Sat Nov 20, 2004 9:00 pm

Postby Orion » Thu Aug 13, 2009 5:13 pm

Man that is VERY RARE to happen. But happens. And also I'm not sure if I definitely fixed the problem. I just put a self.think = SUB_Null; on ThrowHead(). But at least it didn't happen anymore...

Maybe this happens because for exaple a monster is gibbed EXACTLY when it starts to run one of his animation frames.. EXACTLY when it executes one of his animation no matter what. And then, the self.nextthink = -1; on ThrowHead may by owerwriten by that one happened in the frame. That's why it's rare to happen though.
User avatar
Orion
 
Posts: 476
Joined: Fri Jan 12, 2007 6:32 pm
Location: Brazil

Postby frag.machine » Fri Aug 14, 2009 12:12 am

Are you really sure you're running vanilla QuakeC ? I already found this bizarre bug when messing around with new monsters (regardless the engine), and suddenly every time I blasted a grunt his head pursuited me trying to avenge the rest of his gibbed body... Don't recall how I fixed that though.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm

Postby redrum » Sat Aug 15, 2009 3:06 am

I have the same problem on my server!

How do you fix???
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby metlslime » Sat Aug 15, 2009 3:23 am

I'm flattered to be given credit for what sounds like an awesome mod!
metlslime
 
Posts: 316
Joined: Tue Feb 05, 2008 11:03 pm

Postby xaGe » Sat Aug 15, 2009 3:59 am

LMAO... Ahh priceLESS! :P


metlslime wrote:I'm flattered to be given credit for what sounds like an awesome mod!
User avatar
xaGe
 
Posts: 461
Joined: Wed Mar 01, 2006 8:29 am
Location: Upstate, New York

Postby r00k » Sat Aug 15, 2009 4:56 am

zombies like 100 comming at u robotron style and they turn in to floating biting skulls, when shot!!
r00k
 
Posts: 1110
Joined: Sat Nov 13, 2004 10:39 pm

Postby negke » Sat Aug 15, 2009 7:57 am

In this sense, inserting the tarbaby code in ThrowHead() sounds like a good idea.
negke
 
Posts: 150
Joined: Wed Apr 16, 2008 5:53 pm

Postby jim » Sat Aug 15, 2009 1:28 pm

Sounds great :D
zbang!
User avatar
jim
 
Posts: 599
Joined: Fri Aug 05, 2005 2:35 pm
Location: In The Sun

Postby Orion » Sat Aug 15, 2009 6:25 pm

@redrum just put in ThrowHead() (self.think = SUB_Null;) after self.nextthink = -1; :wink:
User avatar
Orion
 
Posts: 476
Joined: Fri Jan 12, 2007 6:32 pm
Location: Brazil

Next

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest