Entity disappearing on certain areas in relation to observer
Having an odd issue with entity disappearing on seemingly random, but consistent parts of the map depending on where the observer is. Not sure what's causing it as I haven't worked with entities in this game that much. I've tried a few different methods of creating the entity, different rendermodes and perhaps other things. All seems to have this same effect.
In some maps like dust2 and nuke the entity doesn't actually appear at all. On a bigger map it does appear but disappears once the observer walks into seemingly random parts of the map, so clearly something is not right. Here's the function where entity in question is being created:
Spoiler
And here's the thinking function where the entity being moved frame by frame
Spoiler
Sort of similar post was created a week ago (nothing much to see): https://forums.alliedmods.net/showthread.php?t=346159 Made an attempt to scout some other threads, couldn't quite find anything similar. |
Re: Entity disappearing on certain areas in relation to observer
Did you tried to use "cycler_sprite" instead of "info_target"?
|
Re: Entity disappearing on certain areas in relation to observer
Try using what phant said or env_sprite. Don't set any rendering or scaling options.
IMO try removing this completely and see what happens and also try to spawn entity with dllfunc_spawn: PHP Code:
|
Re: Entity disappearing on certain areas in relation to observer
Quote:
Quote:
However, looking at hlsdk_const.inc, this was fixed by just setting movetype to 10, it seems to be 0 by default (NONE). I tried 12 before (FOLLOW) and that had the same problem. But MOVETYPE_BOUNCE fixes this. If you get some unwanted bouncing, MOVETYPE_FLY also works. If anyone has this problem you can fiddle with different movetypes to see what suits you.
Spoiler
Here's the working function:
Spoiler
|
| All times are GMT -4. The time now is 00:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.