_BBOX crashes server
When entity is tossed up ( above player ) the server crashes without any errors, when I changed entity solid type to _TRIGGER it works fine but I can't pick it up or do damage to it.
PHP Code:
|
Re: _BBOX crashes server
So I discovered if an entity was thrown above it takes damage when it falls and this crashes server because of fall damage, is it possible to disable fall damage for an entity ?
EDIT: it crashes from knife kill too :D |
Re: _BBOX crashes server
ok so i have the same problem too..
Server crashes when an entity is killed with a knife. but with any other weapons it doesnt crash. Can someone explain me why ? |
Re: _BBOX crashes server
Register TakeDamage and check for entity class name
The code to disable damage from falling can be found somewhere around the forum |
Re: _BBOX crashes server
The problem when you create a custom entity in goldsrc and enable takedamage is
that the engine will automatically kill the entity when it's health is less than zero. You DO NOT want this to happen, you want to fully control when your custom entity gets removed. To do this you need to set a health mask with a high enough value that no weapon/explosive in-game can easily destroy it. Code:
#define HEALTH_MASK 1000000.0Takedamage function and then evaluate whether or not you need to kill the entity. If you do, then perform whatever code cleanup required and then kill the entity. Code:
public StickThink( ent )plug these values directly into your code. You need to idiot proof these values before plugging them in, because an invalid setting can sometimes have unpredictable results, like crashing the server. |
| All times are GMT -4. The time now is 09:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.