Streamer view/stream distance -
Norrin - 24.12.2013
I have a mapped prison, created using streamer, but when I stand at one end, the entire objects seem to disappear making it look like a hell-hole.
Screenshot:
Please let me know how to fix it.
I'm using this map: https://sampforum.blast.hk/showthread.php?tid=338945
My code used under OnGameModeInit(): http://pastebin.com/4HFF0BK0
Re: Streamer view/stream distance - Patrick - 24.12.2013
pawn Код:
stock AddDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 300.0, Float:drawdistance = 300.0)
{
new oid;
oid = CreateDynamicObject(modelid, x, y, z, rx, ry, rz, worldid, interiorid, playerid, streamdistance);
Streamer_SetFloatData(STREAMER_TYPE_OBJECT, oid, E_STREAMER_DRAW_DISTANCE, drawdistance);
return oid;
}
Thanks to
[uL]Pottus for this, I found this on ****** :P | maybe try to search before asking question
Change all
CreateDynamicObject to
AddDynamicObject
or You could
create a definition.
pawn Код:
#define CreateDynamicObject AddDynamicObject
EDIT: If you want to increase the
drawdistance you could add a new
parameter after
streamdistance |
AddDynamicObject drawdistance is
300.0
Re: Streamer view/stream distance -
Norrin - 24.12.2013
Would increasing the .streamdistance parameter in CreateDynamicObject be useful?
Re: Streamer view/stream distance -
Konstantinos - 24.12.2013
Quote:
Originally Posted by Norrin
Would increasing the .drawdistance parameter in CreateDynamicObject be useful?
|
CreateDynamicObject has lack of drawdistance. This is why Streamer_SetFloatData was used.
Re: Streamer view/stream distance - Patrick - 24.12.2013
Quote:
Originally Posted by Norrin
Would increasing the .drawdistance parameter in CreateDynamicObject be useful?
|
There's no
drawdistance on
CreateDynamicObject
pawn Код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 200.0);
Re: Streamer view/stream distance -
Norrin - 24.12.2013
Still no luck. The objects doesn't stream.
I'm using this map:
https://sampforum.blast.hk/showthread.php?tid=338945
Re: Streamer view/stream distance -
Pottus - 24.12.2013
Show a line or two of your objects must have fucked something up.
Re: Streamer view/stream distance -
Don_Cage - 24.12.2013
You can set distance by CreateDynamicObjectEx
download plugin from this page,i've edited distance.
And you must convert all CreateDynamicObject to CreateDynamicObjectEx with replace button.
I have tested it with over 2k object at same area and it worked perfect and objects loads like original map.
http://www.balkan-nation.com/samp/index.php?topic=344.0
Re: Streamer view/stream distance -
Norrin - 24.12.2013
Quote:
Originally Posted by [uL]Pottus
Show a line or two of your objects must have fucked something up.
|
I'm using this map:
https://sampforum.blast.hk/showthread.php?tid=338945
Instead of CreateObjects and SetObjectMaterialText (or w/e), I'm using CreateDynamicObjects etc..
Re: Streamer view/stream distance -
Pottus - 24.12.2013
I need to see what YOU did not what the map author did that is meaningless, and yes what Don_Cage said will work but it is more of a pain in the ass to play around with the playerid, virtual world, interior parameters which may not always be desirable.