Its not a very big think, yes pev->nextthink is set at the end, there aren't even any returns in the think function.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sniper Sent: Tuesday, September 16, 2003 10:29 PM To: [EMAIL PROTECTED] Subject: Re: [hlcoders] Entity's think functions stopping?! I've never had this problem. Is "pev->nextthink = gpGlobals->time + 1.0" called at the end?... Perhaps you have a return some place higher up in the function? Sniper ----- Original Message ----- From: "Cale 'Mazor' Dunlap" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 16, 2003 9:20 PM Subject: [hlcoders] Entity's think functions stopping?! > This is a multi-part message in MIME format. > -- > [ Picked text/plain from multipart/alternative ] > Once again, here at Firearms, we feel that creating the most botched up > code is our number one priority. thus we have some really weird bugs. > > Currently, the worst bug holding us back from releasing 2.8 is our > fa_sd_object entities (search and destroy objects) are not respawning. > I have a member variable that holds the respawn time (gpGlobals->time + > 5.0 for testing purposes), this is set when the object gets destroyed. > There's another function, the think function, which is called every > second to see if the object has been destroyed or not, if it was > destroyed, it is SUPPOSED to respawn it. Our problem is that the think > functions only get called once. I know this because I threw an alert in > the top of the think function. When the object is spawned, the think > function is set: SetThink(SDThink), then the time to think is placed > below that: pev->nextthink = gpGlobals->time + 1.0. In the think > function, this is continually added onto, to hopefully continue the > think loop: in the think function: pev->nextthink = gpGlobals->time + > 1.0. > > Now why is it only getting called once if its supposed to think again in > 1 second?! Its driving me crazy. > > -Cale 'Mazor' Dunlap > Firearms Programmer > -- > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders