SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 04/04/2013, 03:24 PM   #1
RajatPawar
High-roller
 
RajatPawar's Avatar
 
Join Date: Aug 2011
Location: ヽ༼ຈل͜ຈ༽ノ
Posts: 2,180
Reputation: 311
Default Useful object streamer that streams objects realistically (the bigger the object, the farther it gets streamed from)

Hey guys. I didn't know what prefix to choose, so [INCLUDE].
1) I have done VERY little work, it's all ****** and Incognito. ALL OF IT. I claim no credits.


READ ME:

I worked with 11, 000 objects and this streamed them fantastically, big hills streamed from far enough and small chairs when they needed to.
There is a DEFINE which you CAN EDIT to make your streaming look optimal. For me, 180 worked good enough.

pawn Code:
#define STREAM_CONSTANT 180
EDIT THIS TO WHATEVER TRIAL AND ERROR result you get to be the best streaming constant.
120 - 200 is okay.

Code:
pawn Code:
#include <a_samp>
#include <streamer>
#include <modelsizes>
#include <zcmd>
// - - -- - - DEFINES  -- - - -
#define STREAM_CONSTANT 180
new objects[11000][2], some_var = 0;

stock create_OBJECT(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
    objects[ some_var ][ 0 ] = CreateDynamicObject(modelid, x, y, z, rx, ry, rz,-1, -1, -1, STREAM_CONSTANT + GetColSphereRadius(modelid));
    objects[ some_var ][1] = modelid;
    some_var++;
    return 1;
}
That's it !
Now use it like this:
pawn Code:
create_OBJECT( 1655, 125, 125, 125, 0, 0, 0);
And it streams good !


EXAMPLE OF STREAMING:



NOTE: This is not a release. This is something I put together.

Credits:

Full credits to ****** and Incognito, and V1cec1ty - for allowing me to test it in his server and presenting me with the challenge of making it in the first place.


INCLUDE DOWNLOADS:

Streamer
Model sizes

Last edited by RajatPawar; 04/04/2013 at 05:02 PM.
RajatPawar is offline   Reply With Quote
Old 04/04/2013, 03:28 PM   #2
vyper
Huge Clucker
 
vyper's Avatar
 
Join Date: Jul 2009
Location: Hell. x_x
Posts: 276
Reputation: 68
Default Re: Useful object streamer that streams objects realistically (the bigger the object, the farther it gets streamed from)

Sounds nice
vyper is offline   Reply With Quote
Old 04/04/2013, 03:35 PM   #3
RajatPawar
High-roller
 
RajatPawar's Avatar
 
Join Date: Aug 2011
Location: ヽ༼ຈل͜ຈ༽ノ
Posts: 2,180
Reputation: 311
Default Re: Useful object streamer that streams objects realistically (the bigger the object, the farther it gets streamed from)

Quote:
Originally Posted by vyper View Post
Sounds nice
Yeah ! Added a pic to show the chic and smooth streaming it does.
Cheers
RajatPawar is offline   Reply With Quote
Old 04/04/2013, 04:45 PM   #4
V1ceC1ty
Banned
 
Join Date: Oct 2008
Location: West Australia
Posts: 1,914
Reputation: 273
Default Re: Useful object streamer that streams objects realistically (the bigger the object, the farther it gets streamed from)

Thanks Rajat, ****** and 90% Kalcor. This has been tested with 11,000 objects and it works great!
V1ceC1ty is offline   Reply With Quote
Old 04/04/2013, 04:56 PM   #5
Scenario
Godfather
 
Scenario's Avatar
 
Join Date: Feb 2010
Location: Heaven
Posts: 7,809
Reputation: 701
Default Re: Useful object streamer that streams objects realistically (the bigger the object, the farther it gets streamed from)

Nice job! Good to see the model-sizes being used with the streamer like that.

EDIT: You might want to add a download for the modelsizes include.
Scenario is offline   Reply With Quote
Old 04/04/2013, 04:59 PM   #6
RajatPawar
High-roller
 
RajatPawar's Avatar
 
Join Date: Aug 2011
Location: ヽ༼ຈل͜ຈ༽ノ
Posts: 2,180
Reputation: 311
Default Re: Useful object streamer that streams objects realistically (the bigger the object, the farther it gets streamed from)

Quote:
Originally Posted by V1ceC1ty View Post
Thanks Rajat, ****** and 90% Kalcor. This has been tested with 11,000 objects and it works great!
Quote:
Originally Posted by RealCop228 View Post
Nice job! Good to see the model-sizes being used with the streamer like that.
EDIT: You might want to add a download for the modelsizes include.
Quote:
Originally Posted by ****** View Post
Nice, though I should point out that I actually did very little for the modelsizes include either - that was 90% Kalcor!
Fantastic, thank you guys.
Also, Kalcor is automatically considered in every credits, no need to say that ! I would like anyone with a good STREAMER_CONSTANT to post here, considering a fairly well working PC.
Thanks !
RajatPawar is offline   Reply With Quote
Old 04/04/2013, 05:20 PM   #7
nickdodd25
Huge Clucker
 
nickdodd25's Avatar
 
Join Date: Jan 2012
Location: Unknown
Posts: 450
Reputation: 114
Default Re: Useful object streamer that streams objects realistically (the bigger the object, the farther it gets streamed from)

Oh nice i was wondering how to exactly use that include. I just converted my pawn streamer to use this and it works great. Giant stunt objects show up far away, not right in-front of you, small objects don't show until closer so it helps on the visible objects per player limit. Good job ******, Kalcor and Rajat_Pawar for showing an example.

Also this may seem like alot but used my default draw distance of 300 for the STREAMER_CONSTANT and most of the big stunt objects look like they are default objects since you can see them so far away. Pretty sure i am going to lower this tho....

Edit: Added a video http://www.xfire.com/video/5f0510
__________________
Nick

Last edited by nickdodd25; 04/04/2013 at 05:58 PM.
nickdodd25 is offline   Reply With Quote
Old 04/04/2013, 05:29 PM   #8
RajatPawar
High-roller
 
RajatPawar's Avatar
 
Join Date: Aug 2011
Location: ヽ༼ຈل͜ຈ༽ノ
Posts: 2,180
Reputation: 311
Default Re: Useful object streamer that streams objects realistically (the bigger the object, the farther it gets streamed from)

Oh, 300? I'll take in the others' responses and average it out !
And, of course, thanks !
RajatPawar is offline   Reply With Quote
Old 04/04/2013, 05:50 PM   #9
IstuntmanI
High-roller
 
IstuntmanI's Avatar
 
Join Date: Mar 2009
Location: Romania
Posts: 1,801
Reputation: 375
Default Re: Useful object streamer that streams objects realistically (the bigger the object, the farther it gets streamed from)

Can't we use directly:
pawn Code:
#include <a_samp>
#include <streamer>
#include <modelsizes>
#include <zcmd>
// - - -- - - DEFINES  -- - - -
#define STREAM_CONSTANT 180

stock create_OBJECT( modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz )
    return CreateDynamicObject( modelid, x, y, z, rx, ry, rz,-1, -1, -1, STREAM_CONSTANT + GetColSphereRadius( modelid ) );
?

Great idea.
__________________


IstuntmanI is offline   Reply With Quote
Old 04/04/2013, 05:57 PM   #10
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,232
Reputation: 993
Default Re: Useful object streamer that streams objects realistically (the bigger the object, the farther it gets streamed from)

About time someone released this!
__________________
Click banner above for more info. View trailers here.
Enter referral code SAMPFORUM after registering for a $5000 starting bonus!
MP2 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Object streamer problem ( can see thru objects ) Spiral Help Archive 8 25/12/2010 09:34 AM
A good object streamer that allows moving objects :) aNdReSk Help Archive 4 28/07/2010 05:19 PM
[Object Streamer] Objects Not Showing Up robert4049 Help Archive 4 05/07/2010 07:32 PM
Dominator's Object Streamer - a wize and new streamer - invisible objects fix tsha Filterscripts 23 19/09/2009 09:37 PM
Which object streamer can hold the most objects? SPFoxy Server Support 6 13/12/2008 10:30 AM


All times are GMT. The time now is 12:09 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.