SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 19/10/2007, 12:37 AM   #1
cptnsausage
Gangsta
 
Join Date: Aug 2006
Posts: 695
Reputation: 5
Default [FS] tAxI's Vehicle Streamer [v0.2] - add unlimited vehicle spawns and models!!!

tAxI's Vehicle Streamer FS [v0.1]

Very Simply - This is a nice easy to understand FS that will increase ur vehicle spawns to (in theory) an unlimited amount. nice for all of those huge freeroam gamemodes that use ridiculous amounts of vehicles, but now you can add more!!!...the built in spawn amount limit is 9999 but i have no idea if it will reach that as im not crazy enuff to design a mode with 9999 vehicles in it...but this script should allow u to exceed the 700 or so vehicle limit but not the 70 model limit and only 700 vehicles can be active at any one point simultaneously...basically the script will only create vehicles if there is somebody around to see them (within 100 meters) but if there are 700 cars active it will stop creating them. It will also destroy any vehicles that have been placed if there are no players in range as long as the vehicle has not been populated yet, in short if u use a vehicle then leave it and enter a building, it will still be there when u come back (unless it got jacked by sum1 else lol) but if you simply go out of range of a vehicle that has not been driven yet it will cease to exist on the server

The default distance it will spawn a car for u is set at 100 meters but you can change that very simply by changing
SPAWN_DISTANCE

In order to add streaming vehicle spawns u must add your vehicle spawns into this fs under OnFilterscriptInit using AddStreamingVehicle(modelid,x,y,z,angle,color1,col or2); rather than addstaticvehicle.

HOPE U ALL LIKE IT...ENJOY!!!!

<tAxI>

cptnsausage is offline   Reply With Quote
Old 19/10/2007, 12:46 AM   #2
Alejandro
Huge Clucker
 
Join Date: May 2007
Posts: 336
Reputation: 1
Default Re: [FS] tAxI's Vehicle Streamer - add unlimited vehicle spawns!!!

sweeet ! nice.
Alejandro is offline   Reply With Quote
Old 19/10/2007, 12:51 AM   #3
X_Cutter
Big Clucker
 
Join Date: Jul 2007
Posts: 161
Reputation: 0
Default Re: [FS] tAxI's Vehicle Streamer - add unlimited vehicle spawns!!!

I guess it's gonna be laggy as creating vehicles every time someone passes nearby...Lol. Nice script BTW
X_Cutter is offline   Reply With Quote
Old 19/10/2007, 01:08 AM   #4
cptnsausage
Gangsta
 
Join Date: Aug 2006
Posts: 695
Reputation: 5
Default Re: [FS] tAxI's Vehicle Streamer - add unlimited vehicle spawns!!!

Quote:
Originally Posted by [LSB
X_Cutter ]
I guess it's gonna be laggy as creating vehicles every time someone passes nearby...Lol. Nice script BTW
well i thought it might be but i dunno...i tried it with a script where i went past a bank of 12 bikes and they spawned with no lag or delay

i dunno what server load it causes etc but this is purely an experiment as i was curious about if it could be done...and heres the result lol

I'm a little worried that it only took an hour from concept to finished article though...theres probs some disastrous bug somewhere lurking in it till we think its safe to use then BAM! byebye server...lol

ill also say that that was pure speculation and im pretty sure this is bugfree...although im not notorious for my non-buggy 1st attempt scripting lol :P

EDIT:also actually its not if anyone is just passing by...if somebody passes the spawnpoint and another person also comes by at same time the vehicle will simply do nothing but sit there...if it has already spawned its not able to spawn again untill its either destroyed or nobody uses it and the players all go out of range at which oint it will deactivate untill someone comes within 100m of the point again
cptnsausage is offline   Reply With Quote
Old 19/10/2007, 03:54 AM   #5
nate660
Huge Clucker
 
Join Date: Jul 2007
Posts: 238
Reputation: 1
Default Re: [FS] tAxI's Vehicle Streamer [v0.1] - add unlimited vehicle spawns!!!

Omg dude you and your vehicle scripts lol, Nice one but man i can bearly use the limit now but i guess your filterscript will never get the limit reached
nate660 is offline   Reply With Quote
Old 19/10/2007, 09:39 AM   #6
GTAScripter
Big Clucker
 
Join Date: Aug 2007
Posts: 52
Reputation: 0
Default Re: [FS] tAxI's Vehicle Streamer [v0.1] - add unlimited vehicle spawns!!!

Does it works with GF?
GTAScripter is offline   Reply With Quote
Old 19/10/2007, 11:44 AM   #7
cptnsausage
Gangsta
 
Join Date: Aug 2006
Posts: 695
Reputation: 5
Default Re: [FS] tAxI's Vehicle Streamer [v0.1] - add unlimited vehicle spawns!!!

i dont know...

never tried and probs never will as im not a great fan of the GF script...i know everyone says its great but its not the only bloody script out there ppl lol and besides the gf script probs creates and destroys vehicle at some points mid script as well which will mean theres a few random vhicles hanging around which won't be registered on the streaming system

ok look im not gonna waste anymore of my time trying to make my scripts work with GF or PEN1 as to be honest they are very good when used as they are but ppl keep trying to modify them...at which point u find that if u deviate from the designed script functions it screws it and the script gets tedious and annoyingly complicated

as i said...great code as it stands but for learning from or modding...absolutely useless, specially if u dont know a great deal about coding

ppl start small and work up...design ur own modes or use other modes as they stand at first, then when u get more advanced coding skills (the only way to learn is to do it, not just look at other scripts and change a few lines) u can start to make those more advanced scripts do ur every little whim or indeed just design ur own customised script :P

basically i would think that the GF script is probs compatible with this but i cant confirm or deny that...NOTE that as with all scripts ive made that ppl try to integrate with GF or PEN1, anything that makes reference to specific vehicle id's in the gf and pen1 scripts will have to be altered to run off of modelid's instead and if this doesnt suit ur uses then im fraid ur screwed for those wee bits of the code :P the reason for this is that because the vehicles are 100% dynamic in the FS then the vehicle id's are almost continuously changing
cptnsausage is offline   Reply With Quote
Old 19/10/2007, 03:03 PM   #8
WackoX
Guest
 
Posts: n/a
Default Re: [FS] tAxI's Vehicle Streamer [v0.1] - add unlimited vehicle spawns!!!

Ooh no! i need that script hard but my server crasht
  Reply With Quote
Old 19/10/2007, 06:06 PM   #9
SNiPE
Little Clucker
 
Join Date: Jun 2007
Posts: 4
Reputation: 0
Default Re: [FS] tAxI's Vehicle Streamer [v0.1] - add unlimited vehicle spawns!!!

Thanks alot tAxI!
I was going to make something like this after seeing Dynamic objects, but you beat me to it!

Thanks again!
SNiPE is offline   Reply With Quote
Old 19/10/2007, 06:09 PM   #10
cptnsausage
Gangsta
 
Join Date: Aug 2006
Posts: 695
Reputation: 5
Default Re: [FS] tAxI's Vehicle Streamer [v0.1] - add unlimited vehicle spawns!!!

did my script crash it?

I HAVE tested this with a few peeps and it works great but it was on an old version of lvdm with like 720 spawns...lol it worked perfectly so it may need to be hardcoded into any large gamemode to be entirely effective but i dunno

Quote:
Originally Posted by SNiPE
Thanks alot tAxI!
I was going to make something like this after seeing Dynamic objects, but you beat me to it!

Thanks again!
well dont let me doing it discourage u...i dont care if other ppl make similar scripts or indeed conceptually or virtually same code as long as its not stolen or ppl try to take credit for my code specifically...im fairly sure somebody can work out a better way of doing this than i have although my method would SEEM to be pretty much bugfree unless its crashing some GM's :S which i have yet to determine lol

EDIT: also im almost finished the modelid counter which will allow more than the default number of vehicle models (70)...I'll limit it to only about 65 diff models at any one time active to account for high memory usage of some of the bigger models which can lower the 70 limit and crash when u get close to it

EDIT: ok the streamer has been updated to only allow 65 vehicle types at any one time which means u can use over 70 vehicle types in ur GM however only 65 types of model can be active at any one time this is just a safety feature to make sure u cant exceed the memory usage if u suddenly wander into an area with some larger modelids
cptnsausage 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
[FilterScript] [FS] tAxI's Xtreme Vehicle Management v0.3 cptnsausage Filterscripts 619 26/07/2016 03:24 AM


All times are GMT. The time now is 09:17 PM.


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