You are right, I remember a while ago , I made the weapons able to drop and
gave em a think function that would terminate after 30 seconds if no one
picked it up and respawn was turned off, but I forgot to turn this off after
someone picked it up, so when it terminated after they owned it.. they could
no longer access it and 0x00000 was the next thing I saw :) That was an easy
debug fix

Regards to my problem, I recompiled to client and non of these problems have
been happened anymore, I'm sure my code is sound, you can take a look at it,
it actually works, and drop entities and removes them and no other entity
was trying to use it. Hl has crashed on me many different ways for weird
reasons, a clean recompile seemed to work for me this time. If it crashes
again I will do some serious assembly debugging.

Thx guys

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of matthew lewis
Sent: Sunday, August 24, 2003 9:44 AM
To: [EMAIL PROTECTED]
Subject: [hlcoders] Creating and removing entities

99% of the time when you get crashes from an entity that was deleted, it's
because some other entity is still trying to reference it. In other words,
something is still trying to use the battery even though it's been removed
from the world. Some other cases are an owned entity who tries to send
feedback to it's owner who is gone. For example, a sentry gun that is trying
to add points to a player's score where the player has disconnected. The
trick is to be sure to notify any entities in the world that might be trying
to use a deleted entity that the entity is now gone and to stop referencing
it since the pointers are no longer valid.


_______________________________________________
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

Reply via email to