Streamer view/stream distance
#1

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
Reply
#2

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
Reply
#3

Would increasing the .streamdistance parameter in CreateDynamicObject be useful?
Reply
#4

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.
Reply
#5

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);
Reply
#6

Still no luck. The objects doesn't stream.

I'm using this map: https://sampforum.blast.hk/showthread.php?tid=338945
Reply
#7

Show a line or two of your objects must have fucked something up.
Reply
#8

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
Reply
#9

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..
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)